interface MetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ApplicationSignals.CfnServiceLevelObjective.MetricProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationsignals#CfnServiceLevelObjective_MetricProperty |
Java | software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricProperty |
Python | aws_cdk.aws_applicationsignals.CfnServiceLevelObjective.MetricProperty |
TypeScript | aws-cdk-lib » aws_applicationsignals » CfnServiceLevelObjective » 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-lib';
const metricProperty: applicationsignals.CfnServiceLevelObjective.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