Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue
- 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.
Instance Attribute Summary collapse
-
#absolute ⇒ Fixnum
Absolute value threshold.
-
#percentage ⇒ Fixnum
Percentage threshold.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue
constructor
A new instance of GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue
Returns a new instance of GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue.
6641 6642 6643 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6641 def initialize(**args) update!(**args) end |
Instance Attribute Details
#absolute ⇒ Fixnum
Absolute value threshold.
Corresponds to the JSON property absolute
6634 6635 6636 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6634 def absolute @absolute end |
#percentage ⇒ Fixnum
Percentage threshold.
Corresponds to the JSON property percentage
6639 6640 6641 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6639 def percentage @percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6646 6647 6648 6649 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6646 def update!(**args) @absolute = args[:absolute] if args.key?(:absolute) @percentage = args[:percentage] if args.key?(:percentage) end |