Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding

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

Specifies a metrics query and bind its result to a variable which will be used in the condition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding

Returns a new instance of GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding.



9205
9206
9207
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9205

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

Instance Attribute Details

#categoryString

The category of the metric's target resource. Example: "Events" Corresponds to the JSON property category

Returns:

  • (String)


9181
9182
9183
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9181

def category
  @category
end

#descriptionString

Human readable description of the corresponding metric filter. Corresponds to the JSON property description

Returns:

  • (String)


9186
9187
9188
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9186

def description
  @description
end

#metric_filterString

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

Returns:

  • (String)


9193
9194
9195
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9193

def metric_filter
  @metric_filter
end

#resource_typeString

The resource being monitored for the metric. Corresponds to the JSON property resourceType

Returns:

  • (String)


9198
9199
9200
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9198

def resource_type
  @resource_type
end

#variable_idString

The variable id to be referenced in condition. Corresponds to the JSON property variableId

Returns:

  • (String)


9203
9204
9205
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9203

def variable_id
  @variable_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9210
9211
9212
9213
9214
9215
9216
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9210

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