Interface ICfnMetricFilterProps
Properties for defining a CfnMetricFilter
.
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnMetricFilterProps
Syntax (vb)
Public Interface 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
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. |
Properties
FilterName
The name of the metric filter.
virtual string FilterName { get; }
Property Value
System.String
Remarks
FilterPattern
A filter pattern for extracting metric data out of ingested log events.
string FilterPattern { get; }
Property Value
System.String
Remarks
LogGroupName
The name of an existing log group that you want to associate with this metric filter.
string LogGroupName { get; }
Property Value
System.String
Remarks
MetricTransformations
The metric transformations.
object MetricTransformations { get; }
Property Value
System.Object