Class: Fluent::LibratoMetricsOutput::MetricsMixin::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/out_librato_metrics_mixin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metrics) ⇒ Data

Returns a new instance of Data.



65
66
67
68
69
70
71
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 65

def initialize(metrics)
  @metrics = metrics
  @name = metrics.name
  @each_keys = metrics.each_keys
  @value_key = metrics.value_key
  @count_key = metrics.count_key
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



75
76
77
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 75

def count
  @count
end

#count_keyObject (readonly)

Returns the value of attribute count_key.



74
75
76
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 74

def count_key
  @count_key
end

#each_keysObject (readonly)

Returns the value of attribute each_keys.



74
75
76
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 74

def each_keys
  @each_keys
end

#keysObject

Returns the value of attribute keys.



75
76
77
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 75

def keys
  @keys
end

#metricsObject (readonly)

Returns the value of attribute metrics.



73
74
75
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 73

def metrics
  @metrics
end

#nameObject (readonly)

Returns the value of attribute name.



74
75
76
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 74

def name
  @name
end

#valueObject

Returns the value of attribute value.



75
76
77
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 75

def value
  @value
end

#value_keyObject (readonly)

Returns the value of attribute value_key.



74
75
76
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 74

def value_key
  @value_key
end