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

SqlCondition

import type { SqlCondition } from "https://googleapis.deno.dev/v1/monitoring:v3.ts";

A condition that allows alerting policies to be defined using GoogleSQL. SQL conditions examine a sliding window of logs using GoogleSQL. Alert policies with SQL conditions may incur additional billing.

interface SqlCondition {
booleanTest?: BooleanTest;
daily?: Daily;
hourly?: Hourly;
minutes?: Minutes;
query?: string;
rowCountTest?: RowCountTest;
}

§Properties

§
booleanTest?: BooleanTest
[src]

Test the boolean value in the indicated column.

§
daily?: Daily
[src]

Schedule the query to execute every so many days.

§
hourly?: Hourly
[src]

Schedule the query to execute every so many hours.

§
minutes?: Minutes
[src]

Schedule the query to execute every so many minutes.

§
query?: string
[src]

Required. The Log Analytics SQL query to run, as a string. The query must conform to the required shape. Specifically, the query must not try to filter the input by time. A filter will automatically be applied to filter the input so that the query receives all rows received since the last time the query was run.For example, the following query extracts all log entries containing an HTTP request:SELECT timestamp, log_name, severity, http_request, resource, labels FROM my-project.global._Default._AllLogs WHERE http_request IS NOT NULL

§
rowCountTest?: RowCountTest
[src]

Test the row count against a threshold.