Class: Humidifier::Lightsail::Alarm

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

Overview

A dynamically-defined class that represents an AWS::Lightsail::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

#alarm_nameObject

returns the AlarmName property



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

def alarm_name
  properties['alarm_name']
end

#alarm_name=(value) ⇒ Object

sets the AlarmName property (String)



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

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

#comparison_operatorObject

returns the ComparisonOperator property



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

def comparison_operator
  properties['comparison_operator']
end

#comparison_operator=(value) ⇒ Object

sets the ComparisonOperator property (String)



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

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

#contact_protocolsObject

returns the ContactProtocols property



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

def contact_protocols
  properties['contact_protocols']
end

#contact_protocols=(value) ⇒ Object

sets the ContactProtocols property (List)



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

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

#datapoints_to_alarmObject

returns the DatapointsToAlarm property



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

def datapoints_to_alarm
  properties['datapoints_to_alarm']
end

#datapoints_to_alarm=(value) ⇒ Object

sets the DatapointsToAlarm property (Integer)



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

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

#evaluation_periodsObject

returns the EvaluationPeriods property



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

def evaluation_periods
  properties['evaluation_periods']
end

#evaluation_periods=(value) ⇒ Object

sets the EvaluationPeriods property (Integer)



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

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

#metric_nameObject

returns the MetricName property



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

def metric_name
  properties['metric_name']
end

#metric_name=(value) ⇒ Object

sets the MetricName property (String)



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

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

#monitored_resource_nameObject

returns the MonitoredResourceName property



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

def monitored_resource_name
  properties['monitored_resource_name']
end

#monitored_resource_name=(value) ⇒ Object

sets the MonitoredResourceName property (String)



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

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

#notification_enabledObject

returns the NotificationEnabled property



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

def notification_enabled
  properties['notification_enabled']
end

#notification_enabled=(value) ⇒ Object

sets the NotificationEnabled property (Boolean)



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

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

#notification_triggersObject

returns the NotificationTriggers property



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

def notification_triggers
  properties['notification_triggers']
end

#notification_triggers=(value) ⇒ Object

sets the NotificationTriggers property (List)



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

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

#thresholdObject

returns the Threshold property



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

def threshold
  properties['threshold']
end

#threshold=(value) ⇒ Object

sets the Threshold property (Double)



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

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

#treat_missing_dataObject

returns the TreatMissingData property



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

def treat_missing_data
  properties['treat_missing_data']
end

#treat_missing_data=(value) ⇒ Object

sets the TreatMissingData property (String)



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

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