Interface AlertPolicy.Condition.SqlConditionOrBuilder (3.57.0)

public static interface AlertPolicy.Condition.SqlConditionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBooleanTest()

public abstract AlertPolicy.Condition.SqlCondition.BooleanTest getBooleanTest()

Test the boolean value in the indicated column.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.BooleanTest

The booleanTest.

getBooleanTestOrBuilder()

public abstract AlertPolicy.Condition.SqlCondition.BooleanTestOrBuilder getBooleanTestOrBuilder()

Test the boolean value in the indicated column.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.BooleanTestOrBuilder

getDaily()

public abstract AlertPolicy.Condition.SqlCondition.Daily getDaily()

Schedule the query to execute every so many days.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.Daily

The daily.

getDailyOrBuilder()

public abstract AlertPolicy.Condition.SqlCondition.DailyOrBuilder getDailyOrBuilder()

Schedule the query to execute every so many days.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.DailyOrBuilder

getEvaluateCase()

public abstract AlertPolicy.Condition.SqlCondition.EvaluateCase getEvaluateCase()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.EvaluateCase

getHourly()

public abstract AlertPolicy.Condition.SqlCondition.Hourly getHourly()

Schedule the query to execute every so many hours.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.Hourly

The hourly.

getHourlyOrBuilder()

public abstract AlertPolicy.Condition.SqlCondition.HourlyOrBuilder getHourlyOrBuilder()

Schedule the query to execute every so many hours.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.HourlyOrBuilder

getMinutes()

public abstract AlertPolicy.Condition.SqlCondition.Minutes getMinutes()

Schedule the query to execute every so many minutes.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.Minutes

The minutes.

getMinutesOrBuilder()

public abstract AlertPolicy.Condition.SqlCondition.MinutesOrBuilder getMinutesOrBuilder()

Schedule the query to execute every so many minutes.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.MinutesOrBuilder

getQuery()

public abstract String getQuery()

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

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The query.

getQueryBytes()

public abstract ByteString getQueryBytes()

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

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for query.

getRowCountTest()

public abstract AlertPolicy.Condition.SqlCondition.RowCountTest getRowCountTest()

Test the row count against a threshold.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTest

The rowCountTest.

getRowCountTestOrBuilder()

public abstract AlertPolicy.Condition.SqlCondition.RowCountTestOrBuilder getRowCountTestOrBuilder()

Test the row count against a threshold.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;

Returns
Type Description
AlertPolicy.Condition.SqlCondition.RowCountTestOrBuilder

getScheduleCase()

public abstract AlertPolicy.Condition.SqlCondition.ScheduleCase getScheduleCase()
Returns
Type Description
AlertPolicy.Condition.SqlCondition.ScheduleCase

hasBooleanTest()

public abstract boolean hasBooleanTest()

Test the boolean value in the indicated column.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;

Returns
Type Description
boolean

Whether the booleanTest field is set.

hasDaily()

public abstract boolean hasDaily()

Schedule the query to execute every so many days.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;

Returns
Type Description
boolean

Whether the daily field is set.

hasHourly()

public abstract boolean hasHourly()

Schedule the query to execute every so many hours.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;

Returns
Type Description
boolean

Whether the hourly field is set.

hasMinutes()

public abstract boolean hasMinutes()

Schedule the query to execute every so many minutes.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;

Returns
Type Description
boolean

Whether the minutes field is set.

hasRowCountTest()

public abstract boolean hasRowCountTest()

Test the row count against a threshold.

.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;

Returns
Type Description
boolean

Whether the rowCountTest field is set.