Class IndicesStatsRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.action.ActionRequest
org.opensearch.action.support.broadcast.BroadcastRequest<IndicesStatsRequest>
org.opensearch.action.admin.indices.stats.IndicesStatsRequest
- All Implemented Interfaces:
IndicesRequest
,IndicesRequest.Replaceable
,org.opensearch.core.common.io.stream.Writeable
,TaskAwareRequest
@PublicApi(since="1.0.0")
public class IndicesStatsRequest
extends BroadcastRequest<IndicesStatsRequest>
A request to get indices level stats. Allow to enable different stats to be returned.
By default, all statistics are enabled.
All the stats to be returned can be cleared using clear()
, at which point, specific
stats can be enabled.
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.opensearch.action.IndicesRequest
IndicesRequest.Replaceable
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.opensearch.action.support.broadcast.BroadcastRequest
indices, shouldCancelOnTimeout
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
Sets all flags to return all stats.clear()
Clears all stats.boolean
completion
(boolean completion) String[]
completionFields
(String... completionDataFields) createTask
(long id, String type, String action, org.opensearch.core.tasks.TaskId parentTaskId, Map<String, String> headers) Returns the task object that should be used to keep track of the processing of the request.boolean
docs()
docs
(boolean docs) boolean
fieldData
(boolean fieldData) String[]
fieldDataFields
(String... fieldDataFields) flags()
Returns the underlying stats flags.flags
(CommonStatsFlags flags) Sets the underlying stats flags.boolean
flush()
flush
(boolean flush) boolean
get()
get
(boolean get) String[]
groups()
Sets specific search group stats to retrieve the stats for.boolean
Determines whether the request should be applied to data streams.boolean
includeSegmentFileSizes
(boolean includeSegmentFileSizes) includeUnloadedSegments
(boolean includeUnloadedSegments) boolean
indexing()
indexing
(boolean indexing) boolean
merge()
merge
(boolean merge) boolean
queryCache
(boolean queryCache) boolean
recovery()
recovery
(boolean recovery) boolean
refresh()
refresh
(boolean refresh) boolean
requestCache
(boolean requestCache) boolean
search()
search
(boolean search) boolean
segments()
segments
(boolean segments) boolean
store()
store
(boolean store) boolean
translog()
translog
(boolean translog) boolean
warmer()
warmer
(boolean warmer) void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.support.broadcast.BroadcastRequest
getShouldCancelOnTimeout, indices, indices, indicesOptions, indicesOptions, setShouldCancelOnTimeout, timeout, timeout, timeout, validate
Methods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTask
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.tasks.TaskAwareRequest
getDescription, setParentTask
-
Constructor Details
-
IndicesStatsRequest
public IndicesStatsRequest() -
IndicesStatsRequest
- Throws:
IOException
-
-
Method Details
-
all
Sets all flags to return all stats. -
clear
Clears all stats. -
flags
Returns the underlying stats flags. -
flags
Sets the underlying stats flags. -
groups
Sets specific search group stats to retrieve the stats for. Mainly affects search when enabled. -
createTask
public Task createTask(long id, String type, String action, org.opensearch.core.tasks.TaskId parentTaskId, Map<String, String> headers) Description copied from interface:TaskAwareRequest
Returns the task object that should be used to keep track of the processing of the request. -
groups
-
docs
-
docs
public boolean docs() -
store
-
store
public boolean store() -
indexing
-
indexing
public boolean indexing() -
get
-
get
public boolean get() -
search
-
search
public boolean search() -
merge
-
merge
public boolean merge() -
refresh
-
refresh
public boolean refresh() -
flush
-
flush
public boolean flush() -
warmer
-
warmer
public boolean warmer() -
queryCache
-
queryCache
public boolean queryCache() -
fieldData
-
fieldData
public boolean fieldData() -
segments
-
segments
public boolean segments() -
fieldDataFields
-
fieldDataFields
-
completion
-
completion
public boolean completion() -
completionFields
-
completionFields
-
translog
-
translog
public boolean translog() -
requestCache
-
requestCache
public boolean requestCache() -
recovery
-
recovery
public boolean recovery() -
includeSegmentFileSizes
public boolean includeSegmentFileSizes() -
includeSegmentFileSizes
-
includeUnloadedSegments
-
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Overrides:
writeTo
in classBroadcastRequest<IndicesStatsRequest>
- Throws:
IOException
-
includeDataStreams
public boolean includeDataStreams()Description copied from interface:IndicesRequest
Determines whether the request should be applied to data streams. Whenfalse
, none of the names or wildcard expressions inIndicesRequest.indices()
should be applied to or expanded to any data streams. All layers involved in the request's fulfillment including security, name resolution, etc., should respect this flag.- Specified by:
includeDataStreams
in interfaceIndicesRequest
- Overrides:
includeDataStreams
in classBroadcastRequest<IndicesStatsRequest>
-