v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Logging

Recalculate log costs

Starts an asynchronous background job that recalculates log costs in batches. The returned payload is a job status object that can be polled via the status endpoint.

post/api/logs/recalculate-cost

Request body

limitinteger

Maximum number of logs to process (default 200, max 1000)

Response

Cost recalculation job accepted

idstring

Background job ID

statusstring

Current job status

totalinteger

Total matching logs queued for recalculation

processedinteger

Logs processed so far

updatedinteger

Logs updated with new costs

skippedinteger

Logs skipped during processing

messagestring

Optional progress message

last_errorstring

Last error encountered by the job

started_atstring date-time

Job start time

updated_atstring date-time

Last status update time