Class: ESP::Dashboard

Inherits:
Resource
  • Object
show all
Defined in:
lib/esp/resources/dashboard.rb

Constant Summary

Constants inherited from Resource

Resource::PREDICATES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

arrange_options, filters, make_pageable, #serializable_hash

Class Method Details

.findObject

Not Implemented. You cannot search for a Dashboard.

Regular ARELlike methods are disabled.



6
7
8
# File 'lib/esp/resources/dashboard.rb', line 6

def self.find(*)
  fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled.  Use the .recent method.'
end

.recentObject

Returns a Dashboard object with data from reports run in the last 2 hours

Note

The dashboard is used internally for the dashboard page on esp.evident.io and is therefore not considered part of the public API and may change without notice.



33
34
35
36
# File 'lib/esp/resources/dashboard.rb', line 33

def self.recent
  # call find_every directly since find is overridden/not implemented
  find_every from: "#{prefix}dashboard/recent.#{format.extension}"
end

.whereObject

Not Implemented. You cannot search for a Dashboard.

Regular ARELlike methods are disabled.



13
14
15
# File 'lib/esp/resources/dashboard.rb', line 13

def self.where(*)
  fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled.  Use the .recent method.'
end

Instance Method Details

#destroyObject

Not Implemented. You cannot destroy a Dashboard.



23
24
25
# File 'lib/esp/resources/dashboard.rb', line 23

def destroy
  fail ESP::NotImplementedError
end

#saveObject

Not Implemented. You cannot create or update a Dashboard.



18
19
20
# File 'lib/esp/resources/dashboard.rb', line 18

def save
  fail ESP::NotImplementedError
end