public final class MonitoringQueryLanguageCondition extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MonitoringQueryLanguageCondition() |
| Modifier and Type | Method and Description |
|---|---|
MonitoringQueryLanguageCondition |
clone() |
String |
getDuration()
The amount of time that a time series must violate the threshold to be considered failing.
|
String |
getQuery()
Monitoring Query Language (https://cloud.google.com/monitoring/mql) query that outputs a
boolean stream.
|
Trigger |
getTrigger()
The number/percent of time series for which the comparison must hold in order for the condition
to trigger.
|
MonitoringQueryLanguageCondition |
set(String fieldName,
Object value) |
MonitoringQueryLanguageCondition |
setDuration(String duration)
The amount of time that a time series must violate the threshold to be considered failing.
|
MonitoringQueryLanguageCondition |
setQuery(String query)
Monitoring Query Language (https://cloud.google.com/monitoring/mql) query that outputs a
boolean stream.
|
MonitoringQueryLanguageCondition |
setTrigger(Trigger trigger)
The number/percent of time series for which the comparison must hold in order for the condition
to trigger.
|
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 String getDuration()
null for nonepublic MonitoringQueryLanguageCondition setDuration(String duration)
duration - duration or null for nonepublic String getQuery()
null for nonepublic MonitoringQueryLanguageCondition setQuery(String query)
query - query or null for nonepublic Trigger getTrigger()
null for nonepublic MonitoringQueryLanguageCondition setTrigger(Trigger trigger)
trigger - trigger or null for nonepublic MonitoringQueryLanguageCondition set(String fieldName, Object value)
set in class GenericJsonpublic MonitoringQueryLanguageCondition clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.