Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult
- 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
-
#metric_type ⇒ String
Type identifier of the metric corresponding to this query result.
-
#name ⇒ String
This metric query name is mapping to variables in the requirement_condition.
-
#timestamp ⇒ String
Time corresponding to when this metric value was calculated.
-
#unit ⇒ String
The unit in which this metric is reported.
-
#value ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleMonitoringV3TypedValue
A single strongly-typed value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult
Returns a new instance of GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult.
4448 4449 4450 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_type ⇒ String
Type identifier of the metric corresponding to this query result.
Corresponds to the JSON property metricType
4425 4426 4427 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4425 def metric_type @metric_type end |
#name ⇒ String
This metric query name is mapping to variables in the requirement_condition.
Corresponds to the JSON property name
4430 4431 4432 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4430 def name @name end |
#timestamp ⇒ String
Time corresponding to when this metric value was calculated.
Corresponds to the JSON property timestamp
4435 4436 4437 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4435 def @timestamp end |
#unit ⇒ String
The unit in which this metric is reported. Follows The Unified Code for Units
of Measure standard.
Corresponds to the JSON property unit
4441 4442 4443 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4441 def unit @unit end |
#value ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleMonitoringV3TypedValue
A single strongly-typed value.
Corresponds to the JSON property value
4446 4447 4448 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4446 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4453 4454 4455 4456 4457 4458 4459 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4453 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 |