public final class AlertStrategy
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 |
|---|
AlertStrategy() |
| Modifier and Type | Method and Description |
|---|---|
AlertStrategy |
clone() |
String |
getAutoClose()
If an alerting policy that was active has no data for this long, any open incidents will close
|
List<NotificationChannelStrategy> |
getNotificationChannelStrategy()
Control how notifications will be sent out, on a per-channel basis.
|
List<String> |
getNotificationPrompts()
For log-based alert policies, the notification prompts is always OPENED.
|
NotificationRateLimit |
getNotificationRateLimit()
Required for log-based alerting policies, i.e.
|
AlertStrategy |
set(String fieldName,
Object value) |
AlertStrategy |
setAutoClose(String autoClose)
If an alerting policy that was active has no data for this long, any open incidents will close
|
AlertStrategy |
setNotificationChannelStrategy(List<NotificationChannelStrategy> notificationChannelStrategy)
Control how notifications will be sent out, on a per-channel basis.
|
AlertStrategy |
setNotificationPrompts(List<String> notificationPrompts)
For log-based alert policies, the notification prompts is always OPENED.
|
AlertStrategy |
setNotificationRateLimit(NotificationRateLimit notificationRateLimit)
Required for log-based alerting policies, i.e.
|
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 getAutoClose()
null for nonepublic AlertStrategy setAutoClose(String autoClose)
autoClose - autoClose or null for nonepublic List<NotificationChannelStrategy> getNotificationChannelStrategy()
null for nonepublic AlertStrategy setNotificationChannelStrategy(List<NotificationChannelStrategy> notificationChannelStrategy)
notificationChannelStrategy - notificationChannelStrategy or null for nonepublic List<String> getNotificationPrompts()
null for nonepublic AlertStrategy setNotificationPrompts(List<String> notificationPrompts)
notificationPrompts - notificationPrompts or null for nonepublic NotificationRateLimit getNotificationRateLimit()
null for nonepublic AlertStrategy setNotificationRateLimit(NotificationRateLimit notificationRateLimit)
notificationRateLimit - notificationRateLimit or null for nonepublic AlertStrategy set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic AlertStrategy clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.