Get transform stats
Added in 7.5.0
Get usage information for transforms.
Path parameters
-
transform_id
string | array[string] Required Identifier for the transform. It can be a transform identifier or a wildcard expression. You can get information for all transforms by using
_all
, by specifying*
as the<transform_id>
, or by omitting the<transform_id>
.
Query parameters
-
allow_no_match
boolean Specifies what to do when the request:
- Contains wildcard expressions and there are no transforms that match.
- Contains the _all string or no identifiers and there are no matches.
- Contains wildcard expressions and there are only partial matches.
If this parameter is false, the request returns a 404 status code when there are no matches or only partial matches.
-
from
number Skips the specified number of transforms.
-
size
number Specifies the maximum number of transforms to obtain.
-
timeout
string Controls the time to wait for the stats
GET
/_transform/{transform_id}/_stats
curl \
--request GET 'http://api.example.com/_transform/{transform_id}/_stats' \
--header "Authorization: $API_KEY"
Response examples (200)
A successful response that contains usage information for a transform.
{
"count": 1,
"transforms": [
{
"id": "ecommerce-customer-transform",
"state": "started",
"node": {
"id": "cpTIGMsVQ8Gqwqlxxxxxxx",
"name": "my.home",
"ephemeral_id": "5-L21nFsQxxxxxxxxxx-xx",
"transport_address": "127.0.0.1:9300",
"attributes": {}
},
"stats": {
"pages_processed": 78,
"documents_processed": 6027,
"documents_indexed": 68,
"documents_deleted": 22,
"delete_time_in_ms": 214,
"trigger_count": 168,
"index_time_in_ms": 412,
"index_total": 20,
"index_failures": 0,
"search_time_in_ms": 353,
"search_total": 78,
"search_failures": 0,
"processing_time_in_ms": 8,
"processing_total": 78,
"exponential_avg_checkpoint_duration_ms": 97.30637923893185,
"exponential_avg_documents_indexed": 2.2064915040974062,
"exponential_avg_documents_processed": 179.89419945785045
},
"checkpointing": {
"last": {
"checkpoint": 20,
"timestamp_millis": 1585344558220,
"time_upper_bound_millis": 1585344498220
},
"changes_last_detected_at": 1585344558219
},
"health": {
"status": "green"
}
}
]
}