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 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

       Schedule the query to execute every so many minutes.
       
      .google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;
      Returns:
      The minutes.
    • 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

       Schedule the query to execute every so many hours.
       
      .google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;
      Returns:
      The hourly.
    • 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

       Schedule the query to execute every so many days.
       
      .google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;
      Returns:
      The daily.
    • 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

       Test the row count against a threshold.
       
      .google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;
      Returns:
      The rowCountTest.
    • 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

       Test the boolean value in the indicated column.
       
      .google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
      Returns:
      The booleanTest.
    • getBooleanTestOrBuilder

       Test the boolean value in the indicated column.
       
      .google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
    • getScheduleCase

    • getEvaluateCase