Package com.google.monitoring.v3
Interface AlertPolicy.Condition.SqlConditionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AlertPolicy.Condition.SqlCondition,AlertPolicy.Condition.SqlCondition.Builder
- Enclosing class:
- AlertPolicy.Condition
public static interface AlertPolicy.Condition.SqlConditionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionTest the boolean value in the indicated column.Test the boolean value in the indicated column.getDaily()Schedule the query to execute every so many days.Schedule the query to execute every so many days.Schedule the query to execute every so many hours.Schedule the query to execute every so many hours.Schedule the query to execute every so many minutes.Schedule the query to execute every so many minutes.getQuery()Required.com.google.protobuf.ByteStringRequired.Test the row count against a threshold.Test the row count against a threshold.booleanTest the boolean value in the indicated column.booleanhasDaily()Schedule the query to execute every so many days.booleanSchedule the query to execute every so many hours.booleanSchedule the query to execute every so many minutes.booleanTest the row count against a threshold.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getQuery
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:
- The query.
-
getQueryBytes
com.google.protobuf.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:
- The bytes for query.
-
hasMinutes
boolean hasMinutes()Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;- Returns:
- Whether the minutes field is set.
-
getMinutes
AlertPolicy.Condition.SqlCondition.Minutes getMinutes()Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;- Returns:
- The minutes.
-
getMinutesOrBuilder
AlertPolicy.Condition.SqlCondition.MinutesOrBuilder getMinutesOrBuilder()Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2; -
hasHourly
boolean hasHourly()Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;- Returns:
- Whether the hourly field is set.
-
getHourly
AlertPolicy.Condition.SqlCondition.Hourly getHourly()Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;- Returns:
- The hourly.
-
getHourlyOrBuilder
AlertPolicy.Condition.SqlCondition.HourlyOrBuilder getHourlyOrBuilder()Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3; -
hasDaily
boolean hasDaily()Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;- Returns:
- Whether the daily field is set.
-
getDaily
AlertPolicy.Condition.SqlCondition.Daily getDaily()Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;- Returns:
- The daily.
-
getDailyOrBuilder
AlertPolicy.Condition.SqlCondition.DailyOrBuilder getDailyOrBuilder()Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4; -
hasRowCountTest
boolean hasRowCountTest()Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;- Returns:
- Whether the rowCountTest field is set.
-
getRowCountTest
AlertPolicy.Condition.SqlCondition.RowCountTest getRowCountTest()Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;- Returns:
- The rowCountTest.
-
getRowCountTestOrBuilder
AlertPolicy.Condition.SqlCondition.RowCountTestOrBuilder getRowCountTestOrBuilder()Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5; -
hasBooleanTest
boolean hasBooleanTest()Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;- Returns:
- Whether the booleanTest field is set.
-
getBooleanTest
AlertPolicy.Condition.SqlCondition.BooleanTest getBooleanTest()Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;- Returns:
- The booleanTest.
-
getBooleanTestOrBuilder
AlertPolicy.Condition.SqlCondition.BooleanTestOrBuilder getBooleanTestOrBuilder()Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6; -
getScheduleCase
AlertPolicy.Condition.SqlCondition.ScheduleCase getScheduleCase() -
getEvaluateCase
AlertPolicy.Condition.SqlCondition.EvaluateCase getEvaluateCase()
-