Package com.google.monitoring.v3
Interface AlertPolicy.ConditionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AlertPolicy.Condition
,AlertPolicy.Condition.Builder
- Enclosing class:
- AlertPolicy
public static interface AlertPolicy.ConditionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
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;
- Returns:
- The name.
-
getNameBytes
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;
- Returns:
- The bytes for name.
-
getDisplayName
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;
- Returns:
- The displayName.
-
getDisplayNameBytes
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;
- Returns:
- The bytes for displayName.
-
hasConditionThreshold
boolean hasConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- Returns:
- Whether the conditionThreshold field is set.
-
getConditionThreshold
AlertPolicy.Condition.MetricThreshold getConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
- Returns:
- The conditionThreshold.
-
getConditionThresholdOrBuilder
AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
-
hasConditionAbsent
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;
- Returns:
- Whether the conditionAbsent field is set.
-
getConditionAbsent
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;
- Returns:
- The conditionAbsent.
-
getConditionAbsentOrBuilder
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;
-
hasConditionMatchedLog
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;
- Returns:
- Whether the conditionMatchedLog field is set.
-
getConditionMatchedLog
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;
- Returns:
- The conditionMatchedLog.
-
getConditionMatchedLogOrBuilder
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;
-
hasConditionMonitoringQueryLanguage
boolean hasConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition condition_monitoring_query_language = 19;
- Returns:
- Whether the conditionMonitoringQueryLanguage field is set.
-
getConditionMonitoringQueryLanguage
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;
- Returns:
- The conditionMonitoringQueryLanguage.
-
getConditionMonitoringQueryLanguageOrBuilder
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;
-
hasConditionPrometheusQueryLanguage
boolean hasConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
.google.monitoring.v3.AlertPolicy.Condition.PrometheusQueryLanguageCondition condition_prometheus_query_language = 21;
- Returns:
- Whether the conditionPrometheusQueryLanguage field is set.
-
getConditionPrometheusQueryLanguage
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;
- Returns:
- The conditionPrometheusQueryLanguage.
-
getConditionPrometheusQueryLanguageOrBuilder
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;
-
getConditionCase
AlertPolicy.Condition.ConditionCase getConditionCase()
-
-