Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition (v1.3.0)

Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::AlertPolicy::Condition::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#boolean_test

def boolean_test() -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::BooleanTest
Returns

#boolean_test=

def boolean_test=(value) -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::BooleanTest
Parameter
Returns

#daily

def daily() -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::Daily
Returns

#daily=

def daily=(value) -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::Daily
Parameter
Returns

#hourly

def hourly() -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::Hourly
Returns

#hourly=

def hourly=(value) -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::Hourly
Parameter
Returns

#minutes

def minutes() -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::Minutes
Returns

#minutes=

def minutes=(value) -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::Minutes
Parameter
Returns

#query

def query() -> ::String
Returns
  • (::String) —

    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
    

#query=

def query=(value) -> ::String
Parameter
  • value (::String) —

    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
    
Returns
  • (::String) —

    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
    

#row_count_test

def row_count_test() -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::RowCountTest
Returns

#row_count_test=

def row_count_test=(value) -> ::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::SqlCondition::RowCountTest
Parameter
Returns