Class CompositeAlarmProps
Properties for creating a Composite Alarm.
Inheritance
System.Object
CompositeAlarmProps
Implements
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class CompositeAlarmProps : Object, ICompositeAlarmProps
Syntax (vb)
Public Class CompositeAlarmProps
Inherits Object
Implements ICompositeAlarmProps
Remarks
ExampleMetadata: infused
Examples
Alarm alarm1;
Alarm alarm2;
Alarm alarm3;
Alarm alarm4;
var alarmRule = AlarmRule.AnyOf(AlarmRule.AllOf(AlarmRule.AnyOf(alarm1, AlarmRule.FromAlarm(alarm2, AlarmState.OK), alarm3), AlarmRule.Not(AlarmRule.FromAlarm(alarm4, AlarmState.INSUFFICIENT_DATA))), AlarmRule.FromBoolean(false));
new CompositeAlarm(this, "MyAwesomeCompositeAlarm", new CompositeAlarmProps {
AlarmRule = alarmRule
});
Synopsis
Constructors
CompositeAlarmProps() |
Properties
ActionsEnabled | Whether the actions for this alarm are enabled. |
AlarmDescription | Description for the alarm. |
AlarmRule | Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. |
CompositeAlarmName | Name of the alarm. |
Constructors
CompositeAlarmProps()
public CompositeAlarmProps()
Properties
ActionsEnabled
Whether the actions for this alarm are enabled.
public Nullable<bool> ActionsEnabled { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
AlarmDescription
Description for the alarm.
public string AlarmDescription { get; set; }
Property Value
System.String
Remarks
Default: No description
AlarmRule
Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.
public IAlarmRule AlarmRule { get; set; }
Property Value
CompositeAlarmName
Name of the alarm.
public string CompositeAlarmName { get; set; }
Property Value
System.String
Remarks
Default: Automatically generated name