Module org.elasticsearch.xcore
Record Class TimeSeriesFeatureSetUsage.IlmPolicyStats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.datastreams.TimeSeriesFeatureSetUsage.IlmPolicyStats
- Record Components:
downsamplingPhases- the phases used for downsamplingforceMergeExplicitlyEnabledCounter- the policies that have force merge explicitly enabledforceMergeExplicitlyDisabledCounter- the policies that have force merge implicitly enabledforceMergeDefaultCounter- the policies that have not specified force mergedownsampledForceMergeNeededCounter- the policies that could potentially skip the force merge in downsampling
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- Enclosing class:
TimeSeriesFeatureSetUsage
public static record TimeSeriesFeatureSetUsage.IlmPolicyStats(Map<String,Long> downsamplingPhases, long forceMergeExplicitlyEnabledCounter, long forceMergeExplicitlyDisabledCounter, long forceMergeDefaultCounter, long downsampledForceMergeNeededCounter)
extends Record
implements Writeable, org.elasticsearch.xcontent.ToXContentFragment
Calculates statistics specific to the ILM policies in use
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionIlmPolicyStats(Map<String, Long> downsamplingPhases, long forceMergeExplicitlyEnabledCounter, long forceMergeExplicitlyDisabledCounter, long forceMergeDefaultCounter, long downsampledForceMergeNeededCounter) Creates an instance of aIlmPolicyStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedownsampledForceMergeNeededCounterrecord component.Returns the value of thedownsamplingPhasesrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theforceMergeDefaultCounterrecord component.longReturns the value of theforceMergeExplicitlyDisabledCounterrecord component.longReturns the value of theforceMergeExplicitlyEnabledCounterrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
EMPTY
-
-
Constructor Details
-
IlmPolicyStats
public IlmPolicyStats(Map<String, Long> downsamplingPhases, long forceMergeExplicitlyEnabledCounter, long forceMergeExplicitlyDisabledCounter, long forceMergeDefaultCounter, long downsampledForceMergeNeededCounter) Creates an instance of aIlmPolicyStatsrecord class.- Parameters:
downsamplingPhases- the value for thedownsamplingPhasesrecord componentforceMergeExplicitlyEnabledCounter- the value for theforceMergeExplicitlyEnabledCounterrecord componentforceMergeExplicitlyDisabledCounter- the value for theforceMergeExplicitlyDisabledCounterrecord componentforceMergeDefaultCounter- the value for theforceMergeDefaultCounterrecord componentdownsampledForceMergeNeededCounter- the value for thedownsampledForceMergeNeededCounterrecord component
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
downsamplingPhases
Returns the value of thedownsamplingPhasesrecord component.- Returns:
- the value of the
downsamplingPhasesrecord component
-
forceMergeExplicitlyEnabledCounter
public long forceMergeExplicitlyEnabledCounter()Returns the value of theforceMergeExplicitlyEnabledCounterrecord component.- Returns:
- the value of the
forceMergeExplicitlyEnabledCounterrecord component
-
forceMergeExplicitlyDisabledCounter
public long forceMergeExplicitlyDisabledCounter()Returns the value of theforceMergeExplicitlyDisabledCounterrecord component.- Returns:
- the value of the
forceMergeExplicitlyDisabledCounterrecord component
-
forceMergeDefaultCounter
public long forceMergeDefaultCounter()Returns the value of theforceMergeDefaultCounterrecord component.- Returns:
- the value of the
forceMergeDefaultCounterrecord component
-
downsampledForceMergeNeededCounter
public long downsampledForceMergeNeededCounter()Returns the value of thedownsampledForceMergeNeededCounterrecord component.- Returns:
- the value of the
downsampledForceMergeNeededCounterrecord component
-