Class: Bosh::Monitor::Metric

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/monitor/metric.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value, timestamp, tags) ⇒ Metric

Returns a new instance of Metric.



9
10
11
12
13
14
# File 'lib/bosh/monitor/metric.rb', line 9

def initialize(name, value, timestamp, tags)
  @name = name
  @value = value
  @timestamp = timestamp
  @tags = tags
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/bosh/monitor/metric.rb', line 4

def name
  @name
end

#tagsObject

Returns the value of attribute tags.



7
8
9
# File 'lib/bosh/monitor/metric.rb', line 7

def tags
  @tags
end

#timestampObject

Returns the value of attribute timestamp.



6
7
8
# File 'lib/bosh/monitor/metric.rb', line 6

def timestamp
  @timestamp
end

#valueObject

Returns the value of attribute value.



5
6
7
# File 'lib/bosh/monitor/metric.rb', line 5

def value
  @value
end