Skip to content
v2.278.0

IntervalProperty Struct ​

The time period used to evaluate the SLO.

It can be either a calendar interval or rolling interval.

Example ​

ts
// 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 intervalProperty: applicationsignals.CfnServiceLevelObjective.IntervalProperty = {
  calendarInterval: {
    duration: 123,
    durationUnit: 'durationUnit',
    startTime: 123,
  },
  rollingInterval: {
    duration: 123,
    durationUnit: 'durationUnit',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationsignals as applicationsignals

interval_property = applicationsignals.CfnServiceLevelObjective.IntervalProperty(
    calendar_interval=applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty(
        duration=123,
        duration_unit="durationUnit",
        start_time=123
    ),
    rolling_interval=applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty(
        duration=123,
        duration_unit="durationUnit"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationsignals.*;

IntervalProperty intervalProperty = IntervalProperty.builder()
        .calendarInterval(CalendarIntervalProperty.builder()
                .duration(123)
                .durationUnit("durationUnit")
                .startTime(123)
                .build())
        .rollingInterval(RollingIntervalProperty.builder()
                .duration(123)
                .durationUnit("durationUnit")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationSignals;

var intervalProperty = new IntervalProperty {
    CalendarInterval = new CalendarIntervalProperty {
        Duration = 123,
        DurationUnit = "durationUnit",
        StartTime = 123
    },
    RollingInterval = new RollingIntervalProperty {
        Duration = 123,
        DurationUnit = "durationUnit"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

intervalProperty := &IntervalProperty{
	CalendarInterval: &CalendarIntervalProperty{
		Duration: jsii.Number(123),
		DurationUnit: jsii.String("durationUnit"),
		StartTime: jsii.Number(123),
	},
	RollingInterval: &RollingIntervalProperty{
		Duration: jsii.Number(123),
		DurationUnit: jsii.String("durationUnit"),
	},
}

Properties ​

calendarIntervaloptionalIResolvable | CfnServiceLevelObjective.CalendarIntervalPropertycalendar_intervaloptionaltyping.Union[IResolvable, CalendarIntervalProperty]calendarIntervaloptionalIResolvableCalendarIntervaloptionalIResolvableCalendarIntervaloptionalinterface{} #
If the interval is a calendar interval, this structure contains the interval specifications.
rollingIntervaloptionalIResolvable | CfnServiceLevelObjective.RollingIntervalPropertyrolling_intervaloptionaltyping.Union[IResolvable, RollingIntervalProperty]rollingIntervaloptionalIResolvableRollingIntervaloptionalIResolvableRollingIntervaloptionalinterface{} #
If the interval is a rolling interval, this structure contains the interval specifications.