- 3.54.0 (latest)
- 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 interface AlertPolicy.ConditionOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getConditionAbsent()
public abstract 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 | |
---|---|
Type | Description |
AlertPolicy.Condition.MetricAbsence | The conditionAbsent. |
getConditionAbsentOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.MetricAbsenceOrBuilder |
getConditionCase()
public abstract AlertPolicy.Condition.ConditionCase getConditionCase()
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.ConditionCase |
getConditionMatchedLog()
public abstract 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 | |
---|---|
Type | Description |
AlertPolicy.Condition.LogMatch | The conditionMatchedLog. |
getConditionMatchedLogOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.LogMatchOrBuilder |
getConditionMonitoringQueryLanguage()
public abstract 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 | |
---|---|
Type | Description |
AlertPolicy.Condition.MonitoringQueryLanguageCondition | The conditionMonitoringQueryLanguage. |
getConditionMonitoringQueryLanguageOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.MonitoringQueryLanguageConditionOrBuilder |
getConditionPrometheusQueryLanguage()
public abstract 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 | |
---|---|
Type | Description |
AlertPolicy.Condition.PrometheusQueryLanguageCondition | The conditionPrometheusQueryLanguage. |
getConditionPrometheusQueryLanguageOrBuilder()
public abstract 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;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.PrometheusQueryLanguageConditionOrBuilder |
getConditionThreshold()
public abstract AlertPolicy.Condition.MetricThreshold getConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.MetricThreshold | The conditionThreshold. |
getConditionThresholdOrBuilder()
public abstract AlertPolicy.Condition.MetricThresholdOrBuilder getConditionThresholdOrBuilder()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
Returns | |
---|---|
Type | Description |
AlertPolicy.Condition.MetricThresholdOrBuilder |
getDisplayName()
public abstract 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 | |
---|---|
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public abstract 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 | |
---|---|
Type | Description |
ByteString | The bytes for displayName. |
getName()
public abstract 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
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
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 | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public abstract 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
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
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
hasConditionAbsent()
public abstract 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 | |
---|---|
Type | Description |
boolean | Whether the conditionAbsent field is set. |
hasConditionMatchedLog()
public abstract 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 | |
---|---|
Type | Description |
boolean | Whether the conditionMatchedLog field is set. |
hasConditionMonitoringQueryLanguage()
public abstract 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 | |
---|---|
Type | Description |
boolean | Whether the conditionMonitoringQueryLanguage field is set. |
hasConditionPrometheusQueryLanguage()
public abstract 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 | |
---|---|
Type | Description |
boolean | Whether the conditionPrometheusQueryLanguage field is set. |
hasConditionThreshold()
public abstract boolean hasConditionThreshold()
A condition that compares a time series against a threshold.
.google.monitoring.v3.AlertPolicy.Condition.MetricThreshold condition_threshold = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the conditionThreshold field is set. |