younifyd
Menu

Stats (GET /_plugins/_neural/{node_id}/stats/{stat})

Stats

GET/_plugins/_neural/{node_id}/stats/{stat}

Use it in a workflow

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

Request

Path parameters

node_idstringrequired

A comma-separated list of node IDs or names to limit the returned information; leave empty to get information from all nodes.

statoneOfrequired

A comma-separated list of stats to retrieve; use empty string to retrieve all stats.

Query parameters

flat_stat_pathsboolean

Whether to return stats in the flat form, which can improve readability, especially for heavily nested stats. For example, the flat form of `"processors": { "ingest": { "text_embedding_executions": 20181212 } }` is `"processors.ingest.text_embedding_executions": "20181212"`.

Default false

include_all_nodesboolean

When `true` includes aggregated statistics across all nodes in the `all_nodes` category. When `false`, excludes the `all_nodes` category from the response.

Default true

include_individual_nodesboolean

When `true` includes statistics for individual nodes in the `nodes` category. When `false`, excludes the `nodes` category from the response.

Default true

include_infoboolean

When `true` includes cluster-wide information in the `info` category. When `false`, excludes the `info` category from the response.

Default true

include_metadataboolean

Whether to return stat metadata instead of the raw stat value, includes additional information about the stat. These can include things like type hints, time since last stats being recorded, or recent rolling interval values

Default false

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 oneOf. Read it in later steps with {{statsGetPluginsNeuralNodeIdStatsStat.response.data.<field>}}.

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