interface MetricProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnAnomalyDetector.MetricProperty |
Java | software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricProperty |
Python | aws_cdk.aws_cloudwatch.CfnAnomalyDetector.MetricProperty |
TypeScript | @aws-cdk/aws-cloudwatch » CfnAnomalyDetector » MetricProperty |
Represents a specific metric.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
const metricProperty: cloudwatch.CfnAnomalyDetector.MetricProperty = {
metricName: 'metricName',
namespace: 'namespace',
// the properties below are optional
dimensions: [{
name: 'name',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
metric | string | The name of the metric. |
namespace | string | The namespace of the metric. |
dimensions? | IResolvable | IResolvable | Dimension [] | The dimensions for the metric. |
metricName
Type:
string
The name of the metric.
This is a required field.
namespace
Type:
string
The namespace of the metric.
dimensions?
Type:
IResolvable
|
IResolvable
|
Dimension
[]
(optional)
The dimensions for the metric.