Class CeilometerAlarm
- java.lang.Object
-
- org.openstack4j.openstack.telemetry.domain.CeilometerAlarm
-
- All Implemented Interfaces:
Serializable,Buildable<AlarmBuilder>,BasicResource,IdEntity,ModelEntity,Alarm
public class CeilometerAlarm extends Object implements Alarm
An Alarm is triggered when a specificied rule is satisfied- Author:
- Massimiliano Romano
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCeilometerAlarm.AlarmConcreteBuilderstatic classCeilometerAlarm.CeilometerCombinationRulestatic classCeilometerAlarm.CeilometerGnocchiAggregationByMetricsThresholdRulestatic classCeilometerAlarm.CeilometerGnocchiAggregationByResourcesThresholdRulestatic classCeilometerAlarm.CeilometerGnocchiResourcesThresholdRulestatic classCeilometerAlarm.CeilometerQuerystatic classCeilometerAlarm.CeilometerThresholdRule-
Nested classes/interfaces inherited from interface org.openstack4j.model.telemetry.Alarm
Alarm.AggregationMethod, Alarm.AggregationMetricByResourcesLookupRule, Alarm.AggregationMetricsByIdLookupRule, Alarm.AlarmChange, Alarm.AlarmTimeConstraint, Alarm.CombinationRule, Alarm.ComparisonOperator, Alarm.GnocchiAggregationByMetricsThresholdRule, Alarm.GnocchiAggregationByResourcesThresholdRule, Alarm.GnocchiEvent, Alarm.GnocchiResourcesThresholdRule, Alarm.MetricOfResourceRule, Alarm.Operator, Alarm.Query, Alarm.Statistic, Alarm.ThresholdRule, Alarm.Type
-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description CeilometerAlarm()
-
Method Summary
-
-
-
Method Detail
-
builder
public static AlarmBuilder builder()
-
getName
public String getName()
- Specified by:
getNamein interfaceAlarm- Specified by:
getNamein interfaceBasicResource- Returns:
- the unique name of the alarm
-
setName
public void setName(String name)
Sets the name for this resource- Specified by:
setNamein interfaceAlarm- Specified by:
setNamein interfaceBasicResource- Parameters:
name- the name to set
-
getProjectId
public String getProjectId()
- Specified by:
getProjectIdin interfaceAlarm- Returns:
- the ID of the project/tenant that owns the resource
-
getType
public Alarm.Type getType()
-
setType
public void setType(Alarm.Type type)
-
getUserId
public String getUserId()
-
getAlarmActions
public List<String> getAlarmActions()
- Specified by:
getAlarmActionsin interfaceAlarm
-
setAlarmActions
public void setAlarmActions(List<String> alarmActions)
- Specified by:
setAlarmActionsin interfaceAlarm
-
getAlarmId
public String getAlarmId()
- Specified by:
getAlarmIdin interfaceAlarm
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceAlarm
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceAlarm
-
getInsufficientDataActions
public List<String> getInsufficientDataActions()
- Specified by:
getInsufficientDataActionsin interfaceAlarm
-
setInsufficientDataActions
public void setInsufficientDataActions(List<String> insufficientDataActions)
- Specified by:
setInsufficientDataActionsin interfaceAlarm
-
getOkActions
public List<String> getOkActions()
- Specified by:
getOkActionsin interfaceAlarm
-
setOkActions
public void setOkActions(List<String> okActions)
- Specified by:
setOkActionsin interfaceAlarm
-
getRepeatActions
public boolean getRepeatActions()
- Specified by:
getRepeatActionsin interfaceAlarm
-
getStateTimestamp
public String getStateTimestamp()
- Specified by:
getStateTimestampin interfaceAlarm
-
getThresholdRule
public Alarm.ThresholdRule getThresholdRule()
- Specified by:
getThresholdRulein interfaceAlarm
-
setThresholdRule
public void setThresholdRule(CeilometerAlarm.CeilometerThresholdRule tr)
- Specified by:
setThresholdRulein interfaceAlarm
-
getCombinationRule
public Alarm.CombinationRule getCombinationRule()
- Specified by:
getCombinationRulein interfaceAlarm
-
getCompositeRule
public Map<String,Object> getCompositeRule()
- Specified by:
getCompositeRulein interfaceAlarm
-
getGnocchiResourcesThresholdRule
public Alarm.GnocchiResourcesThresholdRule getGnocchiResourcesThresholdRule()
- Specified by:
getGnocchiResourcesThresholdRulein interfaceAlarm
-
setGnocchiResourcesThresholdRule
public void setGnocchiResourcesThresholdRule(CeilometerAlarm.CeilometerGnocchiResourcesThresholdRule ceilometerGnocchiResourcesThresholdRule)
- Specified by:
setGnocchiResourcesThresholdRulein interfaceAlarm
-
getGnocchiAggregationByMetricsThresholdRule
public Alarm.GnocchiAggregationByMetricsThresholdRule getGnocchiAggregationByMetricsThresholdRule()
- Specified by:
getGnocchiAggregationByMetricsThresholdRulein interfaceAlarm
-
setGnocchiAggregationByMetricsThresholdRule
public void setGnocchiAggregationByMetricsThresholdRule(CeilometerAlarm.CeilometerGnocchiAggregationByMetricsThresholdRule ceilometerGnocchiAggregationByMetricsThresholdRule)
- Specified by:
setGnocchiAggregationByMetricsThresholdRulein interfaceAlarm
-
getGnocchiAggregationByResourcesThresholdRule
public Alarm.GnocchiAggregationByResourcesThresholdRule getGnocchiAggregationByResourcesThresholdRule()
- Specified by:
getGnocchiAggregationByResourcesThresholdRulein interfaceAlarm
-
setGnocchiAggregationByResourcesThresholdRule
public void setGnocchiAggregationByResourcesThresholdRule(CeilometerAlarm.CeilometerGnocchiAggregationByResourcesThresholdRule ceilometerGnocchiAggregationByResourcesThresholdRule)
- Specified by:
setGnocchiAggregationByResourcesThresholdRulein interfaceAlarm
-
getTimestamp
public String getTimestamp()
- Specified by:
getTimestampin interfaceAlarm
-
setRepeateActions
public void setRepeateActions(Boolean repeatActions)
- Specified by:
setRepeateActionsin interfaceAlarm
-
getId
public String getId()
-
setId
public void setId(String id)
Description copied from interface:IdEntitySets the identifier for this resource. Note: creating a new resource should not have the idenfier set since OpenStack will assign one on the create call
-
toBuilder
public AlarmBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<AlarmBuilder>
-
-