Monitoring
- class elasticsearch.client.MonitoringClient
To use this client, access
client.monitoringfrom anElasticsearchclient. For example:from elasticsearch import Elasticsearch # Create the client instance client = Elasticsearch(...) # Use the monitoring client client.monitoring.<method>(...)
- bulk(*, interval, operations=None, body=None, system_api_version, system_id, error_trace=None, filter_path=None, human=None, pretty=None)
Send monitoring data. This API is used by the monitoring features to send monitoring data.
https://www.elastic.co/docs/api/doc/elasticsearch
- Parameters:
interval (str | Literal[-1] | ~typing.Literal[0]) – Collection interval (e.g., ’10s’ or ‘10000ms’) of the payload
operations (Sequence[Mapping[str, Any]] | None)
system_api_version (str)
system_id (str) – Identifier of the monitored system
body (Sequence[Mapping[str, Any]] | None)
error_trace (bool | None)
filter_path (str | Sequence[str] | None)
human (bool | None)
pretty (bool | None)
- Return type:
ObjectApiResponse[Any]