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.



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

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.



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

def count
  @count
end

#count_keyObject (readonly)

Returns the value of attribute count_key.



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

def count_key
  @count_key
end

#each_keysObject (readonly)

Returns the value of attribute each_keys.



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

def each_keys
  @each_keys
end

#keysObject

Returns the value of attribute keys.



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

def keys
  @keys
end

#metricsObject (readonly)

Returns the value of attribute metrics.



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

def metrics
  @metrics
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

#value_keyObject (readonly)

Returns the value of attribute value_key.



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

def value_key
  @value_key
end