Class: Opentsdb::QueryRateOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/opentsdb/query_rate_options.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(counter, counter_max, reset_value) ⇒ QueryRateOptions

Returns a new instance of QueryRateOptions.



6
7
8
9
10
# File 'lib/opentsdb/query_rate_options.rb', line 6

def initialize(counter, counter_max, reset_value)
  @counter = counter
  @counter_max = counter_max
  @reset_value = reset_value
end

Instance Attribute Details

#counterObject

Returns the value of attribute counter.



4
5
6
# File 'lib/opentsdb/query_rate_options.rb', line 4

def counter
  @counter
end

#counter_maxObject

Returns the value of attribute counter_max.



4
5
6
# File 'lib/opentsdb/query_rate_options.rb', line 4

def counter_max
  @counter_max
end

#reset_valueObject

Returns the value of attribute reset_value.



4
5
6
# File 'lib/opentsdb/query_rate_options.rb', line 4

def reset_value
  @reset_value
end

Class Method Details

.defaultObject



12
13
14
# File 'lib/opentsdb/query_rate_options.rb', line 12

def self.default
  new(false, 9_999_999_999, 0)
end