Class TopQueriesRequest
java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.transport.TransportRequest
org.opensearch.action.ActionRequest
org.opensearch.action.support.nodes.BaseNodesRequest<TopQueriesRequest>
org.opensearch.plugin.insights.rules.action.top_queries.TopQueriesRequest
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,TaskAwareRequest
A request to get cluster/node level top queries information.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.transport.TransportRequest
TransportRequest.EmptyNested 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> -
Constructor Summary
ConstructorsConstructorDescriptionTopQueriesRequest(org.opensearch.core.common.io.stream.StreamInput in) Constructor for TopQueriesRequestTopQueriesRequest(MetricType metricType, String... nodesIds) Get top queries from nodes based on the nodes ids specified. -
Method Summary
Modifier and TypeMethodDescriptionGet the type of requested metricsvoidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class org.opensearch.action.support.nodes.BaseNodesRequest
concreteNodes, nodesIds, nodesIds, setConcreteNodes, timeout, timeout, timeout, validateMethods inherited from class org.opensearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.opensearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
TopQueriesRequest
Constructor for TopQueriesRequest- Parameters:
in- AStreamInputobject.- Throws:
IOException- if the stream cannot be deserialized.
-
TopQueriesRequest
Get top queries from nodes based on the nodes ids specified. If none are passed, cluster level top queries will be returned.- Parameters:
metricType-MetricTypenodesIds- the nodeIds specified in the request
-
-
Method Details
-
getMetricType
Get the type of requested metrics -
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Overrides:
writeToin classBaseNodesRequest<TopQueriesRequest>- Throws:
IOException
-