public final class Alert
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 |
|---|
Alert() |
| Modifier and Type | Method and Description |
|---|---|
Alert |
clone() |
String |
getCloseTime()
The time when the alert was closed.
|
LogMetadata |
getLog()
The log information associated with the alert.
|
MonitoredResourceMetadata |
getMetadata()
The metadata of the monitored resource.
|
Metric |
getMetric()
The metric type and any metric labels preserved from the incident's generating condition.
|
String |
getName()
Identifier.
|
String |
getOpenTime()
The time when the alert was opened.
|
PolicySnapshot |
getPolicy()
The snapshot of the alert policy that generated this alert.
|
MonitoredResource |
getResource()
The monitored resource type and any monitored resource labels preserved from the incident's
generating condition.
|
String |
getState()
Output only.
|
Alert |
set(String fieldName,
Object value) |
Alert |
setCloseTime(String closeTime)
The time when the alert was closed.
|
Alert |
setLog(LogMetadata log)
The log information associated with the alert.
|
Alert |
setMetadata(MonitoredResourceMetadata metadata)
The metadata of the monitored resource.
|
Alert |
setMetric(Metric metric)
The metric type and any metric labels preserved from the incident's generating condition.
|
Alert |
setName(String name)
Identifier.
|
Alert |
setOpenTime(String openTime)
The time when the alert was opened.
|
Alert |
setPolicy(PolicySnapshot policy)
The snapshot of the alert policy that generated this alert.
|
Alert |
setResource(MonitoredResource resource)
The monitored resource type and any monitored resource labels preserved from the incident's
generating condition.
|
Alert |
setState(String state)
Output only.
|
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 getCloseTime()
null for nonepublic Alert setCloseTime(String closeTime)
closeTime - closeTime or null for nonepublic LogMetadata getLog()
null for nonepublic Alert setLog(LogMetadata log)
log - log or null for nonepublic MonitoredResourceMetadata getMetadata()
null for nonepublic Alert setMetadata(MonitoredResourceMetadata metadata)
metadata - metadata or null for nonepublic Metric getMetric()
null for nonepublic Alert setMetric(Metric metric)
metric - metric or null for nonepublic String getName()
null for nonepublic Alert setName(String name)
name - name or null for nonepublic String getOpenTime()
null for nonepublic Alert setOpenTime(String openTime)
openTime - openTime or null for nonepublic PolicySnapshot getPolicy()
null for nonepublic Alert setPolicy(PolicySnapshot policy)
policy - policy or null for nonepublic MonitoredResource getResource()
null for nonepublic Alert setResource(MonitoredResource resource)
resource - resource or null for nonepublic String getState()
null for nonepublic Alert setState(String state)
state - state or null for nonepublic Alert set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Alert clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.