- 3.57.0 (latest)
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.6
- 3.3.6
- 3.2.10
public static final class AlertPolicy.Condition.SqlCondition.Builder extends GeneratedMessageV3.Builder<AlertPolicy.Condition.SqlCondition.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AlertPolicy.Condition.SqlCondition.BuilderImplements
AlertPolicy.Condition.SqlConditionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.SqlCondition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
build()
public AlertPolicy.Condition.SqlCondition build()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition |
buildPartial()
public AlertPolicy.Condition.SqlCondition buildPartial()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition |
clear()
public AlertPolicy.Condition.SqlCondition.Builder clear()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearBooleanTest()
public AlertPolicy.Condition.SqlCondition.Builder clearBooleanTest()
Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearDaily()
public AlertPolicy.Condition.SqlCondition.Builder clearDaily()
Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearEvaluate()
public AlertPolicy.Condition.SqlCondition.Builder clearEvaluate()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearField(Descriptors.FieldDescriptor field)
public AlertPolicy.Condition.SqlCondition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearHourly()
public AlertPolicy.Condition.SqlCondition.Builder clearHourly()
Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearMinutes()
public AlertPolicy.Condition.SqlCondition.Builder clearMinutes()
Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AlertPolicy.Condition.SqlCondition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearQuery()
public AlertPolicy.Condition.SqlCondition.Builder clearQuery()
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 |
AlertPolicy.Condition.SqlCondition.Builder |
This builder for chaining. |
clearRowCountTest()
public AlertPolicy.Condition.SqlCondition.Builder clearRowCountTest()
Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clearSchedule()
public AlertPolicy.Condition.SqlCondition.Builder clearSchedule()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
clone()
public AlertPolicy.Condition.SqlCondition.Builder clone()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.BooleanTest |
The booleanTest. |
getBooleanTestBuilder()
public AlertPolicy.Condition.SqlCondition.BooleanTest.Builder getBooleanTestBuilder()
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.Builder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.BooleanTestOrBuilder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Daily |
The daily. |
getDailyBuilder()
public AlertPolicy.Condition.SqlCondition.Daily.Builder getDailyBuilder()
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.Builder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.DailyOrBuilder |
getDefaultInstanceForType()
public AlertPolicy.Condition.SqlCondition getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEvaluateCase()
public AlertPolicy.Condition.SqlCondition.EvaluateCase getEvaluateCase()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.EvaluateCase |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Hourly |
The hourly. |
getHourlyBuilder()
public AlertPolicy.Condition.SqlCondition.Hourly.Builder getHourlyBuilder()
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.Builder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.HourlyOrBuilder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Minutes |
The minutes. |
getMinutesBuilder()
public AlertPolicy.Condition.SqlCondition.Minutes.Builder getMinutesBuilder()
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.Builder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.MinutesOrBuilder |
getQuery()
public 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 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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.RowCountTest |
The rowCountTest. |
getRowCountTestBuilder()
public AlertPolicy.Condition.SqlCondition.RowCountTest.Builder getRowCountTestBuilder()
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.Builder |
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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.RowCountTestOrBuilder |
getScheduleCase()
public AlertPolicy.Condition.SqlCondition.ScheduleCase getScheduleCase()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.ScheduleCase |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeBooleanTest(AlertPolicy.Condition.SqlCondition.BooleanTest value)
public AlertPolicy.Condition.SqlCondition.Builder mergeBooleanTest(AlertPolicy.Condition.SqlCondition.BooleanTest value)
Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.BooleanTest |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
mergeDaily(AlertPolicy.Condition.SqlCondition.Daily value)
public AlertPolicy.Condition.SqlCondition.Builder mergeDaily(AlertPolicy.Condition.SqlCondition.Daily value)
Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.Daily |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
mergeFrom(AlertPolicy.Condition.SqlCondition other)
public AlertPolicy.Condition.SqlCondition.Builder mergeFrom(AlertPolicy.Condition.SqlCondition other)
Parameter | |
---|---|
Name | Description |
other |
AlertPolicy.Condition.SqlCondition |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AlertPolicy.Condition.SqlCondition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AlertPolicy.Condition.SqlCondition.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
mergeHourly(AlertPolicy.Condition.SqlCondition.Hourly value)
public AlertPolicy.Condition.SqlCondition.Builder mergeHourly(AlertPolicy.Condition.SqlCondition.Hourly value)
Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.Hourly |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
mergeMinutes(AlertPolicy.Condition.SqlCondition.Minutes value)
public AlertPolicy.Condition.SqlCondition.Builder mergeMinutes(AlertPolicy.Condition.SqlCondition.Minutes value)
Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.Minutes |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
mergeRowCountTest(AlertPolicy.Condition.SqlCondition.RowCountTest value)
public AlertPolicy.Condition.SqlCondition.Builder mergeRowCountTest(AlertPolicy.Condition.SqlCondition.RowCountTest value)
Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.RowCountTest |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.SqlCondition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setBooleanTest(AlertPolicy.Condition.SqlCondition.BooleanTest value)
public AlertPolicy.Condition.SqlCondition.Builder setBooleanTest(AlertPolicy.Condition.SqlCondition.BooleanTest value)
Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.BooleanTest |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setBooleanTest(AlertPolicy.Condition.SqlCondition.BooleanTest.Builder builderForValue)
public AlertPolicy.Condition.SqlCondition.Builder setBooleanTest(AlertPolicy.Condition.SqlCondition.BooleanTest.Builder builderForValue)
Test the boolean value in the indicated column.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.BooleanTest boolean_test = 6;
Parameter | |
---|---|
Name | Description |
builderForValue |
AlertPolicy.Condition.SqlCondition.BooleanTest.Builder |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setDaily(AlertPolicy.Condition.SqlCondition.Daily value)
public AlertPolicy.Condition.SqlCondition.Builder setDaily(AlertPolicy.Condition.SqlCondition.Daily value)
Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.Daily |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setDaily(AlertPolicy.Condition.SqlCondition.Daily.Builder builderForValue)
public AlertPolicy.Condition.SqlCondition.Builder setDaily(AlertPolicy.Condition.SqlCondition.Daily.Builder builderForValue)
Schedule the query to execute every so many days.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Daily daily = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
AlertPolicy.Condition.SqlCondition.Daily.Builder |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AlertPolicy.Condition.SqlCondition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setHourly(AlertPolicy.Condition.SqlCondition.Hourly value)
public AlertPolicy.Condition.SqlCondition.Builder setHourly(AlertPolicy.Condition.SqlCondition.Hourly value)
Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.Hourly |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setHourly(AlertPolicy.Condition.SqlCondition.Hourly.Builder builderForValue)
public AlertPolicy.Condition.SqlCondition.Builder setHourly(AlertPolicy.Condition.SqlCondition.Hourly.Builder builderForValue)
Schedule the query to execute every so many hours.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Hourly hourly = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
AlertPolicy.Condition.SqlCondition.Hourly.Builder |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setMinutes(AlertPolicy.Condition.SqlCondition.Minutes value)
public AlertPolicy.Condition.SqlCondition.Builder setMinutes(AlertPolicy.Condition.SqlCondition.Minutes value)
Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.Minutes |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setMinutes(AlertPolicy.Condition.SqlCondition.Minutes.Builder builderForValue)
public AlertPolicy.Condition.SqlCondition.Builder setMinutes(AlertPolicy.Condition.SqlCondition.Minutes.Builder builderForValue)
Schedule the query to execute every so many minutes.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.Minutes minutes = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
AlertPolicy.Condition.SqlCondition.Minutes.Builder |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setQuery(String value)
public AlertPolicy.Condition.SqlCondition.Builder setQuery(String value)
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];
Parameter | |
---|---|
Name | Description |
value |
String The query to set. |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
This builder for chaining. |
setQueryBytes(ByteString value)
public AlertPolicy.Condition.SqlCondition.Builder setQueryBytes(ByteString value)
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];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for query to set. |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AlertPolicy.Condition.SqlCondition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setRowCountTest(AlertPolicy.Condition.SqlCondition.RowCountTest value)
public AlertPolicy.Condition.SqlCondition.Builder setRowCountTest(AlertPolicy.Condition.SqlCondition.RowCountTest value)
Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;
Parameter | |
---|---|
Name | Description |
value |
AlertPolicy.Condition.SqlCondition.RowCountTest |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setRowCountTest(AlertPolicy.Condition.SqlCondition.RowCountTest.Builder builderForValue)
public AlertPolicy.Condition.SqlCondition.Builder setRowCountTest(AlertPolicy.Condition.SqlCondition.RowCountTest.Builder builderForValue)
Test the row count against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.SqlCondition.RowCountTest row_count_test = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
AlertPolicy.Condition.SqlCondition.RowCountTest.Builder |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AlertPolicy.Condition.SqlCondition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.SqlCondition.Builder |