public final class Condition
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Condition() |
| Modifier and Type | Method and Description |
|---|---|
Condition |
clone() |
MetricAbsence |
getConditionAbsent()
A condition that checks that a time series continues to receive new data points.
|
LogMatch |
getConditionMatchedLog()
A condition that checks for log messages matching given constraints.
|
MonitoringQueryLanguageCondition |
getConditionMonitoringQueryLanguage()
A condition that uses the Monitoring Query Language to define alerts.
|
PrometheusQueryLanguageCondition |
getConditionPrometheusQueryLanguage()
A condition that uses the Prometheus query language to define alerts.
|
SqlCondition |
getConditionSql()
A condition that periodically evaluates a SQL query result.
|
MetricThreshold |
getConditionThreshold()
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.
|
String |
getName()
Required if the condition exists.
|
Condition |
set(String fieldName,
Object value) |
Condition |
setConditionAbsent(MetricAbsence conditionAbsent)
A condition that checks that a time series continues to receive new data points.
|
Condition |
setConditionMatchedLog(LogMatch conditionMatchedLog)
A condition that checks for log messages matching given constraints.
|
Condition |
setConditionMonitoringQueryLanguage(MonitoringQueryLanguageCondition conditionMonitoringQueryLanguage)
A condition that uses the Monitoring Query Language to define alerts.
|
Condition |
setConditionPrometheusQueryLanguage(PrometheusQueryLanguageCondition conditionPrometheusQueryLanguage)
A condition that uses the Prometheus query language to define alerts.
|
Condition |
setConditionSql(SqlCondition conditionSql)
A condition that periodically evaluates a SQL query result.
|
Condition |
setConditionThreshold(MetricThreshold conditionThreshold)
A condition that compares a time series against a threshold.
|
Condition |
setDisplayName(String displayName)
A short name or phrase used to identify the condition in dashboards, notifications, and
incidents.
|
Condition |
setName(String name)
Required if the condition exists.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MetricAbsence getConditionAbsent()
null for nonepublic Condition setConditionAbsent(MetricAbsence conditionAbsent)
conditionAbsent - conditionAbsent or null for nonepublic LogMatch getConditionMatchedLog()
null for nonepublic Condition setConditionMatchedLog(LogMatch conditionMatchedLog)
conditionMatchedLog - conditionMatchedLog or null for nonepublic MonitoringQueryLanguageCondition getConditionMonitoringQueryLanguage()
null for nonepublic Condition setConditionMonitoringQueryLanguage(MonitoringQueryLanguageCondition conditionMonitoringQueryLanguage)
conditionMonitoringQueryLanguage - conditionMonitoringQueryLanguage or null for nonepublic PrometheusQueryLanguageCondition getConditionPrometheusQueryLanguage()
null for nonepublic Condition setConditionPrometheusQueryLanguage(PrometheusQueryLanguageCondition conditionPrometheusQueryLanguage)
conditionPrometheusQueryLanguage - conditionPrometheusQueryLanguage or null for nonepublic SqlCondition getConditionSql()
null for nonepublic Condition setConditionSql(SqlCondition conditionSql)
conditionSql - conditionSql or null for nonepublic MetricThreshold getConditionThreshold()
null for nonepublic Condition setConditionThreshold(MetricThreshold conditionThreshold)
conditionThreshold - conditionThreshold or null for nonepublic String getDisplayName()
null for nonepublic Condition setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getName()
null for nonepublic Condition setName(String name)
name - name or null for nonepublic Condition set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Condition clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.