younifyd
Menu

Stats (GET /_nodes/stats)

Stats

GET/_nodes/stats

Use it in a workflow

  1. Add a step and choose the OpenSearch connector.
  2. Pick the Stats (GET /_nodes/stats) action (under nodes).
  3. Fill in the fields below, then reference the result from later steps as {{statsGetNodesStats.response.data}}.

Request

Query parameters

completion_fieldsoneOf

A comma-separated list or wildcard expressions of fields to include in field data and suggest statistics.

fielddata_fieldsoneOf

A comma-separated list or wildcard expressions of fields to include in field data statistics.

fieldsoneOf

A comma-separated list or wildcard expressions of fields to include in the statistics.

groupsarray<string>

A comma-separated list of search groups to include in the search statistics.

include_segment_file_sizesboolean

When `true`, reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).

Default false

levelstring

Indicates whether statistics are aggregated at the cluster, index, or shard level.

One ofclusterindicesshards

timeoutstring

The amount of time to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

typesarray<string>

A comma-separated list of document types for the indexing index metric.

prettyboolean

Whether to pretty-format the returned JSON response.

Default false

humanboolean

Whether to return human-readable values for statistics.

Default false

error_traceboolean

Whether to include the stack trace of returned errors.

Default false

sourcestring

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

filter_pathoneOf

A comma-separated list of filters used to filter the response. Use wildcards to match any field or part of a field's name. To exclude fields, use `-`.

Response

Returns 200 with a any. Read it in later steps with {{statsGetNodesStats.response.data.<field>}}.

Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.