Retrieves a report about a historic batch operations relevant to history cleanup (see History cleanup) so that you can tune the history time to live.These reports include the count of the finished batches, cleanable batches and type of the batch.The size of the result set can be retrieved by using the Get Cleanable Batch Report Count method.

Please note: The history time to live for batch operations does not support Multi-Tenancy.The report will return an information for all batch operations (for all tenants) if you have permissions to see the history.

Method

GET /history/batch/cleanable-batch-report

Parameters

Query Parameters

Name Description
sortBy Sort the results by a given criterion. Valid value is finished. Must be used in conjunction with the sortOrder parameter.
sortOrder Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter.
firstResult Pagination of results. Specifies the index of the first result to return.
maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.

Result

A JSON array containing finished batches information relevant to history cleanup. Each report result has the following properties:

Name Value Description
batchType String The type of the batch operation.
historyTimeToLive Number The history time to live of the batch operation.
finishedBatchCount Number The count of the finished batch operations.
cleanableBatchCount Number The count of the cleanable historic batch operations, referring to history time to live.

Response Codes

Code Media type Description
200 application/json Request successful.
500 application/json See the Introduction for the error response format.

Examples

Request

GET /history/batch/cleanable-batch-report

Response

  1. [
  2. {
  3. "batchType":"instance-modification",
  4. "historyTimeToLive":5,
  5. "finishedBatchCount":100,
  6. "cleanableBatchCount":53
  7. },
  8. {
  9. "batchType":"instance-deletion",
  10. "historyTimeToLive":5,
  11. "finishedBatchCount":1000,
  12. "cleanableBatchCount":13
  13. }
  14. ]

原文: https://docs.camunda.org/manual/7.9/reference/rest/history/batch/get-cleanable-batch-report/