Class HourlyUsageAttributionBody

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class HourlyUsageAttributionBody extends Object
The usage for one set of tags for one hour.
  • Field Details

  • Constructor Details

    • HourlyUsageAttributionBody

      public HourlyUsageAttributionBody()
  • Method Details

    • hour

    • getHour

      @Nullable public OffsetDateTime getHour()
      The hour for the usage.
      Returns:
      hour
    • setHour

      public void setHour(OffsetDateTime hour)
    • orgName

      public HourlyUsageAttributionBody orgName(String orgName)
    • getOrgName

      @Nullable public String getOrgName()
      The name of the organization.
      Returns:
      orgName
    • setOrgName

      public void setOrgName(String orgName)
    • publicId

      public HourlyUsageAttributionBody publicId(String publicId)
    • getPublicId

      @Nullable public String getPublicId()
      The organization public ID.
      Returns:
      publicId
    • setPublicId

      public void setPublicId(String publicId)
    • region

      public HourlyUsageAttributionBody region(String region)
    • getRegion

      @Nullable public String getRegion()
      The region of the Datadog instance that the organization belongs to.
      Returns:
      region
    • setRegion

      public void setRegion(String region)
    • tagConfigSource

      public HourlyUsageAttributionBody tagConfigSource(String tagConfigSource)
    • getTagConfigSource

      @Nullable public String getTagConfigSource()
      The source of the usage attribution tag configuration and the selected tags in the format of <source_org_name>:::<selected tag 1>///<selected tag 2>///<selected tag 3> .
      Returns:
      tagConfigSource
    • setTagConfigSource

      public void setTagConfigSource(String tagConfigSource)
    • tags

    • putTagsItem

      public HourlyUsageAttributionBody putTagsItem(String key, List<String> tagsItem)
    • getTags

      @Nullable public Map<String,List<String>> getTags()
      Tag keys and values.

      A null value here means that the requested tag breakdown cannot be applied because it does not match the tags configured for usage attribution. In this scenario the API returns the total usage, not broken down by tags.

      Returns:
      tags
    • getTags_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Map<String,List<String>>> getTags_JsonNullable()
    • setTags_JsonNullable

      public void setTags_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Map<String,List<String>>> tags)
    • setTags

      public void setTags(Map<String,List<String>> tags)
    • totalUsageSum

      public HourlyUsageAttributionBody totalUsageSum(Double totalUsageSum)
    • getTotalUsageSum

      @Nullable public Double getTotalUsageSum()
      Total product usage for the given tags within the hour.
      Returns:
      totalUsageSum
    • setTotalUsageSum

      public void setTotalUsageSum(Double totalUsageSum)
    • updatedAt

      public HourlyUsageAttributionBody updatedAt(String updatedAt)
    • getUpdatedAt

      @Nullable public String getUpdatedAt()
      Shows the most recent hour in the current month for all organizations where usages are calculated.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(String updatedAt)
    • usageType

    • getUsageType

      @Nullable public HourlyUsageAttributionUsageType getUsageType()
      Supported products for hourly usage attribution requests. Usage types are in the format <usage_type>_usage. To obtain the complete list of valid usage types, make a request to the Get usage attribution types API.
      Returns:
      usageType
    • setUsageType

      public void setUsageType(HourlyUsageAttributionUsageType usageType)
    • putAdditionalProperty

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