Class: Fog::Monitoring::OpenStack::Alarm
Instance Attribute Summary
#project
Instance Method Summary
collapse
#create, #initialize, #save
Instance Method Details
#destroy ⇒ Object
36
37
38
39
40
|
# File 'lib/fog/openstack/models/monitoring/alarm.rb', line 36
def destroy
requires :id
service.delete_alarm(id)
true
end
|
#patch(attr = nil) ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/fog/openstack/models/monitoring/alarm.rb', line 28
def patch(attr = nil)
requires :id
merge_attributes(
service.patch_alarm(id, attr || attributes).body
)
self
end
|
#to_s ⇒ Object
42
43
44
|
# File 'lib/fog/openstack/models/monitoring/alarm.rb', line 42
def to_s
name
end
|
#update(attr = nil) ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/fog/openstack/models/monitoring/alarm.rb', line 20
def update(attr = nil)
requires :id
merge_attributes(
service.update_alarm(id, attr || attributes).body
)
self
end
|