Sha256: 3afbf1668b36af1872e965ef6c82b81d39d42d2288cca598c337da156276a8e1
Contents?: true
Size: 993 Bytes
Versions: 4
Compression:
Stored size: 993 Bytes
Contents
require 'fog/huaweicloud/models/model' module Fog module Monitoring class HuaweiCloud class Alarm < Fog::HuaweiCloud::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
4 entries across 4 versions & 1 rubygems