class OpenCensus::Stats::AggregationData::LastValue
Represents the last recorded value.
Attributes
time[R]
@return [Time] The latest time at new data point was recorded
value[R]
@return [Integer,Float] Last recorded value.
Public Instance Methods
add(value, time, attachments: nil)
click to toggle source
Set last value @param [Integer,Float] value @param [Time] time Time of data point was recorded @param [Hash<String,String>] attachments Attachments are not in use
# File lib/opencensus/stats/aggregation_data/last_value.rb, line 23 def add value, time, attachments: nil @time = time @value = value end