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

Instance Attribute Details

#collection_intervalLong (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

Returns:

  • (Long)

    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

#typeString (readonly)

Returns GAUGE, COUNTER, etc.

Returns:

  • (String)

    GAUGE, COUNTER, etc.



81
82
83
# File 'lib/hawkular/inventory/entities.rb', line 81

def type
  @type
end

#unitString (readonly)

Returns metric unit such as NONE, BYTES, etc.

Returns:

  • (String)

    metric unit such as NONE, BYTES, etc.



83
84
85
# File 'lib/hawkular/inventory/entities.rb', line 83

def unit
  @unit
end