Class WidgetMarker

java.lang.Object
com.datadog.api.client.v1.model.WidgetMarker

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WidgetMarker extends Object
Markers allow you to add visual conditional formatting for your graphs.
  • Field Details

  • Constructor Details

    • WidgetMarker

      public WidgetMarker()
    • WidgetMarker

      public WidgetMarker(String value)
  • Method Details

    • displayType

      public WidgetMarker displayType(String displayType)
    • getDisplayType

      @Nullable public String getDisplayType()
      Combination of: - A severity error, warning, ok, or info - A line type: dashed, solid, or bold In this case of a Distribution widget, this can be set to be percentile.
      Returns:
      displayType
    • setDisplayType

      public void setDisplayType(String displayType)
    • label

      public WidgetMarker label(String label)
    • getLabel

      @Nullable public String getLabel()
      Label to display over the marker.
      Returns:
      label
    • setLabel

      public void setLabel(String label)
    • time

      public WidgetMarker time(String time)
    • getTime

      @Nullable public String getTime()
      Timestamp for the widget.
      Returns:
      time
    • setTime

      public void setTime(String time)
    • value

      public WidgetMarker value(String value)
    • getValue

      public String getValue()
      Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10. For Distribution widgets with display_type set to percentile, this should be a numeric percentile value (for example, "90" for P90).
      Returns:
      value
    • setValue

      public void setValue(String value)
    • putAdditionalProperty

      public WidgetMarker 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:
      WidgetMarker
    • 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 WidgetMarker 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