Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding
- 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
Specifies a metrics query and bind its result to a variable which will be used
in the condition
.
Instance Attribute Summary collapse
-
#category ⇒ String
The category of the metric's target resource.
-
#description ⇒ String
Human readable description of the corresponding metric filter.
-
#metric_filter ⇒ String
The filter string used for metrics query.
-
#resource_type ⇒ String
The resource being monitored for the metric.
-
#variable_id ⇒ String
The variable id to be referenced in
condition
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding
Returns a new instance of GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding.
10235 10236 10237 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
The category of the metric's target resource. Example: "Events"
Corresponds to the JSON property category
10211 10212 10213 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10211 def category @category end |
#description ⇒ String
Human readable description of the corresponding metric filter.
Corresponds to the JSON property description
10216 10217 10218 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10216 def description @description end |
#metric_filter ⇒ String
The filter string used for metrics query. Example: "metric.type = \"
discoveryengine.googleapis.com/events/day_count\" AND " "metric.conditions.
time_range = \"NINETY_DAYS\""
Corresponds to the JSON property metricFilter
10223 10224 10225 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10223 def metric_filter @metric_filter end |
#resource_type ⇒ String
The resource being monitored for the metric.
Corresponds to the JSON property resourceType
10228 10229 10230 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10228 def resource_type @resource_type end |
#variable_id ⇒ String
The variable id to be referenced in condition
.
Corresponds to the JSON property variableId
10233 10234 10235 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10233 def variable_id @variable_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10240 10241 10242 10243 10244 10245 10246 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10240 def update!(**args) @category = args[:category] if args.key?(:category) @description = args[:description] if args.key?(:description) @metric_filter = args[:metric_filter] if args.key?(:metric_filter) @resource_type = args[:resource_type] if args.key?(:resource_type) @variable_id = args[:variable_id] if args.key?(:variable_id) end |