AlarmMuteRuleProps
- class aws_cdk.aws_cloudwatch.AlarmMuteRuleProps(*, duration, schedule, alarm_mute_rule_name=None, description=None, expire=None, start=None, tags=None, alarms=None)
Bases:
AlarmMuteRuleOptionsProperties used to configure a CloudWatch alarm mute rule.
- Parameters:
duration (
Duration) – The length of time that alarms remain muted when the schedule activates. Minimum: 1 minute, Maximum: 15 daysschedule (
ScheduleExpression) – The schedule defines when alarms should be muted.alarm_mute_rule_name (
Optional[str]) – The name of the alarm mute rule. This name must be unique within your AWS account and region. Default: - generated by CloudFormationdescription (
Optional[str]) – A description of the alarm mute rule that helps you identify its purpose. Default: - no descriptionexpire (
Union[CalendarDateTime,Dict[str,Any],None]) – The date and time when the mute rule expires and is no longer evaluated. After this time, the rule status becomes EXPIRED and will no longer mute the targeted alarms. This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified. Default: - no configurationstart (
Union[CalendarDateTime,Dict[str,Any],None]) – The date and time after which the mute rule takes effect. If not specified, the mute rule takes effect immediately upon creation and the mutes are applied as per the schedule expression. This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified. Default: - no configurationtags (
Optional[Mapping[str,str]]) – A list of tags associated with the alarm mute rule. Tags help you organize and categorize your AWS resources. Default: - No tags are appliedalarms (
Optional[Sequence[IAlarmRef]]) – The list of alarms that this mute rule targets. You can specify up to 100 alarms. Default: - no target alarms
- ExampleMetadata:
infused
Example:
# alarm1: cloudwatch.Alarm # alarm2: cloudwatch.Alarm alarm_mute_rule = cloudwatch.AlarmMuteRule(self, "AlarmMuteRule", alarms=[alarm1], # Defines the mute period begins at 0:00 everyday in UTC schedule=cloudwatch.ScheduleExpression.cron(minute="0", hour="0"), # Specifies the mute rule lasts 1 hour. duration=Duration.hours(1) ) # The mute target can be added after construction. alarm_mute_rule.add_alarm(alarm2)
Attributes
- alarm_mute_rule_name
The name of the alarm mute rule.
This name must be unique within your AWS account and region.
- Default:
generated by CloudFormation
- alarms
The list of alarms that this mute rule targets.
You can specify up to 100 alarms.
- Default:
no target alarms
- description
A description of the alarm mute rule that helps you identify its purpose.
- Default:
no description
- duration
The length of time that alarms remain muted when the schedule activates.
Minimum: 1 minute, Maximum: 15 days
- expire
The date and time when the mute rule expires and is no longer evaluated.
After this time, the rule status becomes EXPIRED and will no longer mute the targeted alarms.
This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
- Default:
no configuration
- schedule
The schedule defines when alarms should be muted.
- start
The date and time after which the mute rule takes effect.
If not specified, the mute rule takes effect immediately upon creation and the mutes are applied as per the schedule expression.
This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
- Default:
no configuration
- tags
A list of tags associated with the alarm mute rule.
Tags help you organize and categorize your AWS resources.
- Default:
No tags are applied