interface SliProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_applicationsignals.CfnServiceLevelObjective.SliProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationsignals#CfnServiceLevelObjective_SliProperty |
![]() | software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.SliProperty |
![]() | aws_cdk.aws_applicationsignals.CfnServiceLevelObjective.SliProperty |
![]() | aws-cdk-lib » aws_applicationsignals » CfnServiceLevelObjective » SliProperty |
This structure specifies the information about the service and the performance metric that an SLO is to monitor.
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 sliProperty: applicationsignals.CfnServiceLevelObjective.SliProperty = {
comparisonOperator: 'comparisonOperator',
metricThreshold: 123,
sliMetric: {
keyAttributes: {
keyAttributesKey: 'keyAttributes',
},
metricDataQueries: [{
id: 'id',
// the properties below are optional
accountId: 'accountId',
expression: 'expression',
metricStat: {
metric: {
dimensions: [{
name: 'name',
value: 'value',
}],
metricName: 'metricName',
namespace: 'namespace',
},
period: 123,
stat: 'stat',
// the properties below are optional
unit: 'unit',
},
returnData: false,
}],
metricType: 'metricType',
operationName: 'operationName',
periodSeconds: 123,
statistic: 'statistic',
},
};
Properties
Name | Type | Description |
---|---|---|
comparison | string | The arithmetic operation to use when comparing the specified metric to the threshold. |
metric | number | The value that the SLI metric is compared to. |
sli | IResolvable | Sli | Use this structure to specify the metric to be used for the SLO. |
comparisonOperator
Type:
string
The arithmetic operation to use when comparing the specified metric to the threshold.
metricThreshold
Type:
number
The value that the SLI metric is compared to.
sliMetric
Type:
IResolvable
|
Sli
Use this structure to specify the metric to be used for the SLO.