interface GoalProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_applicationsignals.CfnServiceLevelObjective.GoalProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapplicationsignals#CfnServiceLevelObjective_GoalProperty |
Java | software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.GoalProperty |
Python | aws_cdk.aws_applicationsignals.CfnServiceLevelObjective.GoalProperty |
TypeScript | aws-cdk-lib » aws_applicationsignals » CfnServiceLevelObjective » GoalProperty |
This structure contains the attributes that determine the goal of an SLO.
This includes the time period for evaluation and the attainment threshold.
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 goalProperty: applicationsignals.CfnServiceLevelObjective.GoalProperty = {
attainmentGoal: 123,
interval: {
calendarInterval: {
duration: 123,
durationUnit: 'durationUnit',
startTime: 123,
},
rollingInterval: {
duration: 123,
durationUnit: 'durationUnit',
},
},
warningThreshold: 123,
};
Properties
Name | Type | Description |
---|---|---|
attainment | number | The threshold that determines if the goal is being met. |
interval? | IResolvable | Interval | The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval. |
warning | number | The percentage of remaining budget over total budget that you want to get warnings for. |
attainmentGoal?
Type:
number
(optional)
The threshold that determines if the goal is being met.
An attainment goal is the ratio of good periods that meet the threshold requirements to the total periods within the interval. For example, an attainment goal of 99.9% means that within your interval, you are targeting 99.9% of the periods to be in healthy state.
If you omit this parameter, 99 is used to represent 99% as the attainment goal.
interval?
Type:
IResolvable
|
Interval
(optional)
The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
If you omit this parameter, a rolling interval of 7 days is used.
warningThreshold?
Type:
number
(optional)
The percentage of remaining budget over total budget that you want to get warnings for.
If you omit this parameter, the default of 50.0 is used.