@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Downtime extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ACTIVE |
static String |
JSON_PROPERTY_ACTIVE_CHILD |
static String |
JSON_PROPERTY_CANCELED |
static String |
JSON_PROPERTY_CREATOR_ID |
static String |
JSON_PROPERTY_DISABLED |
static String |
JSON_PROPERTY_DOWNTIME_TYPE |
static String |
JSON_PROPERTY_END |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_MESSAGE |
static String |
JSON_PROPERTY_MONITOR_ID |
static String |
JSON_PROPERTY_MONITOR_TAGS |
static String |
JSON_PROPERTY_MUTE_FIRST_RECOVERY_NOTIFICATION |
static String |
JSON_PROPERTY_NOTIFY_END_STATES |
static String |
JSON_PROPERTY_NOTIFY_END_TYPES |
static String |
JSON_PROPERTY_PARENT_ID |
static String |
JSON_PROPERTY_RECURRENCE |
static String |
JSON_PROPERTY_SCOPE |
static String |
JSON_PROPERTY_START |
static String |
JSON_PROPERTY_TIMEZONE |
static String |
JSON_PROPERTY_UPDATER_ID |
boolean |
unparsed |
| Constructor and Description |
|---|
Downtime() |
| Modifier and Type | Method and Description |
|---|---|
Downtime |
addMonitorTagsItem(String monitorTagsItem) |
Downtime |
addNotifyEndStatesItem(NotifyEndState notifyEndStatesItem) |
Downtime |
addNotifyEndTypesItem(NotifyEndType notifyEndTypesItem) |
Downtime |
addScopeItem(String scopeItem) |
Downtime |
disabled(Boolean disabled) |
Downtime |
end(Long end) |
boolean |
equals(Object o)
Return true if this Downtime object is equal to o.
|
Boolean |
getActive()
If a scheduled downtime currently exists.
|
org.openapitools.jackson.nullable.JsonNullable<DowntimeChild> |
getActiveChild_JsonNullable() |
DowntimeChild |
getActiveChild()
The downtime object definition of the active child for the original parent recurring downtime.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getCanceled_JsonNullable() |
Long |
getCanceled()
If a scheduled downtime is canceled.
|
Integer |
getCreatorId()
User ID of the downtime creator.
|
Boolean |
getDisabled()
If a downtime has been disabled.
|
Integer |
getDowntimeType()
0 for a downtime applied on * or all, 1 when the
downtime is only scoped to hosts, or 2 when the downtime is scoped to anything but
hosts. |
org.openapitools.jackson.nullable.JsonNullable<Long> |
getEnd_JsonNullable() |
Long |
getEnd()
POSIX timestamp to end the downtime.
|
Long |
getId()
The downtime ID.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getMessage_JsonNullable() |
String |
getMessage()
A message to include with notifications for this downtime.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getMonitorId_JsonNullable() |
Long |
getMonitorId()
A single monitor to which the downtime applies.
|
List<String> |
getMonitorTags()
A comma-separated list of monitor tags.
|
Boolean |
getMuteFirstRecoveryNotification()
If the first recovery notification during a downtime should be muted.
|
List<NotifyEndState> |
getNotifyEndStates()
States for which
notify_end_types sends out notifications for. |
List<NotifyEndType> |
getNotifyEndTypes()
If set, notifies if a monitor is in an alert-worthy state (
ALERT, WARNING
, or NO DATA) when this downtime expires or is canceled. |
org.openapitools.jackson.nullable.JsonNullable<Long> |
getParentId_JsonNullable() |
Long |
getParentId()
ID of the parent Downtime.
|
org.openapitools.jackson.nullable.JsonNullable<DowntimeRecurrence> |
getRecurrence_JsonNullable() |
DowntimeRecurrence |
getRecurrence()
An object defining the recurrence of the downtime.
|
List<String> |
getScope()
The scope(s) to which the downtime applies and must be in
key:value format. |
Long |
getStart()
POSIX timestamp to start the downtime.
|
String |
getTimezone()
The timezone in which to display the downtime's start and end times in Datadog applications.
|
org.openapitools.jackson.nullable.JsonNullable<Integer> |
getUpdaterId_JsonNullable() |
Integer |
getUpdaterId()
ID of the last user that updated the downtime.
|
int |
hashCode() |
Downtime |
message(String message) |
Downtime |
monitorId(Long monitorId) |
Downtime |
monitorTags(List<String> monitorTags) |
Downtime |
muteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification) |
Downtime |
notifyEndStates(List<NotifyEndState> notifyEndStates) |
Downtime |
notifyEndTypes(List<NotifyEndType> notifyEndTypes) |
Downtime |
parentId(Long parentId) |
Downtime |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
Downtime |
recurrence(DowntimeRecurrence recurrence) |
Downtime |
scope(List<String> scope) |
void |
setDisabled(Boolean disabled) |
void |
setEnd_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> end) |
void |
setEnd(Long end) |
void |
setMessage_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> message) |
void |
setMessage(String message) |
void |
setMonitorId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> monitorId) |
void |
setMonitorId(Long monitorId) |
void |
setMonitorTags(List<String> monitorTags) |
void |
setMuteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification) |
void |
setNotifyEndStates(List<NotifyEndState> notifyEndStates) |
void |
setNotifyEndTypes(List<NotifyEndType> notifyEndTypes) |
void |
setParentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> parentId) |
void |
setParentId(Long parentId) |
void |
setRecurrence_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<DowntimeRecurrence> recurrence) |
void |
setRecurrence(DowntimeRecurrence recurrence) |
void |
setScope(List<String> scope) |
void |
setStart(Long start) |
void |
setTimezone(String timezone) |
Downtime |
start(Long start) |
Downtime |
timezone(String timezone) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_ACTIVE_CHILD
public static final String JSON_PROPERTY_CANCELED
public static final String JSON_PROPERTY_CREATOR_ID
public static final String JSON_PROPERTY_DISABLED
public static final String JSON_PROPERTY_DOWNTIME_TYPE
public static final String JSON_PROPERTY_END
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_MONITOR_ID
public static final String JSON_PROPERTY_MONITOR_TAGS
public static final String JSON_PROPERTY_MUTE_FIRST_RECOVERY_NOTIFICATION
public static final String JSON_PROPERTY_NOTIFY_END_STATES
public static final String JSON_PROPERTY_NOTIFY_END_TYPES
public static final String JSON_PROPERTY_PARENT_ID
public static final String JSON_PROPERTY_RECURRENCE
public static final String JSON_PROPERTY_SCOPE
public static final String JSON_PROPERTY_START
public static final String JSON_PROPERTY_TIMEZONE
public static final String JSON_PROPERTY_UPDATER_ID
@Nullable public Boolean getActive()
@Nullable public DowntimeChild getActiveChild()
public org.openapitools.jackson.nullable.JsonNullable<DowntimeChild> getActiveChild_JsonNullable()
@Nullable public Long getCanceled()
public org.openapitools.jackson.nullable.JsonNullable<Long> getCanceled_JsonNullable()
@Nullable public Integer getCreatorId()
@Nullable public Boolean getDisabled()
public void setDisabled(Boolean disabled)
@Nullable public Integer getDowntimeType()
0 for a downtime applied on * or all, 1 when the
downtime is only scoped to hosts, or 2 when the downtime is scoped to anything but
hosts. maximum: 2147483647@Nullable public Long getEnd()
public org.openapitools.jackson.nullable.JsonNullable<Long> getEnd_JsonNullable()
public void setEnd_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> end)
public void setEnd(Long end)
@Nullable public Long getId()
@Nullable public String getMessage()
@username notation as events.public org.openapitools.jackson.nullable.JsonNullable<String> getMessage_JsonNullable()
public void setMessage_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> message)
public void setMessage(String message)
@Nullable public Long getMonitorId()
public org.openapitools.jackson.nullable.JsonNullable<Long> getMonitorId_JsonNullable()
public void setMonitorId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> monitorId)
public void setMonitorId(Long monitorId)
@Nullable public List<String> getMonitorTags()
service:postgres
AND team:frontend.public Downtime muteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification)
@Nullable public Boolean getMuteFirstRecoveryNotification()
public void setMuteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification)
public Downtime notifyEndStates(List<NotifyEndState> notifyEndStates)
public Downtime addNotifyEndStatesItem(NotifyEndState notifyEndStatesItem)
@Nullable public List<NotifyEndState> getNotifyEndStates()
notify_end_types sends out notifications for.public void setNotifyEndStates(List<NotifyEndState> notifyEndStates)
public Downtime notifyEndTypes(List<NotifyEndType> notifyEndTypes)
public Downtime addNotifyEndTypesItem(NotifyEndType notifyEndTypesItem)
@Nullable public List<NotifyEndType> getNotifyEndTypes()
ALERT, WARNING
, or NO DATA) when this downtime expires or is canceled. Applied to
monitors that change states during the downtime (such as from OK to ALERT
, WARNING, or NO DATA), and to monitors that already have an
alert-worthy state when downtime begins.public void setNotifyEndTypes(List<NotifyEndType> notifyEndTypes)
@Nullable public Long getParentId()
public org.openapitools.jackson.nullable.JsonNullable<Long> getParentId_JsonNullable()
public void setParentId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> parentId)
public void setParentId(Long parentId)
public Downtime recurrence(DowntimeRecurrence recurrence)
@Nullable public DowntimeRecurrence getRecurrence()
public org.openapitools.jackson.nullable.JsonNullable<DowntimeRecurrence> getRecurrence_JsonNullable()
public void setRecurrence_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<DowntimeRecurrence> recurrence)
public void setRecurrence(DowntimeRecurrence recurrence)
@Nullable public List<String> getScope()
key:value format. For
example, host:app2. Provide multiple scopes as a comma-separated list like
env:dev,env:prod. The resulting downtime applies to sources that matches ALL provided
scopes (env:dev AND env:prod).@Nullable public Long getStart()
public void setStart(Long start)
@Nullable public String getTimezone()
public void setTimezone(String timezone)
@Nullable public Integer getUpdaterId()
public org.openapitools.jackson.nullable.JsonNullable<Integer> getUpdaterId_JsonNullable()
public Downtime 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.