Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfig
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfig
- 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
Message to be used to configure custom alerting in the @code EventConfig
protos for an event.
Instance Attribute Summary collapse
-
#aggregation_period ⇒ String
The period over which the metric value should be aggregated and evaluated.
-
#alert_threshold ⇒ Fixnum
For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.
-
#disable_alert ⇒ Boolean
(also: #disable_alert?)
Set to false by default.
-
#display_name ⇒ String
Name of the alert.
-
#duration_threshold ⇒ String
Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION metrics.
-
#metric_type ⇒ String
The type of metric.
-
#only_final_attempt ⇒ Boolean
(also: #only_final_attempt?)
For either events or tasks, depending on the type of alert, count only final attempts, not retries.
-
#threshold_type ⇒ String
The threshold type, whether lower(expected_min) or upper(expected_max), for which this alert is being configured.
-
#threshold_value ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue
The threshold value of the metric, above or below which the alert should be triggered.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaIntegrationAlertConfig
constructor
A new instance of GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaIntegrationAlertConfig
Returns a new instance of GoogleCloudIntegrationsV1alphaIntegrationAlertConfig.
6453 6454 6455 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregation_period ⇒ String
The period over which the metric value should be aggregated and evaluated.
Format is , where integer should be a positive integer and unit should be one
of (s,m,h,d,w) meaning (second, minute, hour, day, week). For an EXPECTED_MIN
threshold, this aggregation_period must be lesser than 24 hours.
Corresponds to the JSON property aggregationPeriod
6393 6394 6395 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6393 def aggregation_period @aggregation_period end |
#alert_threshold ⇒ Fixnum
For how many contiguous aggregation periods should the expected min or max be
violated for the alert to be fired.
Corresponds to the JSON property alertThreshold
6399 6400 6401 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6399 def alert_threshold @alert_threshold end |
#disable_alert ⇒ Boolean Also known as: disable_alert?
Set to false by default. When set to true, the metrics are not aggregated or
pushed to Monarch for this integration alert.
Corresponds to the JSON property disableAlert
6405 6406 6407 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6405 def disable_alert @disable_alert end |
#display_name ⇒ String
Name of the alert. This will be displayed in the alert subject. If set, this
name should be unique within the scope of the integration.
Corresponds to the JSON property displayName
6412 6413 6414 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6412 def display_name @display_name end |
#duration_threshold ⇒ String
Should be specified only for *AVERAGE_DURATION and *PERCENTILE_DURATION
metrics. This member should be used to specify what duration value the metrics
should exceed for the alert to trigger.
Corresponds to the JSON property durationThreshold
6419 6420 6421 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6419 def duration_threshold @duration_threshold end |
#metric_type ⇒ String
The type of metric.
Corresponds to the JSON property metricType
6424 6425 6426 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6424 def metric_type @metric_type end |
#only_final_attempt ⇒ Boolean Also known as: only_final_attempt?
For either events or tasks, depending on the type of alert, count only final
attempts, not retries.
Corresponds to the JSON property onlyFinalAttempt
6430 6431 6432 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6430 def only_final_attempt @only_final_attempt end |
#threshold_type ⇒ String
The threshold type, whether lower(expected_min) or upper(expected_max), for
which this alert is being configured. If value falls below expected_min or
exceeds expected_max, an alert will be fired.
Corresponds to the JSON property thresholdType
6438 6439 6440 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6438 def threshold_type @threshold_type end |
#threshold_value ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue
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.
Corresponds to the JSON property thresholdValue
6451 6452 6453 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6451 def threshold_value @threshold_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6458 def update!(**args) @aggregation_period = args[:aggregation_period] if args.key?(:aggregation_period) @alert_threshold = args[:alert_threshold] if args.key?(:alert_threshold) @disable_alert = args[:disable_alert] if args.key?(:disable_alert) @display_name = args[:display_name] if args.key?(:display_name) @duration_threshold = args[:duration_threshold] if args.key?(:duration_threshold) @metric_type = args[:metric_type] if args.key?(:metric_type) @only_final_attempt = args[:only_final_attempt] if args.key?(:only_final_attempt) @threshold_type = args[:threshold_type] if args.key?(:threshold_type) @threshold_value = args[:threshold_value] if args.key?(:threshold_value) end |