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

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

Overview

Resource representing a single performance measure or data point

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PerfSample

Returns a new instance of PerfSample.



2276
2277
2278
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2276

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



2269
2270
2271
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2269

def sample_time
  @sample_time
end

#valueFloat

Value observed Corresponds to the JSON property value

Returns:

  • (Float)


2274
2275
2276
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2274

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2281
2282
2283
2284
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2281

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