@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DowntimeChild extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JSON_PROPERTY_ACTIVE |
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_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 |
---|
DowntimeChild() |
Modifier and Type | Method and Description |
---|---|
DowntimeChild |
addMonitorTagsItem(String monitorTagsItem) |
DowntimeChild |
addScopeItem(String scopeItem) |
DowntimeChild |
disabled(Boolean disabled) |
DowntimeChild |
end(Long end) |
boolean |
equals(Object o)
Return true if this DowntimeChild object is equal to o.
|
Boolean |
getActive()
If a scheduled downtime currently exists.
|
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.
|
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.
|
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.
|
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() |
DowntimeChild |
message(String message) |
DowntimeChild |
monitorId(Long monitorId) |
DowntimeChild |
monitorTags(List<String> monitorTags) |
DowntimeChild |
muteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification) |
DowntimeChild |
parentId(Long parentId) |
DowntimeChild |
recurrence(DowntimeRecurrence recurrence) |
DowntimeChild |
scope(List<String> scope) |
void |
setDisabled(Boolean disabled) |
void |
setEnd_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> end) |
void |
setEnd(Long end) |
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 |
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) |
DowntimeChild |
start(Long start) |
DowntimeChild |
timezone(String timezone) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_ACTIVE
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_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 Long getCanceled()
public org.openapitools.jackson.nullable.JsonNullable<Long> getCanceled_JsonNullable()
@Nullable public Integer getCreatorId()
public DowntimeChild disabled(Boolean disabled)
@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: 2147483647public DowntimeChild end(Long end)
@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()
public DowntimeChild message(String message)
@Nullable public String getMessage()
@username
notation as events.public void setMessage(String message)
public DowntimeChild monitorId(Long monitorId)
@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)
public DowntimeChild monitorTags(List<String> monitorTags)
public DowntimeChild addMonitorTagsItem(String monitorTagsItem)
@Nullable public List<String> getMonitorTags()
service:postgres
AND team:frontend
.public DowntimeChild muteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification)
@Nullable public Boolean getMuteFirstRecoveryNotification()
public void setMuteFirstRecoveryNotification(Boolean muteFirstRecoveryNotification)
public DowntimeChild parentId(Long parentId)
@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 DowntimeChild 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)
public DowntimeChild scope(List<String> scope)
public DowntimeChild addScopeItem(String scopeItem)
@Nullable public List<String> getScope()
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
).public DowntimeChild start(Long start)
@Nullable public Long getStart()
public void setStart(Long start)
public DowntimeChild timezone(String timezone)
@Nullable public String getTimezone()
public void setTimezone(String timezone)
@Nullable public Integer getUpdaterId()
public org.openapitools.jackson.nullable.JsonNullable<Integer> getUpdaterId_JsonNullable()
public boolean equals(Object o)
Copyright © 2023. All rights reserved.