Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/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.
Instance Attribute Summary collapse
-
#absolute ⇒ Fixnum
Corresponds to the JSON property
absolute
. -
#percentage ⇒ Fixnum
Corresponds to the JSON property
percentage
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue
constructor
A new instance of EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue
Returns a new instance of EnterpriseCrmEventbusProtoBaseAlertConfigThresholdValue.
248 249 250 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#absolute ⇒ Fixnum
Corresponds to the JSON property absolute
241 242 243 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 241 def absolute @absolute end |
#percentage ⇒ Fixnum
Corresponds to the JSON property percentage
246 247 248 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 246 def percentage @percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
253 254 255 256 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 253 def update!(**args) @absolute = args[:absolute] if args.key?(:absolute) @percentage = args[:percentage] if args.key?(:percentage) end |