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