public static final class AlertPolicy.Condition extends com.google.protobuf.GeneratedMessageV3 implements AlertPolicy.ConditionOrBuilder
A condition is a true/false test that determines when an alerting policy should open an incident. If a condition evaluates to true, it signifies that something is wrong.Protobuf type
google.monitoring.v3.AlertPolicy.Condition| Modifier and Type | Class and Description |
|---|---|
static class |
AlertPolicy.Condition.Builder
A condition is a true/false test that determines when an alerting policy
should open an incident.
|
static class |
AlertPolicy.Condition.ConditionCase |
static class |
AlertPolicy.Condition.EvaluationMissingData
A condition control that determines how metric-threshold conditions
are evaluated when data stops arriving.
|
static class |
AlertPolicy.Condition.LogMatch
A condition type that checks whether a log message in the [scoping
project](https://cloud.google.com/monitoring/api/v3#project_name)
satisfies the given filter.
|
static interface |
AlertPolicy.Condition.LogMatchOrBuilder |
static class |
AlertPolicy.Condition.MetricAbsence
A condition type that checks that monitored resources
are reporting data.
|
static interface |
AlertPolicy.Condition.MetricAbsenceOrBuilder |
static class |
AlertPolicy.Condition.MetricThreshold
A condition type that compares a collection of time series
against a threshold.
|
static interface |
AlertPolicy.Condition.MetricThresholdOrBuilder |
static class |
AlertPolicy.Condition.MonitoringQueryLanguageCondition
A condition type that allows alert policies to be defined using
[Monitoring Query Language](https://cloud.google.com/monitoring/mql).
|
static interface |
AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder |
static class |
AlertPolicy.Condition.PrometheusQueryLanguageCondition
A condition type that allows alert policies to be defined using
[Prometheus Query Language
(PromQL)](https://prometheus.io/docs/prometheus/latest/querying/basics/).
|
static interface |
AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder |
static class |
AlertPolicy.Condition.Trigger
Specifies how many time series must fail a predicate to trigger a
condition.
|
static interface |
AlertPolicy.Condition.TriggerOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONDITION_ABSENT_FIELD_NUMBER |
static int |
CONDITION_MATCHED_LOG_FIELD_NUMBER |
static int |
CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER |
static int |
CONDITION_PROMETHEUS_QUERY_LANGUAGE_FIELD_NUMBER |
static int |
CONDITION_THRESHOLD_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AlertPolicy.Condition.MetricAbsence |
getConditionAbsent()
A condition that checks that a time series continues to
receive new data points.
|
AlertPolicy.Condition.MetricAbsenceOrBuilder |
getConditionAbsentOrBuilder()
A condition that checks that a time series continues to
receive new data points.
|
AlertPolicy.Condition.ConditionCase |
getConditionCase() |
AlertPolicy.Condition.LogMatch |
getConditionMatchedLog()
A condition that checks for log messages matching given constraints.
|
AlertPolicy.Condition.LogMatchOrBuilder |
getConditionMatchedLogOrBuilder()
A condition that checks for log messages matching given constraints.
|
AlertPolicy.Condition.MonitoringQueryLanguageCondition |
getConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define
alerts.
|
AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder |
getConditionMonitoringQueryLanguageOrBuilder()
A condition that uses the Monitoring Query Language to define
alerts.
|
AlertPolicy.Condition.PrometheusQueryLanguageCondition |
getConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
|
AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder |
getConditionPrometheusQueryLanguageOrBuilder()
A condition that uses the Prometheus query language to define alerts.
|
AlertPolicy.Condition.MetricThreshold |
getConditionThreshold()
A condition that compares a time series against a threshold.
|
AlertPolicy.Condition.MetricThresholdOrBuilder |
getConditionThresholdOrBuilder()
A condition that compares a time series against a threshold.
|
static AlertPolicy.Condition |
getDefaultInstance() |
AlertPolicy.Condition |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
A short name or phrase used to identify the condition in dashboards,
notifications, and incidents.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
A short name or phrase used to identify the condition in dashboards,
notifications, and incidents.
|
String |
getName()
Required if the condition exists.
|
com.google.protobuf.ByteString |
getNameBytes()
Required if the condition exists.
|
com.google.protobuf.Parser<AlertPolicy.Condition> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasConditionAbsent()
A condition that checks that a time series continues to
receive new data points.
|
boolean |
hasConditionMatchedLog()
A condition that checks for log messages matching given constraints.
|
boolean |
hasConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define
alerts.
|
boolean |
hasConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
|
boolean |
hasConditionThreshold()
A condition that compares a time series against a threshold.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AlertPolicy.Condition.Builder |
newBuilder() |
static AlertPolicy.Condition.Builder |
newBuilder(AlertPolicy.Condition prototype) |
AlertPolicy.Condition.Builder |
newBuilderForType() |
protected AlertPolicy.Condition.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AlertPolicy.Condition |
parseDelimitedFrom(InputStream input) |
static AlertPolicy.Condition |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition |
parseFrom(byte[] data) |
static AlertPolicy.Condition |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition |
parseFrom(ByteBuffer data) |
static AlertPolicy.Condition |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition |
parseFrom(com.google.protobuf.ByteString data) |
static AlertPolicy.Condition |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AlertPolicy.Condition |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AlertPolicy.Condition |
parseFrom(InputStream input) |
static AlertPolicy.Condition |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AlertPolicy.Condition> |
parser() |
AlertPolicy.Condition.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int CONDITION_THRESHOLD_FIELD_NUMBER
public static final int CONDITION_ABSENT_FIELD_NUMBER
public static final int CONDITION_MATCHED_LOG_FIELD_NUMBER
public static final int CONDITION_MONITORING_QUERY_LANGUAGE_FIELD_NUMBER
public static final int CONDITION_PROMETHEUS_QUERY_LANGUAGE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public AlertPolicy.Condition.ConditionCase getConditionCase()
getConditionCase in interface AlertPolicy.ConditionOrBuilderpublic String getName()
Required if the condition exists. The unique resource name for this
condition. Its format is:
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
`[CONDITION_ID]` is assigned by Cloud Monitoring when the
condition is created as part of a new or updated alerting policy.
When calling the
[alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
method, do not include the `name` field in the conditions of the
requested alerting policy. Cloud Monitoring creates the
condition identifiers and includes them in the new policy.
When calling the
[alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
method to update a policy, including a condition `name` causes the
existing condition to be updated. Conditions without names are added to
the updated policy. Existing conditions are deleted if they are not
updated.
Best practice is to preserve `[CONDITION_ID]` if you make only small
changes, such as those to condition thresholds, durations, or trigger
values. Otherwise, treat the change as a new condition and let the
existing condition be deleted.
string name = 12;getName in interface AlertPolicy.ConditionOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required if the condition exists. The unique resource name for this
condition. Its format is:
projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
`[CONDITION_ID]` is assigned by Cloud Monitoring when the
condition is created as part of a new or updated alerting policy.
When calling the
[alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
method, do not include the `name` field in the conditions of the
requested alerting policy. Cloud Monitoring creates the
condition identifiers and includes them in the new policy.
When calling the
[alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
method to update a policy, including a condition `name` causes the
existing condition to be updated. Conditions without names are added to
the updated policy. Existing conditions are deleted if they are not
updated.
Best practice is to preserve `[CONDITION_ID]` if you make only small
changes, such as those to condition thresholds, durations, or trigger
values. Otherwise, treat the change as a new condition and let the
existing condition be deleted.
string name = 12;getNameBytes in interface AlertPolicy.ConditionOrBuilderpublic String getDisplayName()
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
string display_name = 6;getDisplayName in interface AlertPolicy.ConditionOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
A short name or phrase used to identify the condition in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple conditions in the same policy.
string display_name = 6;getDisplayNameBytes in interface AlertPolicy.ConditionOrBuilderpublic boolean hasConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
hasConditionThreshold in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MetricThreshold getConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
getConditionThreshold in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
getConditionThresholdOrBuilder in interface AlertPolicy.ConditionOrBuilderpublic boolean hasConditionAbsent()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;hasConditionAbsent in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MetricAbsence getConditionAbsent()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;getConditionAbsent in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MetricAbsenceOrBuilder getConditionAbsentOrBuilder()
A condition that checks that a time series continues to receive new data points.
.google.monitoring.v3.AlertPolicy.Condition.MetricAbsence condition_absent = 2;getConditionAbsentOrBuilder in interface AlertPolicy.ConditionOrBuilderpublic boolean hasConditionMatchedLog()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;hasConditionMatchedLog in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.LogMatch getConditionMatchedLog()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;getConditionMatchedLog in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.LogMatchOrBuilder getConditionMatchedLogOrBuilder()
A condition that checks for log messages matching given constraints. If set, no other conditions can be present.
.google.monitoring.v3.AlertPolicy.Condition.LogMatch condition_matched_log = 20;getConditionMatchedLogOrBuilder in interface AlertPolicy.ConditionOrBuilderpublic boolean hasConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
hasConditionMonitoringQueryLanguage in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
getConditionMonitoringQueryLanguage in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder getConditionMonitoringQueryLanguageOrBuilder()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
getConditionMonitoringQueryLanguageOrBuilder in interface AlertPolicy.ConditionOrBuilderpublic boolean hasConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
hasConditionPrometheusQueryLanguage in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
getConditionPrometheusQueryLanguage in interface AlertPolicy.ConditionOrBuilderpublic AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder getConditionPrometheusQueryLanguageOrBuilder()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
getConditionPrometheusQueryLanguageOrBuilder in interface AlertPolicy.ConditionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AlertPolicy.Condition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AlertPolicy.Condition parseFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Condition parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AlertPolicy.Condition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AlertPolicy.Condition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AlertPolicy.Condition.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AlertPolicy.Condition.Builder newBuilder()
public static AlertPolicy.Condition.Builder newBuilder(AlertPolicy.Condition prototype)
public AlertPolicy.Condition.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AlertPolicy.Condition.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AlertPolicy.Condition getDefaultInstance()
public static com.google.protobuf.Parser<AlertPolicy.Condition> parser()
public com.google.protobuf.Parser<AlertPolicy.Condition> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AlertPolicy.Condition getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.