Class: Google::Apis::ToolresultsV1beta3::BasicPerfSampleSeries

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

Encapsulates the metadata for basic sample series represented by a line chart

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) ⇒ BasicPerfSampleSeries

Returns a new instance of BasicPerfSampleSeries



110
111
112
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 110

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

Instance Attribute Details

#perf_metric_typeString

Corresponds to the JSON property perfMetricType

Returns:

  • (String)


98
99
100
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 98

def perf_metric_type
  @perf_metric_type
end

#perf_unitString

Corresponds to the JSON property perfUnit

Returns:

  • (String)


103
104
105
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 103

def perf_unit
  @perf_unit
end

#sample_series_labelString

Corresponds to the JSON property sampleSeriesLabel

Returns:

  • (String)


108
109
110
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 108

def sample_series_label
  @sample_series_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



115
116
117
118
119
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 115

def update!(**args)
  @perf_metric_type = args[:perf_metric_type] if args.key?(:perf_metric_type)
  @perf_unit = args[:perf_unit] if args.key?(:perf_unit)
  @sample_series_label = args[:sample_series_label] if args.key?(:sample_series_label)
end