Class: Ask::Monitoring::Metrics::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ask/monitoring/metrics/base.rb

Direct Known Subclasses

Cost, ErrorCount, ResponseTime, Throughput

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/ask/monitoring/metrics/base.rb', line 7

def initialize(scope)
  @scope = scope
end

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



5
6
7
# File 'lib/ask/monitoring/metrics/base.rb', line 5

def scope
  @scope
end

Instance Method Details

#as_chart_dataObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/ask/monitoring/metrics/base.rb', line 11

def as_chart_data
  raise NotImplementedError
end