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.



10235
10236
10237
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10235

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)


10211
10212
10213
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10211

def category
  @category
end

#descriptionString

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

Returns:

  • (String)


10216
10217
10218
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10216

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)


10223
10224
10225
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10223

def metric_filter
  @metric_filter
end

#resource_typeString

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

Returns:

  • (String)


10228
10229
10230
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10228

def resource_type
  @resource_type
end

#variable_idString

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

Returns:

  • (String)


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