Module org.elasticsearch.xcore
Class TimeSeriesFeatureSetUsage
java.lang.Object
org.elasticsearch.xpack.core.XPackFeatureUsage
org.elasticsearch.xpack.core.datastreams.TimeSeriesFeatureSetUsage
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
Telemetry for time series data, only time series data streams (TSDS) are tracked. For each TSDS we track:
- their time series backing indices
- their downsampled backing indices
- the downsampled data streams, backing indices and downsampling rounds split by feature (ILM or DLM)
- for ILM specifically, we count also the phase in which the downsampling round was configured only for
policies used by said data streams
{
"time_series": {
"enabled": true,
"available": true,
"data_stream_count": 10,
"index_count": 100,
"downsampling": {
"index_count_per_interval": {
"5m": 5,
"10m": 10,
"1h": 10000
},
"ilm": {
"downsampled_data_stream_count": 8,
"downsampled_index_count": 50,
"rounds_per_data_stream": {
"min": 1,
"max": 3,
"average": 2
},
"phases_in_use": {
"hot": 10,
"warm": 5,
"cold": 10
}
},
"dlm": {
"downsampled_data_stream_count": 8,
"downsampled_index_count": 50,
"rounds_per_data_stream": {
"min": 1,
"max": 3,
"average": 2
}
}
}
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNested 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
Fields inherited from class org.elasticsearch.xpack.core.XPackFeatureUsage
available, enabled, nameFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTimeSeriesFeatureSetUsage(long timeSeriesDataStreamCount, long timeSeriesIndexCount, TimeSeriesFeatureSetUsage.DownsamplingFeatureStats dlmDownsamplingStats, Map<String, Long> indexCountPerInterval) Helper constructor that only requires DLM stats.TimeSeriesFeatureSetUsage(long timeSeriesDataStreamCount, long timeSeriesIndexCount, TimeSeriesFeatureSetUsage.DownsamplingFeatureStats ilmDownsamplingStats, Map<String, Long> phasesUsedInDownsampling, TimeSeriesFeatureSetUsage.DownsamplingFeatureStats dlmDownsamplingStats, Map<String, Long> indexCountPerInterval) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonginthashCode()protected voidinnerXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) toString()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.core.XPackFeatureUsage
available, enabled, getWriteableName, name, toXContentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Constructor Details
-
TimeSeriesFeatureSetUsage
- Throws:
IOException
-
TimeSeriesFeatureSetUsage
public TimeSeriesFeatureSetUsage(long timeSeriesDataStreamCount, long timeSeriesIndexCount, TimeSeriesFeatureSetUsage.DownsamplingFeatureStats dlmDownsamplingStats, Map<String, Long> indexCountPerInterval) Helper constructor that only requires DLM stats. This can be used when elasticsearch is running in data-stream-lifecycle-only mode. In this mode ILM is not supported, which entails there will be no stats either. -
TimeSeriesFeatureSetUsage
public TimeSeriesFeatureSetUsage(long timeSeriesDataStreamCount, long timeSeriesIndexCount, TimeSeriesFeatureSetUsage.DownsamplingFeatureStats ilmDownsamplingStats, Map<String, Long> phasesUsedInDownsampling, TimeSeriesFeatureSetUsage.DownsamplingFeatureStats dlmDownsamplingStats, Map<String, Long> indexCountPerInterval)
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classXPackFeatureUsage- Throws:
IOException
-
getMinimalSupportedVersion
-
getTimeSeriesDataStreamCount
public long getTimeSeriesDataStreamCount() -
getTimeSeriesIndexCount
public long getTimeSeriesIndexCount() -
getDownsamplingUsage
-
innerXContent
protected void innerXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Overrides:
innerXContentin classXPackFeatureUsage- Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-