All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaIntegrationAlertConfig Maven / Gradle / Ivy

/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.integrations.v1alpha.model;

/**
 * Message to be used to configure custom alerting in the {@code EventConfig} protos for an event.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Application Integration API. For a detailed * explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudIntegrationsV1alphaIntegrationAlertConfig extends com.google.api.client.json.GenericJson { /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String aggregationPeriod; /** * For how many contiguous aggregation periods should the expected min or max be violated for the * alert to be fired. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer alertThreshold; /** * Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch * for this integration alert. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean disableAlert; /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private String durationThreshold; /** * The type of metric. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String metricType; /** * For either events or tasks, depending on the type of alert, count only final attempts, not * retries. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean onlyFinalAttempt; /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String thresholdType; /** * The metric value, above or below which the alert should be triggered. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue thresholdValue; /** * 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. * @return value or {@code null} for none */ public java.lang.String getAggregationPeriod() { return aggregationPeriod; } /** * 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. * @param aggregationPeriod aggregationPeriod or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setAggregationPeriod(java.lang.String aggregationPeriod) { this.aggregationPeriod = aggregationPeriod; return this; } /** * For how many contiguous aggregation periods should the expected min or max be violated for the * alert to be fired. * @return value or {@code null} for none */ public java.lang.Integer getAlertThreshold() { return alertThreshold; } /** * For how many contiguous aggregation periods should the expected min or max be violated for the * alert to be fired. * @param alertThreshold alertThreshold or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setAlertThreshold(java.lang.Integer alertThreshold) { this.alertThreshold = alertThreshold; return this; } /** * Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch * for this integration alert. * @return value or {@code null} for none */ public java.lang.Boolean getDisableAlert() { return disableAlert; } /** * Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch * for this integration alert. * @param disableAlert disableAlert or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setDisableAlert(java.lang.Boolean disableAlert) { this.disableAlert = disableAlert; return this; } /** * 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. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { return displayName; } /** * 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. * @param displayName displayName or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setDisplayName(java.lang.String displayName) { this.displayName = displayName; return this; } /** * 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. * @return value or {@code null} for none */ public String getDurationThreshold() { return durationThreshold; } /** * 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. * @param durationThreshold durationThreshold or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setDurationThreshold(String durationThreshold) { this.durationThreshold = durationThreshold; return this; } /** * The type of metric. * @return value or {@code null} for none */ public java.lang.String getMetricType() { return metricType; } /** * The type of metric. * @param metricType metricType or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setMetricType(java.lang.String metricType) { this.metricType = metricType; return this; } /** * For either events or tasks, depending on the type of alert, count only final attempts, not * retries. * @return value or {@code null} for none */ public java.lang.Boolean getOnlyFinalAttempt() { return onlyFinalAttempt; } /** * For either events or tasks, depending on the type of alert, count only final attempts, not * retries. * @param onlyFinalAttempt onlyFinalAttempt or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setOnlyFinalAttempt(java.lang.Boolean onlyFinalAttempt) { this.onlyFinalAttempt = onlyFinalAttempt; return this; } /** * 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. * @return value or {@code null} for none */ public java.lang.String getThresholdType() { return thresholdType; } /** * 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. * @param thresholdType thresholdType or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setThresholdType(java.lang.String thresholdType) { this.thresholdType = thresholdType; return this; } /** * The metric value, above or below which the alert should be triggered. * @return value or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue getThresholdValue() { return thresholdValue; } /** * The metric value, above or below which the alert should be triggered. * @param thresholdValue thresholdValue or {@code null} for none */ public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig setThresholdValue(GoogleCloudIntegrationsV1alphaIntegrationAlertConfigThresholdValue thresholdValue) { this.thresholdValue = thresholdValue; return this; } @Override public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig set(String fieldName, Object value) { return (GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) super.set(fieldName, value); } @Override public GoogleCloudIntegrationsV1alphaIntegrationAlertConfig clone() { return (GoogleCloudIntegrationsV1alphaIntegrationAlertConfig) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy