Class SLOWidgetDefinition

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SLOWidgetDefinition extends Object
Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on dashboards.
  • Field Details

  • Constructor Details

    • SLOWidgetDefinition

      public SLOWidgetDefinition()
    • SLOWidgetDefinition

      public SLOWidgetDefinition(SLOWidgetDefinitionType type, String viewType)
  • Method Details

    • additionalQueryFilters

      public SLOWidgetDefinition additionalQueryFilters(String additionalQueryFilters)
    • getAdditionalQueryFilters

      @Nullable public String getAdditionalQueryFilters()
      Additional filters applied to the SLO query.
      Returns:
      additionalQueryFilters
    • setAdditionalQueryFilters

      public void setAdditionalQueryFilters(String additionalQueryFilters)
    • description

      public SLOWidgetDefinition description(String description)
    • getDescription

      @Nullable public String getDescription()
      The description of the widget.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • globalTimeTarget

      public SLOWidgetDefinition globalTimeTarget(String globalTimeTarget)
    • getGlobalTimeTarget

      @Nullable public String getGlobalTimeTarget()
      Defined global time target.
      Returns:
      globalTimeTarget
    • setGlobalTimeTarget

      public void setGlobalTimeTarget(String globalTimeTarget)
    • showErrorBudget

      public SLOWidgetDefinition showErrorBudget(Boolean showErrorBudget)
    • getShowErrorBudget

      @Nullable public Boolean getShowErrorBudget()
      Defined error budget.
      Returns:
      showErrorBudget
    • setShowErrorBudget

      public void setShowErrorBudget(Boolean showErrorBudget)
    • sloId

      public SLOWidgetDefinition sloId(String sloId)
    • getSloId

      @Nullable public String getSloId()
      ID of the SLO displayed.
      Returns:
      sloId
    • setSloId

      public void setSloId(String sloId)
    • timeWindows

      public SLOWidgetDefinition timeWindows(List<WidgetTimeWindows> timeWindows)
    • addTimeWindowsItem

      public SLOWidgetDefinition addTimeWindowsItem(WidgetTimeWindows timeWindowsItem)
    • getTimeWindows

      @Nullable public List<WidgetTimeWindows> getTimeWindows()
      Times being monitored.
      Returns:
      timeWindows
    • setTimeWindows

      public void setTimeWindows(List<WidgetTimeWindows> timeWindows)
    • title

      public SLOWidgetDefinition title(String title)
    • getTitle

      @Nullable public String getTitle()
      Title of the widget.
      Returns:
      title
    • setTitle

      public void setTitle(String title)
    • titleAlign

      public SLOWidgetDefinition titleAlign(WidgetTextAlign titleAlign)
    • getTitleAlign

      @Nullable public WidgetTextAlign getTitleAlign()
      How to align the text on the widget.
      Returns:
      titleAlign
    • setTitleAlign

      public void setTitleAlign(WidgetTextAlign titleAlign)
    • titleSize

      public SLOWidgetDefinition titleSize(String titleSize)
    • getTitleSize

      @Nullable public String getTitleSize()
      Size of the title.
      Returns:
      titleSize
    • setTitleSize

      public void setTitleSize(String titleSize)
    • type

    • getType

      public SLOWidgetDefinitionType getType()
      Type of the SLO widget.
      Returns:
      type
    • setType

      public void setType(SLOWidgetDefinitionType type)
    • viewMode

      public SLOWidgetDefinition viewMode(WidgetViewMode viewMode)
    • getViewMode

      @Nullable public WidgetViewMode getViewMode()
      Define how you want the SLO to be displayed.
      Returns:
      viewMode
    • setViewMode

      public void setViewMode(WidgetViewMode viewMode)
    • viewType

      public SLOWidgetDefinition viewType(String viewType)
    • getViewType

      public String getViewType()
      Type of view displayed by the widget.
      Returns:
      viewType
    • setViewType

      public void setViewType(String viewType)
    • putAdditionalProperty

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