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 Details

  • Constructor Details

  • Method Details

    • authorId

      public AnnotationAttributes authorId(String authorId)
    • getAuthorId

      public String getAuthorId()
      Identifier of the user who created the annotation.
      Returns:
      authorId
    • setAuthorId

      public void setAuthorId(String authorId)
    • color

      public AnnotationAttributes color(AnnotationColor color)
    • getColor

      public AnnotationColor getColor()
      Color used to render the annotation in the UI.
      Returns:
      color
    • setColor

      public void setColor(AnnotationColor color)
    • createdAt

      public AnnotationAttributes createdAt(Long createdAt)
    • getCreatedAt

      public Long getCreatedAt()
      Creation time of the annotation in milliseconds since the Unix epoch.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(Long createdAt)
    • description

      public AnnotationAttributes description(String description)
    • getDescription

      public String getDescription()
      User-defined text attached to the annotation.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • endTime

      public AnnotationAttributes endTime(Long endTime)
    • getEndTime

      @Nullable public Long getEndTime()
      End time of the annotation in milliseconds since the Unix epoch. Null for pointInTime annotations.
      Returns:
      endTime
    • setEndTime

      public void setEndTime(Long endTime)
    • modifiedAt

      public AnnotationAttributes modifiedAt(Long modifiedAt)
    • getModifiedAt

      public Long getModifiedAt()
      Last modification time of the annotation in milliseconds since the Unix epoch.
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(Long modifiedAt)
    • pageId

      public AnnotationAttributes pageId(String pageId)
    • getPageId

      public String getPageId()
      ID of the page the annotation belongs to, prefixed with the page type and joined by a colon (for example, dashboard:abc-def-xyz or notebook:1234567890).
      Returns:
      pageId
    • setPageId

      public void setPageId(String pageId)
    • startTime

      public AnnotationAttributes startTime(Long startTime)
    • getStartTime

      public Long getStartTime()
      Start time of the annotation in milliseconds since the Unix epoch.
      Returns:
      startTime
    • setStartTime

      public void setStartTime(Long startTime)
    • type

    • getType

      public AnnotationKind getType()
      Kind of annotation. pointInTime annotations mark a single moment in time, while timeRegion annotations span a window of time and require an end_time.
      Returns:
      type
    • setType

      public void setType(AnnotationKind type)
    • widgetIds

      public AnnotationAttributes widgetIds(List<String> widgetIds)
    • addWidgetIdsItem

      public AnnotationAttributes addWidgetIdsItem(String widgetIdsItem)
    • getWidgetIds

      @Nullable public List<String> getWidgetIds()
      IDs of widgets the annotation is associated with. When empty or omitted, the annotation applies to the whole page.
      Returns:
      widgetIds
    • setWidgetIds

      public void setWidgetIds(List<String> widgetIds)
    • putAdditionalProperty

      public AnnotationAttributes putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      AnnotationAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this AnnotationAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object