Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult

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

Overview

Metric result. The metric are in the requirement_condition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult

Returns a new instance of GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult.



4311
4312
4313
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4311

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

Instance Attribute Details

#metric_typeString

Type identifier of the metric corresponding to this query result. Corresponds to the JSON property metricType

Returns:

  • (String)


4288
4289
4290
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4288

def metric_type
  @metric_type
end

#nameString

This metric query name is mapping to variables in the requirement_condition. Corresponds to the JSON property name

Returns:

  • (String)


4293
4294
4295
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4293

def name
  @name
end

#timestampString

Time corresponding to when this metric value was calculated. Corresponds to the JSON property timestamp

Returns:

  • (String)


4298
4299
4300
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4298

def timestamp
  @timestamp
end

#unitString

The unit in which this metric is reported. Follows The Unified Code for Units of Measure standard. Corresponds to the JSON property unit

Returns:

  • (String)


4304
4305
4306
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4304

def unit
  @unit
end

#valueGoogle::Apis::DiscoveryengineV1alpha::GoogleMonitoringV3TypedValue

A single strongly-typed value. Corresponds to the JSON property value



4309
4310
4311
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4309

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4316
4317
4318
4319
4320
4321
4322
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4316

def update!(**args)
  @metric_type = args[:metric_type] if args.key?(:metric_type)
  @name = args[:name] if args.key?(:name)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
  @unit = args[:unit] if args.key?(:unit)
  @value = args[:value] if args.key?(:value)
end