interface CfnMetricFilterMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnMetricFilterMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnMetricFilterMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnMetricFilterMixinProps |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnMetricFilterMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnMetricFilterMixinProps |
Properties for CfnMetricFilterPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-metricfilter.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as logs_mixins } from '@aws-cdk/mixins-preview/aws-logs';
const cfnMetricFilterMixinProps: logs_mixins.CfnMetricFilterMixinProps = {
applyOnTransformedLogs: false,
emitSystemFieldDimensions: ['emitSystemFieldDimensions'],
fieldSelectionCriteria: 'fieldSelectionCriteria',
filterName: 'filterName',
filterPattern: 'filterPattern',
logGroupName: 'logGroupName',
metricTransformations: [{
defaultValue: 123,
dimensions: [{
key: 'key',
value: 'value',
}],
metricName: 'metricName',
metricNamespace: 'metricNamespace',
metricValue: 'metricValue',
unit: 'unit',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| apply | boolean | IResolvable | This parameter is valid only for log groups that have an active log transformer. |
| emit | string[] | The list of system fields that are emitted as additional dimensions in the generated metrics. |
| field | string | The filter expression that specifies which log events are processed by this metric filter based on system fields. |
| filter | string | The name of the metric filter. |
| filter | string | A filter pattern for extracting metric data out of ingested log events. |
| log | string | The name of an existing log group that you want to associate with this metric filter. |
| metric | IResolvable | (IResolvable | Metric)[] | The metric transformations. |
applyOnTransformedLogs?
Type:
boolean | IResolvable
(optional)
This parameter is valid only for log groups that have an active log transformer.
For more information about log transformers, see PutTransformer .
If this value is true , the metric filter is applied on the transformed version of the log events instead of the original ingested log events.
emitSystemFieldDimensions?
Type:
string[]
(optional)
The list of system fields that are emitted as additional dimensions in the generated metrics.
Returns the emitSystemFieldDimensions value if it was specified when the metric filter was created.
fieldSelectionCriteria?
Type:
string
(optional)
The filter expression that specifies which log events are processed by this metric filter based on system fields.
Returns the fieldSelectionCriteria value if it was specified when the metric filter was created.
filterName?
Type:
string
(optional)
The name of the metric filter.
filterPattern?
Type:
string
(optional)
A filter pattern for extracting metric data out of ingested log events.
For more information, see Filter and Pattern Syntax .
logGroupName?
Type:
string
(optional)
The name of an existing log group that you want to associate with this metric filter.
metricTransformations?
Type:
IResolvable | (IResolvable | Metric)[]
(optional)
The metric transformations.

.NET
Go
Java
Python
TypeScript