interface MetricProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ApplicationSignals.Mixins.CfnServiceLevelObjectivePropsMixin.MetricProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapplicationsignals/mixins#CfnServiceLevelObjectivePropsMixin_MetricProperty |
Java | software.amazon.awscdk.mixins.preview.services.applicationsignals.mixins.CfnServiceLevelObjectivePropsMixin.MetricProperty |
Python | aws_cdk.mixins_preview.aws_applicationsignals.mixins.CfnServiceLevelObjectivePropsMixin.MetricProperty |
TypeScript | @aws-cdk/mixins-preview » aws_applicationsignals » mixins » 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 { mixins as applicationsignals_mixins } from '@aws-cdk/mixins-preview/aws-applicationsignals';
const metricProperty: applicationsignals_mixins.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