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

Constructor Details

#initialize(**args) ⇒ PerfSample

Returns a new instance of PerfSample.



2184
2185
2186
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2184

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



2177
2178
2179
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2177

def sample_time
  @sample_time
end

#valueFloat

Value observed Corresponds to the JSON property value

Returns:

  • (Float)


2182
2183
2184
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2182

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2189
2190
2191
2192
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2189

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