Sha256: a84c0cc9a7a706c269c16149ac5baebda6a9ea8543bf5ea36d65f93efd0bbf5d
Contents?: true
Size: 987 Bytes
Versions: 22
Compression:
Stored size: 987 Bytes
Contents
require 'fog/openstack/models/model' module Fog module OpenStack class Monitoring class Alarm < Fog::OpenStack::Model identity :id attribute :links attribute :link attribute :alarm_definition attribute :metrics attribute :state attribute :lifecycle_state attribute :state_updated_timestamp attribute :updated_timestamp attribute :created_timestamp def update(attr = nil) requires :id merge_attributes( service.update_alarm(id, attr || attributes).body ) self end def patch(attr = nil) requires :id merge_attributes( service.patch_alarm(id, attr || attributes).body ) self end def destroy requires :id service.delete_alarm(id) true end def to_s name end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems