a _b@s(ddlmZmZmZGdddeZdS))NamespacedClient _make_path query_paramsc @seZdZeddddZedddddZedd d d d d ddd dddZedddddddddZeddddZdS) NodesClienttimeoutNcs$|jjdtd|d|||dIdHS)as Reloads secure settings. :arg body: An object containing the password for the opensearch keystore :arg node_id: A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes. :arg timeout: Explicit operation timeout POST_nodesreload_secure_settings)paramsheadersbodyN transportperform_requestr)selfr node_idr r rG/tmp/pip-target-4jja1joz/lib/python/opensearchpy/_async/client/nodes.pyr s z"NodesClient.reload_secure_settingsZ flat_settingscs"|jjdtd||||dIdHS)a Returns information about nodes in the cluster. :arg node_id: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes :arg metric: A comma-separated list of metrics you wish returned. Leave empty to return all. Valid choices: settings, os, process, jvm, thread_pool, transport, http, plugins, ingest :arg flat_settings: Return settings in flat format (default: false) :arg timeout: Explicit operation timeout GETrr r Nr rrmetricr r rrrinfo6szNodesClient.infoZcompletion_fieldsZfielddata_fieldsfieldsgroupsZinclude_segment_file_sizesZinclude_unloaded_segmentsleveltypescs&|jjdtd|d||||dIdHS)a* Returns statistical information about nodes in the cluster. :arg node_id: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes :arg metric: Limit the information returned to the specified metrics Valid choices: _all, breaker, fs, http, indices, jvm, os, process, thread_pool, transport, discovery, indexing_pressure :arg index_metric: Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. Valid choices: _all, completion, docs, fielddata, query_cache, flush, get, indexing, merge, request_cache, refresh, search, segments, store, warmer, suggest :arg completion_fields: A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) :arg fielddata_fields: A comma-separated list of fields for `fielddata` index metric (supports wildcards) :arg fields: A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) :arg groups: A comma-separated list of search groups for `search` index metric :arg include_segment_file_sizes: Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) :arg include_unloaded_segments: If set to true segment stats will include stats for segments that are not currently loaded into memory :arg level: Return indices stats aggregated at index, node or shard level Valid choices: indices, node, shards Default: node :arg timeout: Explicit operation timeout :arg types: A comma-separated list of document types for the `indexing` index metric rrstatsrNr )rrrZ index_metricr r rrrrKs 2zNodesClient.statsdoc_typeZignore_idle_threadsintervalZ snapshotsthreadscs8d|vr|d|d<|jjdtd|d||dIdHS)a Returns information about hot threads on each node in the cluster. :arg node_id: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes :arg doc_type: The type to sample (default: cpu) Valid choices: cpu, wait, block :arg ignore_idle_threads: Don't show threads that are in known- idle places, such as waiting on a socket select or pulling from an empty task queue (default: true) :arg interval: The interval for the second sampling of threads :arg snapshots: Number of samples of thread stacktrace (default: 10) :arg threads: Specify the number of threads to provide information for (default: 3) :arg timeout: Explicit operation timeout rtyperr hot_threadsrN)poprrr)rrr r rrrr"s zNodesClient.hot_threadscs$|jjdtd|d|||dIdHS)a Returns low-level information about REST actions usage on nodes. :arg node_id: A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes :arg metric: Limit the information returned to the specified metrics Valid choices: _all, rest_actions :arg timeout: Explicit operation timeout rrusagerNr rrrrr$s  zNodesClient.usage)NNNN)NNNN)NNNNN)NNN)NNNN) __name__ __module__ __qualname__rr rrr"r$rrrrrs0   .  rN)utilsrrrrrrrrs