mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
26 lines
511 B
Ruby
26 lines
511 B
Ruby
require 'fog/joyent/models/analytics/instrumentation'
|
|
|
|
module Fog
|
|
module Joyent
|
|
class Analytics
|
|
class Instrumentations < Fog::Collection
|
|
|
|
model Fog::Joyent::Analytics::Instrumentation
|
|
|
|
def all
|
|
data = service.list_instrumentations.body
|
|
load(data)
|
|
end
|
|
|
|
def get(id)
|
|
data = service.get_instrumentation(id).body
|
|
new(data)
|
|
rescue Fog::Compute::Joyent::Errors::NotFound
|
|
nil
|
|
end
|
|
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|