Module: Smartdc::Api::Analytics

Included in:
Client
Defined in:
lib/smartdc/api/analytics.rb

Defined Under Namespace

Modules: Heatmap

Instance Method Summary collapse

Instance Method Details

#analytic(id) ⇒ Object



11
12
13
# File 'lib/smartdc/api/analytics.rb', line 11

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

#analytics(params = {}) ⇒ Object



3
4
5
# File 'lib/smartdc/api/analytics.rb', line 3

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

#create_analytic(body = {}) ⇒ Object



7
8
9
# File 'lib/smartdc/api/analytics.rb', line 7

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

#describe_analytics(params = {}) ⇒ Object



23
24
25
# File 'lib/smartdc/api/analytics.rb', line 23

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

#destroy_analytic(id) ⇒ Object



15
16
17
# File 'lib/smartdc/api/analytics.rb', line 15

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

#value_analytic(id) ⇒ Object



19
20
21
# File 'lib/smartdc/api/analytics.rb', line 19

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