Package com.datadog.api.client.v1.model
Class MatchingDowntime
java.lang.Object
com.datadog.api.client.v1.model.MatchingDowntime
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class MatchingDowntime
extends Object
Object describing a downtime that matches this monitor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddScopeItem(String scopeItem) booleanReturn true if this MatchingDowntime object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getEnd()POSIX timestamp to end the downtime.org.openapitools.jackson.nullable.JsonNullable<Long>getId()The downtime ID.getScope()The scope(s) to which the downtime applies.getStart()POSIX timestamp to start the downtime.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetEnd_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> end) voidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_END
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_START
- See Also:
-
-
Constructor Details
-
MatchingDowntime
public MatchingDowntime() -
MatchingDowntime
-
-
Method Details
-
end
-
getEnd
POSIX timestamp to end the downtime.- Returns:
- end
-
getEnd_JsonNullable
-
setEnd_JsonNullable
-
setEnd
-
getId
The downtime ID.- Returns:
- id
-
scope
-
addScopeItem
-
getScope
The scope(s) to which the downtime applies. Must be inkey:valueformat. For example,host:app2. Provide multiple scopes as a comma-separated list likeenv:dev,env:prod. The resulting downtime applies to sources that matches ALL provided scopes (env:devANDenv:prod).- Returns:
- scope
-
setScope
-
start
-
getStart
POSIX timestamp to start the downtime.- Returns:
- start
-
setStart
-
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:
- MatchingDowntime
-
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 MatchingDowntime object is equal to o. -
hashCode
public int hashCode() -
toString
-