Class CfnMetricFilterProps
Properties for defining a CfnMetricFilter
.
Inheritance
System.Object
CfnMetricFilterProps
Implements
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMetricFilterProps : Object, ICfnMetricFilterProps
Syntax (vb)
Public Class CfnMetricFilterProps
Inherits Object
Implements ICfnMetricFilterProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
var cfnMetricFilterProps = new CfnMetricFilterProps {
FilterPattern = "filterPattern",
LogGroupName = "logGroupName",
MetricTransformations = new [] { new MetricTransformationProperty {
MetricName = "metricName",
MetricNamespace = "metricNamespace",
MetricValue = "metricValue",
// the properties below are optional
DefaultValue = 123,
Dimensions = new [] { new DimensionProperty {
Key = "key",
Value = "value"
} },
Unit = "unit"
} },
// the properties below are optional
FilterName = "filterName"
};
Synopsis
Constructors
CfnMetricFilterProps() |
Properties
FilterName | The name of the metric filter. |
FilterPattern | A filter pattern for extracting metric data out of ingested log events. |
LogGroupName | The name of an existing log group that you want to associate with this metric filter. |
MetricTransformations | The metric transformations. |
Constructors
CfnMetricFilterProps()
public CfnMetricFilterProps()
Properties
FilterName
The name of the metric filter.
public string FilterName { get; set; }
Property Value
System.String
Remarks
FilterPattern
A filter pattern for extracting metric data out of ingested log events.
public string FilterPattern { get; set; }
Property Value
System.String
Remarks
LogGroupName
The name of an existing log group that you want to associate with this metric filter.
public string LogGroupName { get; set; }
Property Value
System.String
Remarks
MetricTransformations
The metric transformations.
public object MetricTransformations { get; set; }
Property Value
System.Object