Requests the number of batch statistics that fulfill the query criteria. Takesthe same filtering parameters as the Get Batch Statistics method.
Method
GET /batch/statistics/count
Parameters
Query Parameters
Name | Description |
---|---|
batchId | Filter by batch id. |
type | Filter by batch type. See the User Guide for more information about batch types. |
tenantIdIn | Filter by a comma-separated list of tenant ids. A batch matches if it has one of the given tenant ids. |
withoutTenantId | Only include batches which belong to no tenant. Value can effectively only be true , as false is the default behavior. |
suspended | A Boolean value which indicates whether only active or suspended batches should be included. When the value is set to true , only suspended batches will be returned and when the value is set to false , only active batches will be returned. |
Result
A JSON object that contains the count as the only property.
Name | Value | Description |
---|---|---|
count | Number | The number of matching batches. |
Response codes
Code | Media type | Description |
---|---|---|
200 | application/json | Request successful. |
400 | application/json | Returned if some of the query parameters are invalid, for example if a sortOrder parameter is supplied, but no sortBy . See the Introduction for the error response format. |
Example
Request
GET /batch/statistics/count?type=aBatchType
Response
Status 200.
{
"count": 1
}
原文: https://docs.camunda.org/manual/7.9/reference/rest/batch/get-statistics-query-count/