Update the connector last sync stats
Technical preview
Update the fields related to the last sync of a connector. This action is used for analytics and monitoring.
Path parameters
-
connector_id
string Required The unique identifier of the connector to be updated
Body
Required
last_access_control_sync_scheduled_at
string | number A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
Values are
canceling
,canceled
,completed
,error
,in_progress
,pending
, orsuspended
. -
last_deleted_document_count
number last_incremental_sync_scheduled_at
string | number A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
last_indexed_document_count
number -
last_sync_error
string last_sync_scheduled_at
string | number A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
last_sync_status
string Values are
canceling
,canceled
,completed
,error
,in_progress
,pending
, orsuspended
. last_synced
string | number A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
sync_cursor
object
curl \
--request PUT http://api.example.com/_connector/{connector_id}/_last_sync \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"last_access_control_sync_error":"string","":"string","last_access_control_sync_status":"canceling","last_deleted_document_count":42.0,"last_indexed_document_count":42.0,"last_sync_error":"string","last_sync_status":"canceling","sync_cursor":{}}'
{
"last_access_control_sync_error": "string",
"": "string",
"last_access_control_sync_status": "canceling",
"last_deleted_document_count": 42.0,
"last_indexed_document_count": 42.0,
"last_sync_error": "string",
"last_sync_status": "canceling",
"sync_cursor": {}
}
{
"result": "created"
}