Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudIntegrationsV1alphaIntegrationAlertConfig

import type { GoogleCloudIntegrationsV1alphaIntegrationAlertConfig } from "https://googleapis.deno.dev/v1/integrations:v1.ts";

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

interface GoogleCloudIntegrationsV1alphaIntegrationAlertConfig {
aggregationPeriod?: string;
alertThreshold?: number;
disableAlert?: boolean;
displayName?: string;
durationThreshold?: number;
metricType?:
| "METRIC_TYPE_UNSPECIFIED"
| "EVENT_ERROR_RATE"
| "EVENT_WARNING_RATE"
| "TASK_ERROR_RATE"
| "TASK_WARNING_RATE"
| "TASK_RATE"
| "EVENT_RATE"
| "EVENT_AVERAGE_DURATION"
| "EVENT_PERCENTILE_DURATION"
| "TASK_AVERAGE_DURATION"
| "TASK_PERCENTILE_DURATION";
onlyFinalAttempt?: boolean;
thresholdType?: "THRESHOLD_TYPE_UNSPECIFIED" | "EXPECTED_MIN" | "EXPECTED_MAX";
}

§Properties

§
aggregationPeriod?: string
[src]

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.

§
alertThreshold?: number
[src]

For how many contiguous aggregation periods should the expected min or max be violated for the alert to be fired.

§
disableAlert?: boolean
[src]

Set to false by default. When set to true, the metrics are not aggregated or pushed to Monarch for this integration alert.

§
displayName?: string
[src]

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.

§
durationThreshold?: number
[src]

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.

§
metricType?: "METRIC_TYPE_UNSPECIFIED" | "EVENT_ERROR_RATE" | "EVENT_WARNING_RATE" | "TASK_ERROR_RATE" | "TASK_WARNING_RATE" | "TASK_RATE" | "EVENT_RATE" | "EVENT_AVERAGE_DURATION" | "EVENT_PERCENTILE_DURATION" | "TASK_AVERAGE_DURATION" | "TASK_PERCENTILE_DURATION"
[src]

The type of metric.

§
onlyFinalAttempt?: boolean
[src]

For either events or tasks, depending on the type of alert, count only final attempts, not retries.

§
thresholdType?: "THRESHOLD_TYPE_UNSPECIFIED" | "EXPECTED_MIN" | "EXPECTED_MAX"
[src]

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 metric value, above or below which the alert should be triggered.