Package codes.grow.packages.datadoglogs
Record Class DatadogLogIndex
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogLogIndex
- Record Components:
name- index namequery- index filter queryretentionDays- retention in daysdailyLimit- daily event limitrateLimited- whether the index is currently rate limited
public record DatadogLogIndex(String name, Optional<String> query, OptionalLong retentionDays, OptionalLong dailyLimit, Optional<Boolean> rateLimited)
extends Record
One Datadog log index (
GET /api/v1/logs/config/indexes).-
Constructor Summary
ConstructorsConstructorDescriptionDatadogLogIndex(String name, Optional<String> query, OptionalLong retentionDays, OptionalLong dailyLimit, Optional<Boolean> rateLimited) Creates the record; null optionals become empty. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedailyLimitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.query()Returns the value of thequeryrecord component.Returns the value of therateLimitedrecord component.Returns the value of theretentionDaysrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatadogLogIndex
public DatadogLogIndex(String name, Optional<String> query, OptionalLong retentionDays, OptionalLong dailyLimit, Optional<Boolean> rateLimited) Creates the record; null optionals become empty.- Parameters:
name- index namequery- filter queryretentionDays- retentiondailyLimit- daily limitrateLimited- rate limited flag
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
retentionDays
Returns the value of theretentionDaysrecord component.- Returns:
- the value of the
retentionDaysrecord component
-
dailyLimit
Returns the value of thedailyLimitrecord component.- Returns:
- the value of the
dailyLimitrecord component
-
rateLimited
Returns the value of therateLimitedrecord component.- Returns:
- the value of the
rateLimitedrecord component
-