Durable Functions

Get durable approval statistics

Changed on

Counts the project's approvals by outcome over a time window, overall, per workflow, and per day. The window defaults to the last 30 days and can cover up to a year. An approval is counted on the day it was requested.

Project access tokens can read statistics, including read-only ones.

get/projects/{id}/durable-approvals/stats

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

Query parameters

function, string

Only approvals requested by this durable function, given by id or by name. A name also matches approvals from a deleted function of that name.

from, string date-time

Start of the window. Defaults to 30 days before to.

to, string date-time

End of the window. Defaults to now.

Response

Successful response

DurableApprovalStats required
from, string date-time required
to, string date-time required
counts, DurableApprovalCounts required

Approvals by status. requested is every approval, whatever its status.

approval_rate, number double nullable required

approved / (approved + denied), from 0 to 1. Null when nothing in the window was decided.

median_seconds_to_decision, number double nullable required

Median time from request to decision. Null when nothing was decided.

p90_seconds_to_decision, number double nullable required

90th percentile time from request to decision. Null when nothing was decided.

functions, DurableApprovalFunctionCounts[] required

The ten workflows that requested the most approvals, most first. The rest are summed in other_functions.

other_functions, DurableApprovalCounts required

Approvals by status. requested is every approval, whatever its status.

daily, DurableApprovalDailyCounts[] required

One entry per UTC day in the window that has approvals, oldest first. Days with none are omitted.

Changes