Package com.datadog.api.client.v2.model
Class AnnotationAttributes
java.lang.Object
com.datadog.api.client.v2.model.AnnotationAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AnnotationAttributes
extends Object
Attributes of an annotation returned in a response.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationAttributes(String authorId, AnnotationColor color, Long createdAt, String description, Long endTime, Long modifiedAt, String pageId, Long startTime, AnnotationKind type) -
Method Summary
Modifier and TypeMethodDescriptionaddWidgetIdsItem(String widgetIdsItem) color(AnnotationColor color) description(String description) booleanReturn true if this AnnotationAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Identifier of the user who created the annotation.getColor()Color used to render the annotation in the UI.Creation time of the annotation in milliseconds since the Unix epoch.User-defined text attached to the annotation.End time of the annotation in milliseconds since the Unix epoch.Last modification time of the annotation in milliseconds since the Unix epoch.ID of the page the annotation belongs to, prefixed with the page type and joined by a colon (for example,dashboard:abc-def-xyzornotebook:1234567890).Start time of the annotation in milliseconds since the Unix epoch.getType()Kind of annotation.IDs of widgets the annotation is associated with.inthashCode()modifiedAt(Long modifiedAt) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAuthorId(String authorId) voidsetColor(AnnotationColor color) voidsetCreatedAt(Long createdAt) voidsetDescription(String description) voidsetEndTime(Long endTime) voidsetModifiedAt(Long modifiedAt) voidvoidsetStartTime(Long startTime) voidsetType(AnnotationKind type) voidsetWidgetIds(List<String> widgetIds) toString()type(AnnotationKind type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AUTHOR_ID
- See Also:
-
JSON_PROPERTY_COLOR
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_END_TIME
- See Also:
-
JSON_PROPERTY_MODIFIED_AT
- See Also:
-
JSON_PROPERTY_PAGE_ID
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_WIDGET_IDS
- See Also:
-
-
Constructor Details
-
AnnotationAttributes
public AnnotationAttributes() -
AnnotationAttributes
public AnnotationAttributes(String authorId, AnnotationColor color, Long createdAt, String description, Long endTime, Long modifiedAt, String pageId, Long startTime, AnnotationKind type)
-
-
Method Details
-
authorId
-
getAuthorId
Identifier of the user who created the annotation.- Returns:
- authorId
-
setAuthorId
-
color
-
getColor
Color used to render the annotation in the UI.- Returns:
- color
-
setColor
-
createdAt
-
getCreatedAt
Creation time of the annotation in milliseconds since the Unix epoch.- Returns:
- createdAt
-
setCreatedAt
-
description
-
getDescription
User-defined text attached to the annotation.- Returns:
- description
-
setDescription
-
endTime
-
getEndTime
End time of the annotation in milliseconds since the Unix epoch. Null forpointInTimeannotations.- Returns:
- endTime
-
setEndTime
-
modifiedAt
-
getModifiedAt
Last modification time of the annotation in milliseconds since the Unix epoch.- Returns:
- modifiedAt
-
setModifiedAt
-
pageId
-
getPageId
ID of the page the annotation belongs to, prefixed with the page type and joined by a colon (for example,dashboard:abc-def-xyzornotebook:1234567890).- Returns:
- pageId
-
setPageId
-
startTime
-
getStartTime
Start time of the annotation in milliseconds since the Unix epoch.- Returns:
- startTime
-
setStartTime
-
type
-
getType
Kind of annotation.pointInTimeannotations mark a single moment in time, whiletimeRegionannotations span a window of time and require anend_time.- Returns:
- type
-
setType
-
widgetIds
-
addWidgetIdsItem
-
getWidgetIds
IDs of widgets the annotation is associated with. When empty or omitted, the annotation applies to the whole page.- Returns:
- widgetIds
-
setWidgetIds
-
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:
- AnnotationAttributes
-
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 AnnotationAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-