Class LogsIndex

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

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

  • Constructor Details

    • LogsIndex

      public LogsIndex()
    • LogsIndex

      public LogsIndex(LogsFilter filter, String name)
  • Method Details

    • dailyLimit

      public LogsIndex 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 LogsIndex 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 LogsIndex 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)
    • exclusionFilters

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

      public LogsIndex 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 LogsIndex filter(LogsFilter filter)
    • getFilter

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

      public void setFilter(LogsFilter filter)
    • getIsRateLimited

      @Nullable public Boolean getIsRateLimited()
      A boolean stating if the index is rate limited, meaning more logs than the daily limit have been sent. Rate limit is reset every-day at 2pm UTC.
      Returns:
      isRateLimited
    • name

      public LogsIndex name(String name)
    • getName

      public String getName()
      The name of the index.
      Returns:
      name
    • setName

      public void setName(String name)
    • numFlexLogsRetentionDays

      public LogsIndex 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.
      Returns:
      numFlexLogsRetentionDays
    • setNumFlexLogsRetentionDays

      public void setNumFlexLogsRetentionDays(Long numFlexLogsRetentionDays)
    • numRetentionDays

      public LogsIndex 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.
      Returns:
      numRetentionDays
    • setNumRetentionDays

      public void setNumRetentionDays(Long numRetentionDays)
    • tags

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

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