Package com.datadog.api.client.v1.model
Class Monitor
java.lang.Object
com.datadog.api.client.v1.model.Monitor
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class Monitor
extends Object
Object describing a 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 Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssetsItem(MonitorAsset assetsItem) addMatchingDowntimesItem(MatchingDowntime matchingDowntimesItem) addRestrictedRolesItem(String restrictedRolesItem) addTagsItem(String tagsItem) assets(List<MonitorAsset> assets) draftStatus(MonitorDraftStatus draftStatus) booleanReturn true if this Monitor object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).Timestamp of the monitor creation.Object describing the creator of the shared element.Whether or not the monitor is deleted.org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime>Indicates whether the monitor is in a draft or published state.getId()ID of this monitor.A list of active v1 downtimes that match this monitor.A message to include with notifications for this monitor.Last timestamp when the monitor was edited.getMulti()Whether or not the monitor is broken down on different groups.getName()The monitor name.List of options associated with your monitor.The different states your monitor can be in.Integer from 1 (high) to 5 (low) indicating alert severity.org.openapitools.jackson.nullable.JsonNullable<Long>getQuery()The monitor query.A list of unique role identifiers to define which roles are allowed to edit the monitor.getState()Wrapper object with the different monitor states.getTags()Tags associated to your monitor.getType()The type of the monitor.inthashCode()matchingDowntimes(List<MatchingDowntime> matchingDowntimes) options(MonitorOptions options) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.restrictedRoles(List<String> restrictedRoles) voidsetAssets(List<MonitorAsset> assets) voidsetDraftStatus(MonitorDraftStatus draftStatus) voidsetMatchingDowntimes(List<MatchingDowntime> matchingDowntimes) voidsetMessage(String message) voidvoidsetOptions(MonitorOptions options) voidsetPriority(Long priority) voidsetPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> priority) voidvoidsetRestrictedRoles(List<String> restrictedRoles) voidsetRestrictedRoles_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> restrictedRoles) voidvoidsetType(MonitorType type) toString()type(MonitorType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ASSETS
- See Also:
-
JSON_PROPERTY_CREATED
- See Also:
-
JSON_PROPERTY_CREATOR
- See Also:
-
JSON_PROPERTY_DELETED
- See Also:
-
JSON_PROPERTY_DRAFT_STATUS
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_MATCHING_DOWNTIMES
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_MODIFIED
- See Also:
-
JSON_PROPERTY_MULTI
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_OPTIONS
- See Also:
-
JSON_PROPERTY_OVERALL_STATE
- See Also:
-
JSON_PROPERTY_PRIORITY
- See Also:
-
JSON_PROPERTY_QUERY
- See Also:
-
JSON_PROPERTY_RESTRICTED_ROLES
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
Monitor
public Monitor() -
Monitor
-
-
Method Details
-
assets
-
addAssetsItem
-
getAssets
The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).- Returns:
- assets
-
setAssets
-
getCreated
Timestamp of the monitor creation.- Returns:
- created
-
getCreator
Object describing the creator of the shared element.- Returns:
- creator
-
getDeleted
Whether or not the monitor is deleted. (Alwaysnull)- Returns:
- deleted
-
getDeleted_JsonNullable
-
draftStatus
-
getDraftStatus
Indicates whether the monitor is in a draft or published state.draft: The monitor appears as Draft and does not send notifications.published: The monitor is active and evaluates conditions and notify as configured.This field is in preview. The draft value is only available to customers with the feature enabled.
- Returns:
- draftStatus
-
setDraftStatus
-
getId
ID of this monitor.- Returns:
- id
-
matchingDowntimes
-
addMatchingDowntimesItem
-
getMatchingDowntimes
A list of active v1 downtimes that match this monitor.- Returns:
- matchingDowntimes
-
setMatchingDowntimes
-
message
-
getMessage
A message to include with notifications for this monitor.- Returns:
- message
-
setMessage
-
getModified
Last timestamp when the monitor was edited.- Returns:
- modified
-
getMulti
Whether or not the monitor is broken down on different groups.- Returns:
- multi
-
name
-
getName
The monitor name.- Returns:
- name
-
setName
-
options
-
getOptions
List of options associated with your monitor.- Returns:
- options
-
setOptions
-
getOverallState
The different states your monitor can be in.- Returns:
- overallState
-
priority
-
getPriority
Integer from 1 (high) to 5 (low) indicating alert severity.- Returns:
- priority
-
getPriority_JsonNullable
-
setPriority_JsonNullable
-
setPriority
-
query
-
getQuery
The monitor query.- Returns:
- query
-
setQuery
-
restrictedRoles
-
addRestrictedRolesItem
-
getRestrictedRoles
A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in thedata.idfield. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.- Returns:
- restrictedRoles
-
getRestrictedRoles_JsonNullable
-
setRestrictedRoles_JsonNullable
-
setRestrictedRoles
-
getState
Wrapper object with the different monitor states.- Returns:
- state
-
tags
-
addTagsItem
-
getTags
Tags associated to your monitor.- Returns:
- tags
-
setTags
-
type
-
getType
The type of the monitor. For more information abouttype, see the monitor options docs.- Returns:
- type
-
setType
-
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:
- Monitor
-
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 Monitor object is equal to o. -
hashCode
public int hashCode() -
toString
-