Package com.datadog.api.client.v1.model
Class MonitorOptions
java.lang.Object
com.datadog.api.client.v1.model.MonitorOptions
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class MonitorOptions
extends Object
List of options associated with your monitor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNotifyByItem(String notifyByItem) addRenotifyStatusesItem(MonitorRenotifyStatusType renotifyStatusesItem) addVariablesItem(MonitorFormulaAndFunctionQueryDefinition variablesItem) enableLogsSample(Boolean enableLogsSample) Deprecated.enableSamples(Boolean enableSamples) booleanReturn true if this MonitorOptions object is equal to o.escalationMessage(String escalationMessage) evaluationDelay(Long evaluationDelay) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Type of aggregation performed in the monitor query.Deprecated.Whether or not to send a log sample when the log monitor triggers.Whether or not to send a list of samples when the monitor triggers.We recommend using the is_renotify, block in the original message instead.Time (in seconds) to delay evaluation, as a non-negative integer.org.openapitools.jackson.nullable.JsonNullable<Long>Deprecated.The time span after which groups with missing data are dropped from the monitor state.A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.Deprecated.How long the test should be in failure before alerting (integer, number of seconds, max 7200).org.openapitools.jackson.nullable.JsonNullable<Long>The minimum number of locations in failure at the same time during at least one moment in themin_failure_durationperiod (min_location_failedandmin_failure_durationare part of the advanced alerting rules - integer, >= 1).org.openapitools.jackson.nullable.JsonNullable<Long>Time (in seconds) to skip evaluations for new groups.org.openapitools.jackson.nullable.JsonNullable<Long>Deprecated.org.openapitools.jackson.nullable.JsonNullable<Long>Deprecated.The number of minutes before a monitor notifies after data stops reporting.org.openapitools.jackson.nullable.JsonNullable<Long>Toggles the display of additional content sent in the monitor notification.A Boolean indicating whether tagged users is notified on changes to this monitor.Controls what granularity a monitor alerts on.A Boolean indicating whether this monitor notifies when data stops reporting.Controls how groups or monitors are treated if an evaluation does not return any data points.The number of minutes after the last notification before a monitor re-notifies on the current status.org.openapitools.jackson.nullable.JsonNullable<Long>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<Long>The types of monitor statuses for which re-notification messages are sent.org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>>A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.Configuration options for scheduling.Deprecated.Deprecated.org.openapitools.jackson.nullable.JsonNullable<String>Deprecated.List of the different monitor threshold available.Alerting time window options.The number of hours of the monitor not reporting data before it automatically resolves from a triggered state.org.openapitools.jackson.nullable.JsonNullable<Long>List of requests that can be used in the monitor query.groupbySimpleMonitor(Boolean groupbySimpleMonitor) groupRetentionDuration(String groupRetentionDuration) inthashCode()includeTags(Boolean includeTags) minFailureDuration(Long minFailureDuration) minLocationFailed(Long minLocationFailed) newGroupDelay(Long newGroupDelay) newHostDelay(Long newHostDelay) noDataTimeframe(Long noDataTimeframe) notificationPresetName(MonitorOptionsNotificationPresets notificationPresetName) notifyAudit(Boolean notifyAudit) notifyNoData(Boolean notifyNoData) onMissingData(OnMissingDataOption onMissingData) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putSilencedItem(String key, Long silencedItem) renotifyInterval(Long renotifyInterval) renotifyOccurrences(Long renotifyOccurrences) renotifyStatuses(List<MonitorRenotifyStatusType> renotifyStatuses) requireFullWindow(Boolean requireFullWindow) schedulingOptions(MonitorOptionsSchedulingOptions schedulingOptions) voidsetEnableLogsSample(Boolean enableLogsSample) voidsetEnableSamples(Boolean enableSamples) voidsetEscalationMessage(String escalationMessage) voidsetEvaluationDelay(Long evaluationDelay) voidsetEvaluationDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> evaluationDelay) voidsetGroupbySimpleMonitor(Boolean groupbySimpleMonitor) Deprecated.voidsetGroupRetentionDuration(String groupRetentionDuration) voidsetIncludeTags(Boolean includeTags) voidDeprecated.voidsetMinFailureDuration(Long minFailureDuration) voidsetMinFailureDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minFailureDuration) voidsetMinLocationFailed(Long minLocationFailed) voidsetMinLocationFailed_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minLocationFailed) voidsetNewGroupDelay(Long newGroupDelay) voidsetNewGroupDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newGroupDelay) voidsetNewHostDelay(Long newHostDelay) voidsetNewHostDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newHostDelay) voidsetNoDataTimeframe(Long noDataTimeframe) voidsetNoDataTimeframe_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> noDataTimeframe) voidsetNotificationPresetName(MonitorOptionsNotificationPresets notificationPresetName) voidsetNotifyAudit(Boolean notifyAudit) voidsetNotifyBy(List<String> notifyBy) voidsetNotifyNoData(Boolean notifyNoData) voidsetOnMissingData(OnMissingDataOption onMissingData) voidsetRenotifyInterval(Long renotifyInterval) voidsetRenotifyInterval_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyInterval) voidsetRenotifyOccurrences(Long renotifyOccurrences) voidsetRenotifyOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyOccurrences) voidsetRenotifyStatuses(List<MonitorRenotifyStatusType> renotifyStatuses) voidsetRenotifyStatuses_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>> renotifyStatuses) voidsetRequireFullWindow(Boolean requireFullWindow) voidsetSchedulingOptions(MonitorOptionsSchedulingOptions schedulingOptions) voidsetSilenced(Map<String, Long> silenced) Deprecated.voidsetSyntheticsCheckId(String syntheticsCheckId) voidsetSyntheticsCheckId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> syntheticsCheckId) voidsetThresholds(MonitorThresholds thresholds) voidsetThresholdWindows(MonitorThresholdWindowOptions thresholdWindows) voidsetTimeoutH(Long timeoutH) voidsetTimeoutH_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> timeoutH) voidsetVariables(List<MonitorFormulaAndFunctionQueryDefinition> variables) syntheticsCheckId(String syntheticsCheckId) thresholds(MonitorThresholds thresholds) thresholdWindows(MonitorThresholdWindowOptions thresholdWindows) toString()variables(List<MonitorFormulaAndFunctionQueryDefinition> variables)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AGGREGATION
- See Also:
-
JSON_PROPERTY_DEVICE_IDS
- See Also:
-
JSON_PROPERTY_ENABLE_LOGS_SAMPLE
- See Also:
-
JSON_PROPERTY_ENABLE_SAMPLES
- See Also:
-
JSON_PROPERTY_ESCALATION_MESSAGE
- See Also:
-
JSON_PROPERTY_EVALUATION_DELAY
- See Also:
-
JSON_PROPERTY_GROUP_RETENTION_DURATION
- See Also:
-
JSON_PROPERTY_GROUPBY_SIMPLE_MONITOR
- See Also:
-
JSON_PROPERTY_INCLUDE_TAGS
- See Also:
-
JSON_PROPERTY_LOCKED
- See Also:
-
JSON_PROPERTY_MIN_FAILURE_DURATION
- See Also:
-
JSON_PROPERTY_MIN_LOCATION_FAILED
- See Also:
-
JSON_PROPERTY_NEW_GROUP_DELAY
- See Also:
-
JSON_PROPERTY_NEW_HOST_DELAY
- See Also:
-
JSON_PROPERTY_NO_DATA_TIMEFRAME
- See Also:
-
JSON_PROPERTY_NOTIFICATION_PRESET_NAME
- See Also:
-
JSON_PROPERTY_NOTIFY_AUDIT
- See Also:
-
JSON_PROPERTY_NOTIFY_BY
- See Also:
-
JSON_PROPERTY_NOTIFY_NO_DATA
- See Also:
-
JSON_PROPERTY_ON_MISSING_DATA
- See Also:
-
JSON_PROPERTY_RENOTIFY_INTERVAL
- See Also:
-
JSON_PROPERTY_RENOTIFY_OCCURRENCES
- See Also:
-
JSON_PROPERTY_RENOTIFY_STATUSES
- See Also:
-
JSON_PROPERTY_REQUIRE_FULL_WINDOW
- See Also:
-
JSON_PROPERTY_SCHEDULING_OPTIONS
- See Also:
-
JSON_PROPERTY_SILENCED
- See Also:
-
JSON_PROPERTY_SYNTHETICS_CHECK_ID
- See Also:
-
JSON_PROPERTY_THRESHOLD_WINDOWS
- See Also:
-
JSON_PROPERTY_THRESHOLDS
- See Also:
-
JSON_PROPERTY_TIMEOUT_H
- See Also:
-
JSON_PROPERTY_VARIABLES
- See Also:
-
-
Constructor Details
-
MonitorOptions
public MonitorOptions()
-
-
Method Details
-
getAggregation
Type of aggregation performed in the monitor query.- Returns:
- aggregation
-
getDeviceIds
Deprecated.IDs of the device the Synthetics monitor is running on.- Returns:
- deviceIds
-
enableLogsSample
Deprecated. -
getEnableLogsSample
Whether or not to send a log sample when the log monitor triggers.- Returns:
- enableLogsSample
-
setEnableLogsSample
-
enableSamples
-
getEnableSamples
Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.- Returns:
- enableSamples
-
setEnableSamples
-
escalationMessage
-
getEscalationMessage
We recommend using the is_renotify, block in the original message instead. A message to include with a re-notification. Supports the@usernamenotification we allow elsewhere. Not applicable ifrenotify_intervalisNone.- Returns:
- escalationMessage
-
setEscalationMessage
-
evaluationDelay
-
getEvaluationDelay
Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to300(5min), the timeframe is set tolast_5mand 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.- Returns:
- evaluationDelay
-
getEvaluationDelay_JsonNullable
-
setEvaluationDelay_JsonNullable
public void setEvaluationDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> evaluationDelay) -
setEvaluationDelay
-
groupRetentionDuration
-
getGroupRetentionDuration
The time span after which groups with missing data are dropped from the monitor state. The minimum value is one hour, and the maximum value is 72 hours. Example values are: "60m", "1h", and "2d". This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.- Returns:
- groupRetentionDuration
-
setGroupRetentionDuration
-
groupbySimpleMonitor
-
getGroupbySimpleMonitor
Deprecated.Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Usenotify_byinstead.- Returns:
- groupbySimpleMonitor
-
setGroupbySimpleMonitor
Deprecated. -
includeTags
-
getIncludeTags
A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.Examples - If
True,[Triggered on {host:h1}] Monitor Title- IfFalse,[Triggered] Monitor Title- Returns:
- includeTags
-
setIncludeTags
-
locked
-
getLocked
Deprecated.Whether or not the monitor is locked (only editable by creator and admins). Userestricted_rolesinstead.- Returns:
- locked
-
setLocked
Deprecated. -
minFailureDuration
-
getMinFailureDuration
How long the test should be in failure before alerting (integer, number of seconds, max 7200). minimum: 0 maximum: 7200- Returns:
- minFailureDuration
-
getMinFailureDuration_JsonNullable
-
setMinFailureDuration_JsonNullable
public void setMinFailureDuration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minFailureDuration) -
setMinFailureDuration
-
minLocationFailed
-
getMinLocationFailed
The minimum number of locations in failure at the same time during at least one moment in themin_failure_durationperiod (min_location_failedandmin_failure_durationare part of the advanced alerting rules - integer, >= 1).- Returns:
- minLocationFailed
-
getMinLocationFailed_JsonNullable
-
setMinLocationFailed_JsonNullable
public void setMinLocationFailed_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> minLocationFailed) -
setMinLocationFailed
-
newGroupDelay
-
getNewGroupDelay
Time (in seconds) to skip evaluations for new groups.For example, this option can be used to skip evaluations for new hosts while they initialize.
Must be a non negative integer.
- Returns:
- newGroupDelay
-
getNewGroupDelay_JsonNullable
-
setNewGroupDelay_JsonNullable
public void setNewGroupDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newGroupDelay) -
setNewGroupDelay
-
newHostDelay
-
getNewHostDelay
Deprecated.Time (in seconds) to allow a host to boot and applications to fully start before starting the evaluation of monitor results. Should be a non negative integer.Use new_group_delay instead.
- Returns:
- newHostDelay
-
getNewHostDelay_JsonNullable
@Deprecated public org.openapitools.jackson.nullable.JsonNullable<Long> getNewHostDelay_JsonNullable()Deprecated. -
setNewHostDelay_JsonNullable
public void setNewHostDelay_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> newHostDelay) -
setNewHostDelay
-
noDataTimeframe
-
getNoDataTimeframe
The number of minutes before a monitor notifies after data stops reporting. Datadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks. If omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.- Returns:
- noDataTimeframe
-
getNoDataTimeframe_JsonNullable
-
setNoDataTimeframe_JsonNullable
public void setNoDataTimeframe_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> noDataTimeframe) -
setNoDataTimeframe
-
notificationPresetName
public MonitorOptions notificationPresetName(MonitorOptionsNotificationPresets notificationPresetName) -
getNotificationPresetName
Toggles the display of additional content sent in the monitor notification.- Returns:
- notificationPresetName
-
setNotificationPresetName
-
notifyAudit
-
getNotifyAudit
A Boolean indicating whether tagged users is notified on changes to this monitor.- Returns:
- notifyAudit
-
setNotifyAudit
-
notifyBy
-
addNotifyByItem
-
getNotifyBy
Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor grouped bycluster,namespace, andpodcan be configured to only notify on each newclusterviolating the alert conditions by settingnotify_byto["cluster"]. Tags mentioned innotify_bymust be a subset of the grouping tags in the query. For example, a query grouped byclusterandnamespacecannot notify onregion. Settingnotify_byto["*"]configures the monitor to notify as a simple-alert.- Returns:
- notifyBy
-
setNotifyBy
-
notifyNoData
-
getNotifyNoData
A Boolean indicating whether this monitor notifies when data stops reporting. Defaults tofalse.- Returns:
- notifyNoData
-
setNotifyNoData
-
onMissingData
-
getOnMissingData
Controls how groups or monitors are treated if an evaluation does not return any data points. The default option results in different behavior depending on the monitor query type. For monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. For monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status. This option is available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. It is also required for metric monitors that usescheduling_options.custom_schedule.- Returns:
- onMissingData
-
setOnMissingData
-
renotifyInterval
-
getRenotifyInterval
The number of minutes after the last notification before a monitor re-notifies on the current status. It only re-notifies if it’s not resolved.- Returns:
- renotifyInterval
-
getRenotifyInterval_JsonNullable
-
setRenotifyInterval_JsonNullable
public void setRenotifyInterval_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyInterval) -
setRenotifyInterval
-
renotifyOccurrences
-
getRenotifyOccurrences
The number of times re-notification messages should be sent on the current status at the provided re-notification interval.- Returns:
- renotifyOccurrences
-
getRenotifyOccurrences_JsonNullable
-
setRenotifyOccurrences_JsonNullable
public void setRenotifyOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> renotifyOccurrences) -
setRenotifyOccurrences
-
renotifyStatuses
-
addRenotifyStatusesItem
-
getRenotifyStatuses
The types of monitor statuses for which re-notification messages are sent. Default: null ifrenotify_intervalis null. Ifrenotify_intervalis set, defaults to renotify onAlertandNo Data.- Returns:
- renotifyStatuses
-
getRenotifyStatuses_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>> getRenotifyStatuses_JsonNullable() -
setRenotifyStatuses_JsonNullable
public void setRenotifyStatuses_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<MonitorRenotifyStatusType>> renotifyStatuses) -
setRenotifyStatuses
-
requireFullWindow
-
getRequireFullWindow
A Boolean indicating whether this monitor needs a full window of data before it’s evaluated. We highly recommend you set this tofalsefor sparse metrics, otherwise some evaluations are skipped. Default is false. This setting only applies to metric monitors.- Returns:
- requireFullWindow
-
setRequireFullWindow
-
schedulingOptions
-
getSchedulingOptions
Configuration options for scheduling.- Returns:
- schedulingOptions
-
setSchedulingOptions
-
silenced
-
putSilencedItem
-
getSilenced
Deprecated.Information about the downtime applied to the monitor. Only shows v1 downtimes.- Returns:
- silenced
-
setSilenced
Deprecated. -
syntheticsCheckId
-
getSyntheticsCheckId
Deprecated.ID of the corresponding Synthetic check.- Returns:
- syntheticsCheckId
-
getSyntheticsCheckId_JsonNullable
@Deprecated public org.openapitools.jackson.nullable.JsonNullable<String> getSyntheticsCheckId_JsonNullable()Deprecated. -
setSyntheticsCheckId_JsonNullable
public void setSyntheticsCheckId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> syntheticsCheckId) -
setSyntheticsCheckId
-
thresholdWindows
-
getThresholdWindows
Alerting time window options.- Returns:
- thresholdWindows
-
setThresholdWindows
-
thresholds
-
getThresholds
List of the different monitor threshold available.- Returns:
- thresholds
-
setThresholds
-
timeoutH
-
getTimeoutH
The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.- Returns:
- timeoutH
-
getTimeoutH_JsonNullable
-
setTimeoutH_JsonNullable
-
setTimeoutH
-
variables
-
addVariablesItem
-
getVariables
List of requests that can be used in the monitor query. This feature is currently in beta.- Returns:
- variables
-
setVariables
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- MonitorOptions
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this MonitorOptions object is equal to o. -
hashCode
public int hashCode() -
toString
-