Class: Google::Apis::ToolresultsV1beta3::PerfSample

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/toolresults_v1beta3/classes.rb,
lib/google/apis/toolresults_v1beta3/representations.rb,
lib/google/apis/toolresults_v1beta3/representations.rb

Overview

Resource representing a single performance measure or data point

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerfSample

Returns a new instance of PerfSample.



2224
2225
2226
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2224

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#sample_timeGoogle::Apis::ToolresultsV1beta3::Timestamp

A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one. All minutes are 60 seconds long. Leap seconds are " smeared" so that no leap second table is needed for interpretation, using a 24-hour linear smear. The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings. Corresponds to the JSON property sampleTime



2217
2218
2219
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2217

def sample_time
  @sample_time
end

#valueFloat

Value observed Corresponds to the JSON property value

Returns:

  • (Float)


2222
2223
2224
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2222

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2229
2230
2231
2232
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2229

def update!(**args)
  @sample_time = args[:sample_time] if args.key?(:sample_time)
  @value = args[:value] if args.key?(:value)
end