Google Cloud Monitoring v3 API - Class AlertPolicy.Types.Condition.Types.SqlCondition (3.13.0)

public sealed class AlertPolicy.Types.Condition.Types.SqlCondition : IMessage<AlertPolicy.Types.Condition.Types.SqlCondition>, IEquatable<AlertPolicy.Types.Condition.Types.SqlCondition>, IDeepCloneable<AlertPolicy.Types.Condition.Types.SqlCondition>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Monitoring v3 API class AlertPolicy.Types.Condition.Types.SqlCondition.

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.

Inheritance

object > AlertPolicy.Types.Condition.Types.SqlCondition

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Constructors

SqlCondition()

public SqlCondition()

SqlCondition(SqlCondition)

public SqlCondition(AlertPolicy.Types.Condition.Types.SqlCondition other)
Parameter
Name Description
other AlertPolicyTypesConditionTypesSqlCondition

Properties

BooleanTest

public AlertPolicy.Types.Condition.Types.SqlCondition.Types.BooleanTest BooleanTest { get; set; }

Test the boolean value in the indicated column.

Property Value
Type Description
AlertPolicyTypesConditionTypesSqlConditionTypesBooleanTest

Daily

public AlertPolicy.Types.Condition.Types.SqlCondition.Types.Daily Daily { get; set; }

Schedule the query to execute every so many days.

Property Value
Type Description
AlertPolicyTypesConditionTypesSqlConditionTypesDaily

EvaluateCase

public AlertPolicy.Types.Condition.Types.SqlCondition.EvaluateOneofCase EvaluateCase { get; }
Property Value
Type Description
AlertPolicyTypesConditionTypesSqlConditionEvaluateOneofCase

Hourly

public AlertPolicy.Types.Condition.Types.SqlCondition.Types.Hourly Hourly { get; set; }

Schedule the query to execute every so many hours.

Property Value
Type Description
AlertPolicyTypesConditionTypesSqlConditionTypesHourly

Minutes

public AlertPolicy.Types.Condition.Types.SqlCondition.Types.Minutes Minutes { get; set; }

Schedule the query to execute every so many minutes.

Property Value
Type Description
AlertPolicyTypesConditionTypesSqlConditionTypesMinutes

Query

public string Query { get; set; }

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
Property Value
Type Description
string

RowCountTest

public AlertPolicy.Types.Condition.Types.SqlCondition.Types.RowCountTest RowCountTest { get; set; }

Test the row count against a threshold.

Property Value
Type Description
AlertPolicyTypesConditionTypesSqlConditionTypesRowCountTest

ScheduleCase

public AlertPolicy.Types.Condition.Types.SqlCondition.ScheduleOneofCase ScheduleCase { get; }
Property Value
Type Description
AlertPolicyTypesConditionTypesSqlConditionScheduleOneofCase