interface MetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ApplicationSignals.CfnServiceLevelObjectivePropsMixin.MetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsapplicationsignals#CfnServiceLevelObjectivePropsMixin_MetricProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.applicationsignals.CfnServiceLevelObjectivePropsMixin.MetricProperty |
Python | aws_cdk.cfn_property_mixins.aws_applicationsignals.CfnServiceLevelObjectivePropsMixin.MetricProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_applicationsignals » CfnServiceLevelObjectivePropsMixin » MetricProperty |
This structure defines the metric used for a service level indicator, including the metric name, namespace, and dimensions.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from '@aws-cdk/cfn-property-mixins';
const metricProperty: applicationsignals.CfnServiceLevelObjectivePropsMixin.MetricProperty = {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
};
Properties
| Name | Type | Description |
|---|---|---|
| dimensions? | IResolvable | (IResolvable | Dimension)[] | An array of one or more dimensions to use to define the metric that you want to use. |
| metric | string | The name of the metric to use. |
| namespace? | string | The namespace of the metric. |
dimensions?
Type:
IResolvable | (IResolvable | Dimension)[]
(optional)
An array of one or more dimensions to use to define the metric that you want to use.
For more information, see Dimensions .
metricName?
Type:
string
(optional)
The name of the metric to use.
namespace?
Type:
string
(optional)
The namespace of the metric.
For more information, see Namespaces .

.NET
Go
Java
Python
TypeScript