Module org.elasticsearch.xcore
Class DataStreamLifecycleUsageTransportAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<XPackUsageRequest,XPackUsageFeatureResponse>
org.elasticsearch.action.support.local.TransportLocalClusterStateAction<XPackUsageRequest,XPackUsageFeatureResponse>
org.elasticsearch.xpack.core.action.XPackUsageFeatureTransportAction
org.elasticsearch.xpack.core.action.DataStreamLifecycleUsageTransportAction
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.local.TransportLocalClusterStateAction
clusterService, executorFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionDataStreamLifecycleUsageTransportAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, DataStreamGlobalRetentionSettings globalRetentionSettings, ProjectResolver projectResolver) -
Method Summary
Modifier and TypeMethodDescriptioncalculateStats(Collection<DataStream> dataStreams, RolloverConfiguration rolloverConfiguration, DataStreamGlobalRetention globalRetention) Counts the number of data streams that have a lifecycle configured (and enabled), computes the min/max/average summary of the data and effective retention and tracks the usage of global retention.protected voidlocalClusterStateOperation(Task task, XPackUsageRequest request, ClusterState state, ActionListener<XPackUsageFeatureResponse> listener) Methods inherited from class org.elasticsearch.xpack.core.action.XPackUsageFeatureTransportAction
checkBlockMethods inherited from class org.elasticsearch.action.support.local.TransportLocalClusterStateAction
doExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
DataStreamLifecycleUsageTransportAction
@Inject public DataStreamLifecycleUsageTransportAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, DataStreamGlobalRetentionSettings globalRetentionSettings, ProjectResolver projectResolver)
-
-
Method Details
-
localClusterStateOperation
protected void localClusterStateOperation(Task task, XPackUsageRequest request, ClusterState state, ActionListener<XPackUsageFeatureResponse> listener) - Specified by:
localClusterStateOperationin classTransportLocalClusterStateAction<XPackUsageRequest,XPackUsageFeatureResponse>
-
calculateStats
public static DataStreamLifecycleFeatureSetUsage.LifecycleStats calculateStats(Collection<DataStream> dataStreams, RolloverConfiguration rolloverConfiguration, DataStreamGlobalRetention globalRetention) Counts the number of data streams that have a lifecycle configured (and enabled), computes the min/max/average summary of the data and effective retention and tracks the usage of global retention.
-