class Fog::Compute::OneAndOne::MonitoringPolicies

Public Instance Methods

all() click to toggle source
# File lib/oneandone/models/compute/monitoring_policies.rb, line 9
def all
  response = service.list_monitoring_policies
  load(response.body)
end
get(id) click to toggle source
# File lib/oneandone/models/compute/monitoring_policies.rb, line 14
def get(id)
  response = service.get_monitoring_policy(id)
  new(response.body)
rescue Excon::Errors::NotFound
  nil
end