@Generated(value="jsii-pacmak/0.13.2 (build a2116e9)", date="2019-07-01T16:58:11.734Z") @Stability(value=Experimental) public class Alarm extends software.amazon.awscdk.core.Resource implements IAlarm
software.amazon.jsii.JsiiObject.InitializationModeIAlarm.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Alarm(software.amazon.awscdk.core.Construct scope,
String id,
AlarmProps props)
EXPERIMENTAL
|
protected |
Alarm(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlarmAction(IAlarmAction... actions)
Trigger this action if the alarm fires.
|
void |
addInsufficientDataAction(IAlarmAction... actions)
Trigger this action if there is insufficient data to evaluate the alarm.
|
void |
addOkAction(IAlarmAction... actions)
Trigger this action if the alarm returns from breaching state into ok state.
|
static IAlarm |
fromAlarmArn(software.amazon.awscdk.core.Construct scope,
String id,
String alarmArn)
EXPERIMENTAL
|
String |
getAlarmArn()
ARN of this alarm.
|
String |
getAlarmName()
Name of this alarm.
|
IMetric |
getMetric()
The metric object this alarm was based on.
|
HorizontalAnnotation |
toAnnotation()
Turn this alarm into a horizontal annotation.
|
getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStackgetNode, isConstruct, prepare, synthesize, toString, validatejsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSetprotected Alarm(software.amazon.jsii.JsiiObject.InitializationMode mode)
@Stability(value=Experimental)
public Alarm(software.amazon.awscdk.core.Construct scope,
String id,
AlarmProps props)
@Stability(value=Experimental) public static IAlarm fromAlarmArn(software.amazon.awscdk.core.Construct scope, String id, String alarmArn)
@Stability(value=Experimental) public void addAlarmAction(IAlarmAction... actions)
@Stability(value=Experimental) public void addInsufficientDataAction(IAlarmAction... actions)
@Stability(value=Experimental) public void addOkAction(IAlarmAction... actions)
@Stability(value=Experimental) public HorizontalAnnotation toAnnotation()
@Stability(value=Experimental) public String getAlarmArn()
getAlarmArn in interface IAlarm@Stability(value=Experimental) public String getAlarmName()
getAlarmName in interface IAlarm@Stability(value=Experimental) public IMetric getMetric()
Copyright © 2019. All rights reserved.