@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MonitorOptions extends Object
| Constructor and Description |
|---|
MonitorOptions() |
| Modifier and Type | Method and Description |
|---|---|
MonitorOptions |
addNotifyByItem(String notifyByItem) |
MonitorOptions |
addRenotifyStatusesItem(MonitorRenotifyStatusType renotifyStatusesItem) |
MonitorOptions |
addVariablesItem(MonitorFormulaAndFunctionQueryDefinition variablesItem) |
MonitorOptions |
enableLogsSample(Boolean enableLogsSample)
Deprecated.
|
MonitorOptions |
enableSamples(Boolean enableSamples) |
boolean |
equals(Object o)
Return true if this MonitorOptions object is equal to o.
|
MonitorOptions |
escalationMessage(String escalationMessage) |
MonitorOptions |
evaluationDelay(Long evaluationDelay) |
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
MonitorOptionsAggregation |
getAggregation()
Type of aggregation performed in the monitor query.
|
List<MonitorDeviceID> |
getDeviceIds()
Deprecated.
|
Boolean |
getEnableLogsSample()
Whether or not to send a log sample when the log monitor triggers.
|
Boolean |
getEnableSamples()
Whether or not to send a list of samples when the monitor triggers.
|
String |
getEscalationMessage()
We recommend using the is_renotify, block
in the original message instead.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getEvaluationDelay_JsonNullable() |
Long |
getEvaluationDelay()
Time (in seconds) to delay evaluation, as a non-negative integer.
|
Boolean |
getGroupbySimpleMonitor()
Whether the log alert monitor triggers a single alert or multiple alerts when any group
breaches a threshold.
|
String |
getGroupRetentionDuration()
The time span after which groups with missing data are dropped from the monitor state.
|
Boolean |
getIncludeTags()
A Boolean indicating whether notifications from this monitor automatically inserts its
triggering tags into the title.
|
Boolean |
getLocked()
Deprecated.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getMinFailureDuration_JsonNullable() |
Long |
getMinFailureDuration()
How long the test should be in failure before alerting (integer, number of seconds, max 7200).
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getMinLocationFailed_JsonNullable() |
Long |
getMinLocationFailed()
The minimum number of locations in failure at the same time during at least one moment in the
min_failure_duration period (min_location_failed and
min_failure_duration are part of the advanced alerting rules - integer, >= 1). |
org.openapitools.jackson.nullable.JsonNullable<Long> |
getNewGroupDelay_JsonNullable() |
Long |
getNewGroupDelay()
Time (in seconds) to skip evaluations for new groups.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getNewHostDelay_JsonNullable()
Deprecated.
|
Long |
getNewHostDelay()
Deprecated.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getNoDataTimeframe_JsonNullable() |
Long |
getNoDataTimeframe()
The number of minutes before a monitor notifies after data stops reporting.
|
MonitorOptionsNotificationPresets |
getNotificationPresetName()
Toggles the display of additional content sent in the monitor notification.
|
Boolean |
getNotifyAudit()
A Boolean indicating whether tagged users is notified on changes to this monitor.
|
List<String> |
getNotifyBy()
Controls what granularity a monitor alerts on.
|
Boolean |
getNotifyNoData()
A Boolean indicating whether this monitor notifies when data stops reporting.
|
OnMissingDataOption |
getOnMissingData()
Controls how groups or monitors are treated if an evaluation does not return any data points.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getRenotifyInterval_JsonNullable() |
Long |
getRenotifyInterval()
The number of minutes after the last notification before a monitor re-notifies on the current
status.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getRenotifyOccurrences_JsonNullable() |
Long |
getRenotifyOccurrences()
The number of times re-notification messages should be sent on the current status at the
provided re-notification interval.
|
org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>> |
getRenotifyStatuses_JsonNullable() |
List<MonitorRenotifyStatusType> |
getRenotifyStatuses()
The types of monitor statuses for which re-notification messages are sent.
|
Boolean |
getRequireFullWindow()
A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.
|
MonitorOptionsSchedulingOptions |
getSchedulingOptions()
Configuration options for scheduling.
|
Map<String,Long> |
getSilenced()
Deprecated.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getSyntheticsCheckId_JsonNullable()
Deprecated.
|
String |
getSyntheticsCheckId()
Deprecated.
|
MonitorThresholds |
getThresholds()
List of the different monitor threshold available.
|
MonitorThresholdWindowOptions |
getThresholdWindows()
Alerting time window options.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getTimeoutH_JsonNullable() |
Long |
getTimeoutH()
The number of hours of the monitor not reporting data before it automatically resolves from a
triggered state.
|
List<MonitorFormulaAndFunctionQueryDefinition> |
getVariables()
List of requests that can be used in the monitor query.
|
MonitorOptions |
groupbySimpleMonitor(Boolean groupbySimpleMonitor) |
MonitorOptions |
groupRetentionDuration(String groupRetentionDuration) |
int |
hashCode() |
MonitorOptions |
includeTags(Boolean includeTags) |
MonitorOptions |
locked(Boolean locked) |
MonitorOptions |
minFailureDuration(Long minFailureDuration) |
MonitorOptions |
minLocationFailed(Long minLocationFailed) |
MonitorOptions |
newGroupDelay(Long newGroupDelay) |
MonitorOptions |
newHostDelay(Long newHostDelay) |
MonitorOptions |
noDataTimeframe(Long noDataTimeframe) |
MonitorOptions |
notificationPresetName(MonitorOptionsNotificationPresets notificationPresetName) |
MonitorOptions |
notifyAudit(Boolean notifyAudit) |
MonitorOptions |
notifyBy(List<String> notifyBy) |
MonitorOptions |
notifyNoData(Boolean notifyNoData) |
MonitorOptions |
onMissingData(OnMissingDataOption onMissingData) |
MonitorOptions |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
MonitorOptions |
putSilencedItem(String key,
Long silencedItem) |
MonitorOptions |
renotifyInterval(Long renotifyInterval) |
MonitorOptions |
renotifyOccurrences(Long renotifyOccurrences) |
MonitorOptions |
renotifyStatuses(List<MonitorRenotifyStatusType> renotifyStatuses) |
MonitorOptions |
requireFullWindow(Boolean requireFullWindow) |
MonitorOptions |
schedulingOptions(MonitorOptionsSchedulingOptions schedulingOptions) |
void |
setEnableLogsSample(Boolean enableLogsSample) |
void |
setEnableSamples(Boolean enableSamples) |
void |
setEscalationMessage(String escalationMessage) |
void |
setEvaluationDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> evaluationDelay) |
void |
setEvaluationDelay(Long evaluationDelay) |
void |
setGroupbySimpleMonitor(Boolean groupbySimpleMonitor) |
void |
setGroupRetentionDuration(String groupRetentionDuration) |
void |
setIncludeTags(Boolean includeTags) |
void |
setLocked(Boolean locked)
Deprecated.
|
void |
setMinFailureDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minFailureDuration) |
void |
setMinFailureDuration(Long minFailureDuration) |
void |
setMinLocationFailed_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minLocationFailed) |
void |
setMinLocationFailed(Long minLocationFailed) |
void |
setNewGroupDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newGroupDelay) |
void |
setNewGroupDelay(Long newGroupDelay) |
void |
setNewHostDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newHostDelay) |
void |
setNewHostDelay(Long newHostDelay) |
void |
setNoDataTimeframe_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> noDataTimeframe) |
void |
setNoDataTimeframe(Long noDataTimeframe) |
void |
setNotificationPresetName(MonitorOptionsNotificationPresets notificationPresetName) |
void |
setNotifyAudit(Boolean notifyAudit) |
void |
setNotifyBy(List<String> notifyBy) |
void |
setNotifyNoData(Boolean notifyNoData) |
void |
setOnMissingData(OnMissingDataOption onMissingData) |
void |
setRenotifyInterval_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyInterval) |
void |
setRenotifyInterval(Long renotifyInterval) |
void |
setRenotifyOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyOccurrences) |
void |
setRenotifyOccurrences(Long renotifyOccurrences) |
void |
setRenotifyStatuses_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>> renotifyStatuses) |
void |
setRenotifyStatuses(List<MonitorRenotifyStatusType> renotifyStatuses) |
void |
setRequireFullWindow(Boolean requireFullWindow) |
void |
setSchedulingOptions(MonitorOptionsSchedulingOptions schedulingOptions) |
void |
setSilenced(Map<String,Long> silenced)
Deprecated.
|
void |
setSyntheticsCheckId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> syntheticsCheckId) |
void |
setSyntheticsCheckId(String syntheticsCheckId) |
void |
setThresholds(MonitorThresholds thresholds) |
void |
setThresholdWindows(MonitorThresholdWindowOptions thresholdWindows) |
void |
setTimeoutH_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> timeoutH) |
void |
setTimeoutH(Long timeoutH) |
void |
setVariables(List<MonitorFormulaAndFunctionQueryDefinition> variables) |
MonitorOptions |
silenced(Map<String,Long> silenced) |
MonitorOptions |
syntheticsCheckId(String syntheticsCheckId) |
MonitorOptions |
thresholds(MonitorThresholds thresholds) |
MonitorOptions |
thresholdWindows(MonitorThresholdWindowOptions thresholdWindows) |
MonitorOptions |
timeoutH(Long timeoutH) |
String |
toString() |
MonitorOptions |
variables(List<MonitorFormulaAndFunctionQueryDefinition> variables) |
public boolean unparsed
public static final String JSON_PROPERTY_AGGREGATION
public static final String JSON_PROPERTY_DEVICE_IDS
public static final String JSON_PROPERTY_ENABLE_LOGS_SAMPLE
public static final String JSON_PROPERTY_ENABLE_SAMPLES
public static final String JSON_PROPERTY_ESCALATION_MESSAGE
public static final String JSON_PROPERTY_EVALUATION_DELAY
public static final String JSON_PROPERTY_GROUP_RETENTION_DURATION
public static final String JSON_PROPERTY_GROUPBY_SIMPLE_MONITOR
public static final String JSON_PROPERTY_INCLUDE_TAGS
public static final String JSON_PROPERTY_LOCKED
public static final String JSON_PROPERTY_MIN_FAILURE_DURATION
public static final String JSON_PROPERTY_MIN_LOCATION_FAILED
public static final String JSON_PROPERTY_NEW_GROUP_DELAY
public static final String JSON_PROPERTY_NEW_HOST_DELAY
public static final String JSON_PROPERTY_NO_DATA_TIMEFRAME
public static final String JSON_PROPERTY_NOTIFICATION_PRESET_NAME
public static final String JSON_PROPERTY_NOTIFY_AUDIT
public static final String JSON_PROPERTY_NOTIFY_BY
public static final String JSON_PROPERTY_NOTIFY_NO_DATA
public static final String JSON_PROPERTY_ON_MISSING_DATA
public static final String JSON_PROPERTY_RENOTIFY_INTERVAL
public static final String JSON_PROPERTY_RENOTIFY_OCCURRENCES
public static final String JSON_PROPERTY_RENOTIFY_STATUSES
public static final String JSON_PROPERTY_REQUIRE_FULL_WINDOW
public static final String JSON_PROPERTY_SCHEDULING_OPTIONS
public static final String JSON_PROPERTY_SILENCED
public static final String JSON_PROPERTY_SYNTHETICS_CHECK_ID
public static final String JSON_PROPERTY_THRESHOLD_WINDOWS
public static final String JSON_PROPERTY_THRESHOLDS
public static final String JSON_PROPERTY_TIMEOUT_H
public static final String JSON_PROPERTY_VARIABLES
@Nullable public MonitorOptionsAggregation getAggregation()
@Deprecated @Nullable public List<MonitorDeviceID> getDeviceIds()
@Deprecated public MonitorOptions enableLogsSample(Boolean enableLogsSample)
@Nullable public Boolean getEnableLogsSample()
public void setEnableLogsSample(Boolean enableLogsSample)
public MonitorOptions enableSamples(Boolean enableSamples)
@Nullable public Boolean getEnableSamples()
public void setEnableSamples(Boolean enableSamples)
public MonitorOptions escalationMessage(String escalationMessage)
@Nullable public String getEscalationMessage()
@username notification we allow elsewhere. Not applicable if
renotify_interval is None.public void setEscalationMessage(String escalationMessage)
public MonitorOptions evaluationDelay(Long evaluationDelay)
@Nullable public Long getEvaluationDelay()
300 (5min), the timeframe is set to last_5m and the time is
7:00, the monitor evaluates data from 6:50 to 6:55. This is useful for AWS CloudWatch and other
backfilled metrics to ensure the monitor always has data during evaluation.public org.openapitools.jackson.nullable.JsonNullable<Long> getEvaluationDelay_JsonNullable()
public void setEvaluationDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> evaluationDelay)
public void setEvaluationDelay(Long evaluationDelay)
public MonitorOptions groupRetentionDuration(String groupRetentionDuration)
@Nullable public String getGroupRetentionDuration()
public void setGroupRetentionDuration(String groupRetentionDuration)
public MonitorOptions groupbySimpleMonitor(Boolean groupbySimpleMonitor)
@Nullable public Boolean getGroupbySimpleMonitor()
public void setGroupbySimpleMonitor(Boolean groupbySimpleMonitor)
public MonitorOptions includeTags(Boolean includeTags)
@Nullable public Boolean getIncludeTags()
Examples - If True,
[Triggered on {host:h1}] Monitor Title - If False,
[Triggered] Monitor Title
public void setIncludeTags(Boolean includeTags)
public MonitorOptions locked(Boolean locked)
@Deprecated @Nullable public Boolean getLocked()
restricted_roles instead.@Deprecated public void setLocked(Boolean locked)
public MonitorOptions minFailureDuration(Long minFailureDuration)
@Nullable public Long getMinFailureDuration()
public org.openapitools.jackson.nullable.JsonNullable<Long> getMinFailureDuration_JsonNullable()
public void setMinFailureDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minFailureDuration)
public void setMinFailureDuration(Long minFailureDuration)
public MonitorOptions minLocationFailed(Long minLocationFailed)
@Nullable public Long getMinLocationFailed()
min_failure_duration period (min_location_failed and
min_failure_duration are part of the advanced alerting rules - integer, >= 1).public org.openapitools.jackson.nullable.JsonNullable<Long> getMinLocationFailed_JsonNullable()
public void setMinLocationFailed_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minLocationFailed)
public void setMinLocationFailed(Long minLocationFailed)
public MonitorOptions newGroupDelay(Long newGroupDelay)
@Nullable public Long getNewGroupDelay()
For example, this option can be used to skip evaluations for new hosts while they initialize.
Must be a non negative integer.
public org.openapitools.jackson.nullable.JsonNullable<Long> getNewGroupDelay_JsonNullable()
public void setNewGroupDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newGroupDelay)
public void setNewGroupDelay(Long newGroupDelay)
public MonitorOptions newHostDelay(Long newHostDelay)
@Deprecated @Nullable public Long getNewHostDelay()
Use new_group_delay instead.
@Deprecated public org.openapitools.jackson.nullable.JsonNullable<Long> getNewHostDelay_JsonNullable()
public void setNewHostDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newHostDelay)
public void setNewHostDelay(Long newHostDelay)
public MonitorOptions noDataTimeframe(Long noDataTimeframe)
@Nullable public Long getNoDataTimeframe()
public org.openapitools.jackson.nullable.JsonNullable<Long> getNoDataTimeframe_JsonNullable()
public void setNoDataTimeframe_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> noDataTimeframe)
public void setNoDataTimeframe(Long noDataTimeframe)
public MonitorOptions notificationPresetName(MonitorOptionsNotificationPresets notificationPresetName)
@Nullable public MonitorOptionsNotificationPresets getNotificationPresetName()
public void setNotificationPresetName(MonitorOptionsNotificationPresets notificationPresetName)
public MonitorOptions notifyAudit(Boolean notifyAudit)
@Nullable public Boolean getNotifyAudit()
public void setNotifyAudit(Boolean notifyAudit)
public MonitorOptions notifyBy(List<String> notifyBy)
public MonitorOptions addNotifyByItem(String notifyByItem)
@Nullable public List<String> getNotifyBy()
cluster, namespace, and pod
can be configured to only notify on each new cluster violating the alert
conditions by setting notify_by to ["cluster"]. Tags mentioned in
notify_by must be a subset of the grouping tags in the query. For example, a query
grouped by cluster and namespace cannot notify on region
. Setting notify_by to [*] configures the monitor to notify as a
simple-alert.public MonitorOptions notifyNoData(Boolean notifyNoData)
@Nullable public Boolean getNotifyNoData()
false.public void setNotifyNoData(Boolean notifyNoData)
public MonitorOptions onMissingData(OnMissingDataOption onMissingData)
@Nullable public OnMissingDataOption getOnMissingData()
public void setOnMissingData(OnMissingDataOption onMissingData)
public MonitorOptions renotifyInterval(Long renotifyInterval)
@Nullable public Long getRenotifyInterval()
public org.openapitools.jackson.nullable.JsonNullable<Long> getRenotifyInterval_JsonNullable()
public void setRenotifyInterval_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyInterval)
public void setRenotifyInterval(Long renotifyInterval)
public MonitorOptions renotifyOccurrences(Long renotifyOccurrences)
@Nullable public Long getRenotifyOccurrences()
public org.openapitools.jackson.nullable.JsonNullable<Long> getRenotifyOccurrences_JsonNullable()
public void setRenotifyOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyOccurrences)
public void setRenotifyOccurrences(Long renotifyOccurrences)
public MonitorOptions renotifyStatuses(List<MonitorRenotifyStatusType> renotifyStatuses)
public MonitorOptions addRenotifyStatusesItem(MonitorRenotifyStatusType renotifyStatusesItem)
@Nullable public List<MonitorRenotifyStatusType> getRenotifyStatuses()
renotify_interval is null. If
renotify_interval is set, defaults to renotify on Alert and No Data
.public org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>> getRenotifyStatuses_JsonNullable()
public void setRenotifyStatuses_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>> renotifyStatuses)
public void setRenotifyStatuses(List<MonitorRenotifyStatusType> renotifyStatuses)
public MonitorOptions requireFullWindow(Boolean requireFullWindow)
@Nullable public Boolean getRequireFullWindow()
false for sparse metrics, otherwise some
evaluations are skipped. Default is false. This setting only applies to metric monitors.public void setRequireFullWindow(Boolean requireFullWindow)
public MonitorOptions schedulingOptions(MonitorOptionsSchedulingOptions schedulingOptions)
@Nullable public MonitorOptionsSchedulingOptions getSchedulingOptions()
public void setSchedulingOptions(MonitorOptionsSchedulingOptions schedulingOptions)
public MonitorOptions silenced(Map<String,Long> silenced)
public MonitorOptions putSilencedItem(String key, Long silencedItem)
@Deprecated @Nullable public Map<String,Long> getSilenced()
@Deprecated public void setSilenced(Map<String,Long> silenced)
public MonitorOptions syntheticsCheckId(String syntheticsCheckId)
@Deprecated @Nullable public String getSyntheticsCheckId()
@Deprecated public org.openapitools.jackson.nullable.JsonNullable<String> getSyntheticsCheckId_JsonNullable()
public void setSyntheticsCheckId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> syntheticsCheckId)
public void setSyntheticsCheckId(String syntheticsCheckId)
public MonitorOptions thresholdWindows(MonitorThresholdWindowOptions thresholdWindows)
@Nullable public MonitorThresholdWindowOptions getThresholdWindows()
public void setThresholdWindows(MonitorThresholdWindowOptions thresholdWindows)
public MonitorOptions thresholds(MonitorThresholds thresholds)
@Nullable public MonitorThresholds getThresholds()
public void setThresholds(MonitorThresholds thresholds)
public MonitorOptions timeoutH(Long timeoutH)
@Nullable public Long getTimeoutH()
public org.openapitools.jackson.nullable.JsonNullable<Long> getTimeoutH_JsonNullable()
public void setTimeoutH_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> timeoutH)
public void setTimeoutH(Long timeoutH)
public MonitorOptions variables(List<MonitorFormulaAndFunctionQueryDefinition> variables)
public MonitorOptions addVariablesItem(MonitorFormulaAndFunctionQueryDefinition variablesItem)
@Nullable public List<MonitorFormulaAndFunctionQueryDefinition> getVariables()
public void setVariables(List<MonitorFormulaAndFunctionQueryDefinition> variables)
public MonitorOptions putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.