public static final class AlertPolicy.Condition.SqlCondition extends GeneratedMessageV3 implements AlertPolicy.Condition.SqlConditionOrBuilder
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.
Protobuf type google.monitoring.v3.AlertPolicy.Condition.SqlCondition
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BOOLEAN_TEST_FIELD_NUMBER
public static final int BOOLEAN_TEST_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DAILY_FIELD_NUMBER
public static final int DAILY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
HOURLY_FIELD_NUMBER
public static final int HOURLY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MINUTES_FIELD_NUMBER
public static final int MINUTES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ROW_COUNT_TEST_FIELD_NUMBER
public static final int ROW_COUNT_TEST_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static AlertPolicy.Condition.SqlCondition getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AlertPolicy.Condition.SqlCondition.Builder newBuilder()
newBuilder(AlertPolicy.Condition.SqlCondition prototype)
public static AlertPolicy.Condition.SqlCondition.Builder newBuilder(AlertPolicy.Condition.SqlCondition prototype)
public static AlertPolicy.Condition.SqlCondition parseDelimitedFrom(InputStream input)
public static AlertPolicy.Condition.SqlCondition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AlertPolicy.Condition.SqlCondition parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.SqlCondition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AlertPolicy.Condition.SqlCondition parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.SqlCondition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.SqlCondition parseFrom(CodedInputStream input)
public static AlertPolicy.Condition.SqlCondition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.SqlCondition parseFrom(InputStream input)
public static AlertPolicy.Condition.SqlCondition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AlertPolicy.Condition.SqlCondition parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AlertPolicy.Condition.SqlCondition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AlertPolicy.Condition.SqlCondition> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getBooleanTest()
public AlertPolicy.Condition.SqlCondition.BooleanTest getBooleanTest()
Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
getBooleanTestOrBuilder()
public AlertPolicy.Condition.SqlCondition.BooleanTestOrBuilder getBooleanTestOrBuilder()
Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
getDaily()
public AlertPolicy.Condition.SqlCondition.Daily getDaily()
Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;
getDailyOrBuilder()
public AlertPolicy.Condition.SqlCondition.DailyOrBuilder getDailyOrBuilder()
Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;
getDefaultInstanceForType()
public AlertPolicy.Condition.SqlCondition getDefaultInstanceForType()
getEvaluateCase()
public AlertPolicy.Condition.SqlCondition.EvaluateCase getEvaluateCase()
getHourly()
public AlertPolicy.Condition.SqlCondition.Hourly getHourly()
Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;
getHourlyOrBuilder()
public AlertPolicy.Condition.SqlCondition.HourlyOrBuilder getHourlyOrBuilder()
Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;
getMinutes()
public AlertPolicy.Condition.SqlCondition.Minutes getMinutes()
Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;
getMinutesOrBuilder()
public AlertPolicy.Condition.SqlCondition.MinutesOrBuilder getMinutesOrBuilder()
Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;
getParserForType()
public Parser<AlertPolicy.Condition.SqlCondition> getParserForType()
Overrides
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 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 AlertPolicy.Condition.SqlCondition.RowCountTest getRowCountTest()
Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;
getRowCountTestOrBuilder()
public AlertPolicy.Condition.SqlCondition.RowCountTestOrBuilder getRowCountTestOrBuilder()
Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;
getScheduleCase()
public AlertPolicy.Condition.SqlCondition.ScheduleCase getScheduleCase()
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasBooleanTest()
public 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 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 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 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 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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AlertPolicy.Condition.SqlCondition.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AlertPolicy.Condition.SqlCondition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public AlertPolicy.Condition.SqlCondition.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides