Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue

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

Overview

The threshold value of the metric, above or below which the alert should be triggered. See EventAlertConfig or TaskAlertConfig for the different alert metric types in each case. For the *RATE metrics, one or both of these fields may be set. Zero is the default value and can be left at that. For * PERCENTILE_DURATION metrics, one or both of these fields may be set, and also, the duration threshold value should be specified in the threshold_duration_ms member below. For *AVERAGE_DURATION metrics, these fields should not be set at all. A different member, threshold_duration_ms, must be set in the EventAlertConfig or the TaskAlertConfig. See go/eventbus-alert-config-examples

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue

Returns a new instance of EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.



236
237
238
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 236

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

Instance Attribute Details

#absoluteFixnum

Corresponds to the JSON property absolute

Returns:

  • (Fixnum)


229
230
231
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 229

def absolute
  @absolute
end

#percentageFixnum

Corresponds to the JSON property percentage

Returns:

  • (Fixnum)


234
235
236
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 234

def percentage
  @percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



241
242
243
244
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 241

def update!(**args)
  @absolute = args[:absolute] if args.key?(:absolute)
  @percentage = args[:percentage] if args.key?(:percentage)
end