Module: Hawkular::Inventory::MetricFields
- Included in:
- Metric, MetricType
- Defined in:
- lib/hawkular/inventory/entities.rb
Overview
Fields that are common for MetricType and Metric
Instance Attribute Summary collapse
-
#collection_interval ⇒ Long
readonly
Collection interval in seconds, it has different semantics for MetricType and for Metric for MetricType it's a default that will be applied to all the metric of that type, in the Metric this can be overridden.
-
#type ⇒ String
readonly
GAUGE, COUNTER, etc.
-
#unit ⇒ String
readonly
Metric unit such as NONE, BYTES, etc.
Instance Attribute Details
#collection_interval ⇒ Long (readonly)
Returns collection interval in seconds, it has different semantics for MetricType and for Metric for MetricType it's a default that will be applied to all the metric of that type, in the Metric this can be overridden
87 88 89 |
# File 'lib/hawkular/inventory/entities.rb', line 87 def collection_interval @collection_interval end |
#type ⇒ String (readonly)
Returns GAUGE, COUNTER, etc.
81 82 83 |
# File 'lib/hawkular/inventory/entities.rb', line 81 def type @type end |
#unit ⇒ String (readonly)
Returns metric unit such as NONE, BYTES, etc.
83 84 85 |
# File 'lib/hawkular/inventory/entities.rb', line 83 def unit @unit end |