Class: ESP::StatSignature
- Inherits:
-
Resource
show all
- Defined in:
- lib/esp/resources/stat_signature.rb
'total' rollup methods
collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Dirty
#changed_attributes, #original_attributes, #original_attributes=
#load
Class Method Details
.create ⇒ void
This method returns an undefined value.
Not Implemented. You cannot create a Stat.
|
# File 'lib/esp/resources/stat_signature.rb', line 71
|
Find a StatRegion by id
call-seq -> super.find(id, options = {})
62
63
64
65
66
67
68
69
|
# File 'lib/esp/resources/stat_signature.rb', line 62
def self.find(*arguments)
scope = arguments.slice!(0)
options = (arguments.slice!(0) || {}).with_indifferent_access
return super(scope, options) if scope.is_a?(Numeric) || options[:from].present?
params = options.fetch(:params, {}).with_indifferent_access
stat_id = params.delete(:stat_id)
for_stat(stat_id)
end
|
Returns a paginated collection of signature stats for the given stat_id Convenience method to use instead of find since a stat_id is required to return signature stats.
33
34
35
36
37
|
# File 'lib/esp/resources/stat_signature.rb', line 33
def self.for_stat(stat_id = nil, options = {}) fail ArgumentError, "You must supply a stat id." unless stat_id.present?
from = "#{prefix}stats/#{stat_id}/signatures.json"
find(:all, from: from, params: options)
end
|
.where ⇒ void
This method returns an undefined value.
Not Implemented. You cannot search for a StatSignature.
13
14
15
|
# File 'lib/esp/resources/stat_signature.rb', line 13
def self.where(*)
fail ESP::NotImplementedError
end
|
Instance Method Details
#destroy ⇒ void
This method returns an undefined value.
Not Implemented. You cannot delete a Stat.
|
# File 'lib/esp/resources/stat_signature.rb', line 81
|
#save ⇒ void
This method returns an undefined value.
Not Implemented. You cannot create or update a Stat.
|
# File 'lib/esp/resources/stat_signature.rb', line 76
|
The signature these stats are for.
8
|
# File 'lib/esp/resources/stat_signature.rb', line 8
belongs_to :signature, class_name: 'ESP::Signature'
|
#total ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 88
|
#total_error ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 96
|
#total_fail ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 92
|
#total_info ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 98
|
#total_new_1d ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 152
|
#total_new_1d_error ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 116
|
#total_new_1d_fail ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 112
|
#total_new_1d_info ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 118
|
#total_new_1d_pass ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 110
|
#total_new_1d_warn ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 114
|
#total_new_1h ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 150
|
#total_new_1h_error ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 106
|
#total_new_1h_fail ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 102
|
#total_new_1h_info ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 108
|
#total_new_1h_pass ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 100
|
#total_new_1h_warn ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 104
|
#total_new_1w ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 154
|
#total_new_1w_error ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 124
|
#total_new_1w_fail ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 122
|
#total_new_1w_info ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 126
|
#total_new_1w_pass ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 120
|
#total_new_1w_warn ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 128
|
#total_old ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 156
|
#total_old_error ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 136
|
#total_old_fail ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 130
|
#total_old_info ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 138
|
#total_old_pass ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 132
|
#total_old_warn ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 134
|
#total_pass ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 90
|
#total_suppressed ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 140
|
#total_suppressed_error ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 148
|
#total_suppressed_fail ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 144
|
#total_suppressed_pass ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 142
|
#total_suppressed_warn ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 146
|
#total_warn ⇒ Object
|
# File 'lib/esp/resources/stat_signature.rb', line 94
|