Sha256: 07e5243c5e64da2621c9b89a39bea4686408d3086054da1c61719db6b58b0c4d

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

module Smartdc::Api
  module Analytics
    def analytics(params={})
      get 'my/analytics/instrumentations', params
    end

    def create_analytic(body={})
      post 'my/analytics/instrumentations', body
    end

    def analytic(id)
      get 'my/analytics/instrumentations/' + id.to_s
    end

    def destroy_analytic(id)
      delete 'my/analytics/instrumentations/' + id.to_s
    end

    def value_analytic(id)
      get 'my/analytics/instrumentations/' + id.to_s + '/value/raw'
    end

    def describe_analytics(params={})
      get 'my/analytics', params
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smartdc-2.0.2 lib/smartdc/api/analytics.rb
smartdc-2.0.1 lib/smartdc/api/analytics.rb
smartdc-2.0.0 lib/smartdc/api/analytics.rb