Path parameters
- job_id
string Required Identifier for the anomaly detection job.
Query parameters
- desc
boolean If true, the results are sorted in descending order.
- end
string | number Returns records with timestamps earlier than this time. The default value means results are not limited to specific timestamps.
- exclude_interim
boolean If
true
, the output excludes interim results. - from
number Skips the specified number of records.
- record_score
number Returns records with anomaly scores greater or equal than this value.
- size
number Specifies the maximum number of records to obtain.
- sort
string Specifies the sort field for the requested records.
- start
string | number Returns records with timestamps after this time. The default value means results are not limited to specific timestamps.
Body
- desc
boolean Refer to the description for the
desc
query parameter. - exclude_interim
boolean Refer to the description for the
exclude_interim
query parameter. - page
object - record_score
number Refer to the description for the
record_score
query parameter. - sort
string Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
GET _ml/anomaly_detectors/low_request_rate/results/records
{
"sort": "record_score",
"desc": true,
"start": "1454944100000"
}
resp = client.ml.get_records(
job_id="low_request_rate",
sort="record_score",
desc=True,
start="1454944100000",
)
const response = await client.ml.getRecords({
job_id: "low_request_rate",
sort: "record_score",
desc: true,
start: 1454944100000,
});
response = client.ml.get_records(
job_id: "low_request_rate",
body: {
"sort": "record_score",
"desc": true,
"start": "1454944100000"
}
)
$resp = $client->ml()->getRecords([
"job_id" => "low_request_rate",
"body" => [
"sort" => "record_score",
"desc" => true,
"start" => "1454944100000",
],
]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" -H "Content-Type: application/json" -d '{"sort":"record_score","desc":true,"start":"1454944100000"}' "$ELASTICSEARCH_URL/_ml/anomaly_detectors/low_request_rate/results/records"
{
"sort": "record_score",
"desc": true,
"start": "1454944100000"
}