Class: Humidifier::CloudWatch::Alarm

Inherits:
Resource
  • Object
show all
Defined in:
lib/humidifier/magic.rb

Overview

A dynamically-defined class that represents an AWS::CloudWatch::Alarm resource

AWS Resource:

Constant Summary

Constants inherited from Resource

Resource::COMMON_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #method_missing, prop?, #respond_to_missing?, #to_cf, #update, #update_attributes, #update_property

Constructor Details

This class inherits a constructor from Humidifier::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Humidifier::Resource

Instance Method Details

#actions_enabledObject

returns the ActionsEnabled property



10
11
12
# File 'lib/humidifier/magic.rb', line 10

def actions_enabled
  properties['actions_enabled']
end

#actions_enabled=(value) ⇒ Object

sets the ActionsEnabled property (Boolean)



15
16
17
# File 'lib/humidifier/magic.rb', line 15

def actions_enabled=(value)
  update_property('actions_enabled', value)
end

#alarm_actionsObject

returns the AlarmActions property



20
21
22
# File 'lib/humidifier/magic.rb', line 20

def alarm_actions
  properties['alarm_actions']
end

#alarm_actions=(value) ⇒ Object

sets the AlarmActions property (List)



25
26
27
# File 'lib/humidifier/magic.rb', line 25

def alarm_actions=(value)
  update_property('alarm_actions', value)
end

#alarm_descriptionObject

returns the AlarmDescription property



30
31
32
# File 'lib/humidifier/magic.rb', line 30

def alarm_description
  properties['alarm_description']
end

#alarm_description=(value) ⇒ Object

sets the AlarmDescription property (String)



35
36
37
# File 'lib/humidifier/magic.rb', line 35

def alarm_description=(value)
  update_property('alarm_description', value)
end

#alarm_nameObject

returns the AlarmName property



40
41
42
# File 'lib/humidifier/magic.rb', line 40

def alarm_name
  properties['alarm_name']
end

#alarm_name=(value) ⇒ Object

sets the AlarmName property (String)



45
46
47
# File 'lib/humidifier/magic.rb', line 45

def alarm_name=(value)
  update_property('alarm_name', value)
end

#comparison_operatorObject

returns the ComparisonOperator property



50
51
52
# File 'lib/humidifier/magic.rb', line 50

def comparison_operator
  properties['comparison_operator']
end

#comparison_operator=(value) ⇒ Object

sets the ComparisonOperator property (String)



55
56
57
# File 'lib/humidifier/magic.rb', line 55

def comparison_operator=(value)
  update_property('comparison_operator', value)
end

#datapoints_to_alarmObject

returns the DatapointsToAlarm property



60
61
62
# File 'lib/humidifier/magic.rb', line 60

def datapoints_to_alarm
  properties['datapoints_to_alarm']
end

#datapoints_to_alarm=(value) ⇒ Object

sets the DatapointsToAlarm property (Integer)



65
66
67
# File 'lib/humidifier/magic.rb', line 65

def datapoints_to_alarm=(value)
  update_property('datapoints_to_alarm', value)
end

#dimensionsObject

returns the Dimensions property



70
71
72
# File 'lib/humidifier/magic.rb', line 70

def dimensions
  properties['dimensions']
end

#dimensions=(value) ⇒ Object

sets the Dimensions property (List)



75
76
77
# File 'lib/humidifier/magic.rb', line 75

def dimensions=(value)
  update_property('dimensions', value)
end

#evaluate_low_sample_count_percentileObject

returns the EvaluateLowSampleCountPercentile property



80
81
82
# File 'lib/humidifier/magic.rb', line 80

def evaluate_low_sample_count_percentile
  properties['evaluate_low_sample_count_percentile']
end

#evaluate_low_sample_count_percentile=(value) ⇒ Object

sets the EvaluateLowSampleCountPercentile property (String)



85
86
87
# File 'lib/humidifier/magic.rb', line 85

def evaluate_low_sample_count_percentile=(value)
  update_property('evaluate_low_sample_count_percentile', value)
end

#evaluation_periodsObject

returns the EvaluationPeriods property



90
91
92
# File 'lib/humidifier/magic.rb', line 90

def evaluation_periods
  properties['evaluation_periods']
end

#evaluation_periods=(value) ⇒ Object

sets the EvaluationPeriods property (Integer)



95
96
97
# File 'lib/humidifier/magic.rb', line 95

def evaluation_periods=(value)
  update_property('evaluation_periods', value)
end

#extended_statisticObject

returns the ExtendedStatistic property



100
101
102
# File 'lib/humidifier/magic.rb', line 100

def extended_statistic
  properties['extended_statistic']
end

#extended_statistic=(value) ⇒ Object

sets the ExtendedStatistic property (String)



105
106
107
# File 'lib/humidifier/magic.rb', line 105

def extended_statistic=(value)
  update_property('extended_statistic', value)
end

#insufficient_data_actionsObject

returns the InsufficientDataActions property



110
111
112
# File 'lib/humidifier/magic.rb', line 110

def insufficient_data_actions
  properties['insufficient_data_actions']
end

#insufficient_data_actions=(value) ⇒ Object

sets the InsufficientDataActions property (List)



115
116
117
# File 'lib/humidifier/magic.rb', line 115

def insufficient_data_actions=(value)
  update_property('insufficient_data_actions', value)
end

#metric_nameObject

returns the MetricName property



120
121
122
# File 'lib/humidifier/magic.rb', line 120

def metric_name
  properties['metric_name']
end

#metric_name=(value) ⇒ Object

sets the MetricName property (String)



125
126
127
# File 'lib/humidifier/magic.rb', line 125

def metric_name=(value)
  update_property('metric_name', value)
end

#metricsObject

returns the Metrics property



130
131
132
# File 'lib/humidifier/magic.rb', line 130

def metrics
  properties['metrics']
end

#metrics=(value) ⇒ Object

sets the Metrics property (List)



135
136
137
# File 'lib/humidifier/magic.rb', line 135

def metrics=(value)
  update_property('metrics', value)
end

#namespaceObject

returns the Namespace property



140
141
142
# File 'lib/humidifier/magic.rb', line 140

def namespace
  properties['namespace']
end

#namespace=(value) ⇒ Object

sets the Namespace property (String)



145
146
147
# File 'lib/humidifier/magic.rb', line 145

def namespace=(value)
  update_property('namespace', value)
end

#ok_actionsObject

returns the OKActions property



150
151
152
# File 'lib/humidifier/magic.rb', line 150

def ok_actions
  properties['ok_actions']
end

#ok_actions=(value) ⇒ Object

sets the OKActions property (List)



155
156
157
# File 'lib/humidifier/magic.rb', line 155

def ok_actions=(value)
  update_property('ok_actions', value)
end

#periodObject

returns the Period property



160
161
162
# File 'lib/humidifier/magic.rb', line 160

def period
  properties['period']
end

#period=(value) ⇒ Object

sets the Period property (Integer)



165
166
167
# File 'lib/humidifier/magic.rb', line 165

def period=(value)
  update_property('period', value)
end

#statisticObject

returns the Statistic property



170
171
172
# File 'lib/humidifier/magic.rb', line 170

def statistic
  properties['statistic']
end

#statistic=(value) ⇒ Object

sets the Statistic property (String)



175
176
177
# File 'lib/humidifier/magic.rb', line 175

def statistic=(value)
  update_property('statistic', value)
end

#thresholdObject

returns the Threshold property



180
181
182
# File 'lib/humidifier/magic.rb', line 180

def threshold
  properties['threshold']
end

#threshold=(value) ⇒ Object

sets the Threshold property (Double)



185
186
187
# File 'lib/humidifier/magic.rb', line 185

def threshold=(value)
  update_property('threshold', value)
end

#threshold_metric_idObject

returns the ThresholdMetricId property



190
191
192
# File 'lib/humidifier/magic.rb', line 190

def threshold_metric_id
  properties['threshold_metric_id']
end

#threshold_metric_id=(value) ⇒ Object

sets the ThresholdMetricId property (String)



195
196
197
# File 'lib/humidifier/magic.rb', line 195

def threshold_metric_id=(value)
  update_property('threshold_metric_id', value)
end

#treat_missing_dataObject

returns the TreatMissingData property



200
201
202
# File 'lib/humidifier/magic.rb', line 200

def treat_missing_data
  properties['treat_missing_data']
end

#treat_missing_data=(value) ⇒ Object

sets the TreatMissingData property (String)



205
206
207
# File 'lib/humidifier/magic.rb', line 205

def treat_missing_data=(value)
  update_property('treat_missing_data', value)
end

#unitObject

returns the Unit property



210
211
212
# File 'lib/humidifier/magic.rb', line 210

def unit
  properties['unit']
end

#unit=(value) ⇒ Object

sets the Unit property (String)



215
216
217
# File 'lib/humidifier/magic.rb', line 215

def unit=(value)
  update_property('unit', value)
end