Class 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.
Implements
Inherited Members
Namespace: Google.Apis.Monitoring.v3.Data
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class SqlCondition : IDirectResponseSchema
Properties
BooleanTest
Test the boolean value in the indicated column.
Declaration
[JsonProperty("booleanTest")]
public virtual BooleanTest BooleanTest { get; set; }
Property Value
| Type | Description |
|---|---|
| BooleanTest |
Daily
Schedule the query to execute every so many days.
Declaration
[JsonProperty("daily")]
public virtual Daily Daily { get; set; }
Property Value
| Type | Description |
|---|---|
| Daily |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Hourly
Schedule the query to execute every so many hours.
Declaration
[JsonProperty("hourly")]
public virtual Hourly Hourly { get; set; }
Property Value
| Type | Description |
|---|---|
| Hourly |
Minutes
Schedule the query to execute every so many minutes.
Declaration
[JsonProperty("minutes")]
public virtual Minutes Minutes { get; set; }
Property Value
| Type | Description |
|---|---|
| Minutes |
Query
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
Declaration
[JsonProperty("query")]
public virtual string Query { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RowCountTest
Test the row count against a threshold.
Declaration
[JsonProperty("rowCountTest")]
public virtual RowCountTest RowCountTest { get; set; }
Property Value
| Type | Description |
|---|---|
| RowCountTest |