curl --location --request POST 'https://localhost/api/v1/workflow-executions/metrics' \
--header 'Accept: application/json' \
--header 'X-Multiplai-Authorization;' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'calculation=The type of metric calculation to perform. Options: accumulated_count time_series_count accumulated_average time_series_average' \
--data-urlencode 'column=The column to use for calculations. Required for average calculations (accumulated_average or time_series_average) and cannot be '\''*'\''. Max 255 characters' \
--data-urlencode 'granularity=Time grouping for time series calculations. Required when calculation is time_series_count or time_series_average. Options: daily weekly monthly' \
--data-urlencode 'date_from=Start date for filtering results (valid date format)' \
--data-urlencode 'date_to=End date for filtering results. Must be after or equal to date_from (valid date format)' \
--data-urlencode 'user_id=Filter workflow executions by a single user ID' \
--data-urlencode 'user_ids=Filter workflow executions by multiple user IDs (array of integers)' \
--data-urlencode 'user_multiplai_id=Filter workflow executions by a single Multiplai user ID' \
--data-urlencode 'user_multiplai_ids=Filter workflow executions by multiple Multiplai user IDs (array of integers)' \
--data-urlencode 'workflow_uuid=Filter by a single workflow UUID (valid UUID format)' \
--data-urlencode 'workflow_uuids=Filter by multiple workflow UUIDs (array of UUID strings)' \
--data-urlencode 'search=Search workflow executions by workflow name (max 255 characters)' \
--data-urlencode 'status=Filter by single status. Required if statuses is not provided. Options: running pending cancelled completed failed paused waiting' \
--data-urlencode 'statuses=Filter by multiple statuses. Required if status is not provided. Options: running pending cancelled completed failed paused waiting' \
--data-urlencode 'requires_human_review=Filter to show only executions with pending workflow approvals' \
--data-urlencode 'has_command_room_task=Filter to show only executions from workflows with command room tasks'{
"resource_type": "Agent",
"calculation": "accumulated_count",
"column": "string",
"total": 0,
"data": [
{
"value": 0,
"count": 0
}
],
"granularity": "daily",
"period_from": "2019-08-24T14:15:22.123Z",
"period_to": "2019-08-24T14:15:22.123Z",
"cached_at": "2019-08-24T14:15:22.123Z"
}