Class LogsIndexUpdateRequest

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsIndexUpdateRequest extends Object
Object for updating a Datadog Log index.
  • Field Details

  • Constructor Details

    • LogsIndexUpdateRequest

      public LogsIndexUpdateRequest()
    • LogsIndexUpdateRequest

      public LogsIndexUpdateRequest(LogsFilter filter)
  • Method Details

    • dailyLimit

      public LogsIndexUpdateRequest dailyLimit(Long dailyLimit)
    • getDailyLimit

      @Nullable public Long getDailyLimit()
      The number of log events you can send in this index per day before you are rate-limited.
      Returns:
      dailyLimit
    • setDailyLimit

      public void setDailyLimit(Long dailyLimit)
    • dailyLimitReset

      public LogsIndexUpdateRequest dailyLimitReset(LogsDailyLimitReset dailyLimitReset)
    • getDailyLimitReset

      @Nullable public LogsDailyLimitReset getDailyLimitReset()
      Object containing options to override the default daily limit reset time.
      Returns:
      dailyLimitReset
    • setDailyLimitReset

      public void setDailyLimitReset(LogsDailyLimitReset dailyLimitReset)
    • dailyLimitWarningThresholdPercentage

      public LogsIndexUpdateRequest dailyLimitWarningThresholdPercentage(Double dailyLimitWarningThresholdPercentage)
    • getDailyLimitWarningThresholdPercentage

      @Nullable public Double getDailyLimitWarningThresholdPercentage()
      A percentage threshold of the daily quota at which a Datadog warning event is generated. minimum: 50 maximum: 99.99
      Returns:
      dailyLimitWarningThresholdPercentage
    • setDailyLimitWarningThresholdPercentage

      public void setDailyLimitWarningThresholdPercentage(Double dailyLimitWarningThresholdPercentage)
    • disableDailyLimit

      public LogsIndexUpdateRequest disableDailyLimit(Boolean disableDailyLimit)
    • getDisableDailyLimit

      @Nullable public Boolean getDisableDailyLimit()
      If true, sets the daily_limit value to null and the index is not limited on a daily basis (any specified daily_limit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.
      Returns:
      disableDailyLimit
    • setDisableDailyLimit

      public void setDisableDailyLimit(Boolean disableDailyLimit)
    • exclusionFilters

      public LogsIndexUpdateRequest exclusionFilters(List<LogsExclusion> exclusionFilters)
    • addExclusionFiltersItem

      public LogsIndexUpdateRequest addExclusionFiltersItem(LogsExclusion exclusionFiltersItem)
    • getExclusionFilters

      @Nullable public List<LogsExclusion> getExclusionFilters()
      An array of exclusion objects. The logs are tested against the query of each filter, following the order of the array. Only the first matching active exclusion matters, others (if any) are ignored.
      Returns:
      exclusionFilters
    • setExclusionFilters

      public void setExclusionFilters(List<LogsExclusion> exclusionFilters)
    • filter

      public LogsIndexUpdateRequest filter(LogsFilter filter)
    • getFilter

      public LogsFilter getFilter()
      Filter for logs.
      Returns:
      filter
    • setFilter

      public void setFilter(LogsFilter filter)
    • numFlexLogsRetentionDays

      public LogsIndexUpdateRequest numFlexLogsRetentionDays(Long numFlexLogsRetentionDays)
    • getNumFlexLogsRetentionDays

      @Nullable public Long getNumFlexLogsRetentionDays()
      The total number of days logs are stored in Standard and Flex Tier before being deleted from the index. If Standard Tier is enabled on this index, logs are first retained in Standard Tier for the number of days specified through num_retention_days, and then stored in Flex Tier until the number of days specified in num_flex_logs_retention_days is reached. The available values depend on retention plans specified in your organization's contract/subscriptions.

      Note: Changing this value affects all logs already in this index. It may also affect billing.

      Returns:
      numFlexLogsRetentionDays
    • setNumFlexLogsRetentionDays

      public void setNumFlexLogsRetentionDays(Long numFlexLogsRetentionDays)
    • numRetentionDays

      public LogsIndexUpdateRequest numRetentionDays(Long numRetentionDays)
    • getNumRetentionDays

      @Nullable public Long getNumRetentionDays()
      The number of days logs are stored in Standard Tier before aging into the Flex Tier or being deleted from the index. The available values depend on retention plans specified in your organization's contract/subscriptions.

      Note: Changing this value affects all logs already in this index. It may also affect billing.

      Returns:
      numRetentionDays
    • setNumRetentionDays

      public void setNumRetentionDays(Long numRetentionDays)
    • tags

      public LogsIndexUpdateRequest tags(List<String> tags)
    • addTagsItem

      public LogsIndexUpdateRequest addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      A list of tags associated with the index. Tags must be in key:value format.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • putAdditionalProperty

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