Request address
The address is the instance IP and port, such as 10.13.20.15:9200
, which can be obtained in the console.
Request path and method
Path: ${metric_name}/_search
, where ${metric_name}
is the metric name.
Method: GET
Request parameters
You can set the _routing
parameter during data write to improve the query efficiency. For more information, see Common Query Samples. Request content
Response
You can check whether a request is successful based on the error
field. If the response content contains the error
field, the request failed. For the error details, see the error
field description.
Sample code for curl
Was this page helpful?