Class: Fluent::LibratoMetricsOutput::MetricsMixin::Data
- Inherits:
-
Object
- Object
- Fluent::LibratoMetricsOutput::MetricsMixin::Data
- Defined in:
- lib/fluent/plugin/out_librato_metrics_mixin.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#count_key ⇒ Object
readonly
Returns the value of attribute count_key.
-
#each_keys ⇒ Object
readonly
Returns the value of attribute each_keys.
-
#keys ⇒ Object
Returns the value of attribute keys.
-
#metrics ⇒ Object
readonly
Returns the value of attribute metrics.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
-
#value_key ⇒ Object
readonly
Returns the value of attribute value_key.
Instance Method Summary collapse
-
#initialize(metrics) ⇒ Data
constructor
A new instance of Data.
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
#count ⇒ Object
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_key ⇒ Object (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_keys ⇒ Object (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 |
#keys ⇒ Object
Returns the value of attribute keys.
75 76 77 |
# File 'lib/fluent/plugin/out_librato_metrics_mixin.rb', line 75 def keys @keys end |
#metrics ⇒ Object (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 |
#name ⇒ Object (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 |
#value ⇒ Object
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_key ⇒ Object (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 |