Statistics
Counts and trends behind the console’s charts.
GET /v1/stats/agents
Section titled “GET /v1/stats/agents”The 20 busiest agents. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/approval-times
Section titled “GET /v1/stats/approval-times”Time to approval: median and 90th percentile, approved and denied only. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
bucket |
query | string | No | Hourly buckets cover at most 14 days. One of hour, day. Default: day. |
tz |
query | string | No | IANA Area/Location time zone of the buckets, or UTC. Default: UTC. At most, in characters: 64. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/approvals
Section titled “GET /v1/stats/approvals”Approvals ended, by bucket and outcome. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
bucket |
query | string | No | Hourly buckets cover at most 14 days. One of hour, day. Default: day. |
tz |
query | string | No | IANA Area/Location time zone of the buckets, or UTC. Default: UTC. At most, in characters: 64. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/executions
Section titled “GET /v1/stats/executions”Executions by bucket and current status. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
bucket |
query | string | No | Hourly buckets cover at most 14 days. One of hour, day. Default: day. |
tz |
query | string | No | IANA Area/Location time zone of the buckets, or UTC. Default: UTC. At most, in characters: 64. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/governed
Section titled “GET /v1/stats/governed”Governed executions of every whole UTC month the period touches. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/intents
Section titled “GET /v1/stats/intents”The 20 busiest intents. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/refusals
Section titled “GET /v1/stats/refusals”Refusals by bucket, code and stage. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
bucket |
query | string | No | Hourly buckets cover at most 14 days. One of hour, day. Default: day. |
tz |
query | string | No | IANA Area/Location time zone of the buckets, or UTC. Default: UTC. At most, in characters: 64. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/rules
Section titled “GET /v1/stats/rules”The 20 rules that deny most; names masked without read_payloads. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/shares
Section titled “GET /v1/stats/shares”Rolled-back and intervention share of accepted executions. sefra_viewer and above.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Start of the period, inclusive. Defaults to 7 days before to; at most 90 days. Format: date-time. |
to |
query | string | No | End of the period, exclusive. Defaults to now. Format: date-time. |
format |
query | string | No | One of json, csv. Default: json. |
bucket |
query | string | No | Hourly buckets cover at most 14 days. One of hour, day. Default: day. |
tz |
query | string | No | IANA Area/Location time zone of the buckets, or UTC. Default: UTC. At most, in characters: 64. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The series, as JSON or, with format=csv, as an attachment of the same columns and rows (RFC 4180 quoting, LF line ends). |
StatsSeries |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
A problem. | Problem (application/problem+json) |
GET /v1/stats/summary
Section titled “GET /v1/stats/summary”The overview’s counts. sefra_viewer and above.
Computed in PostgreSQL. to defaults to now, from to 24 hours before it; at most 90 days. executions.by_status counts executions received in [from, to); governed the executions accepted in the UTC month of to; attention holds counts as of now, independent of the range, each equal to one filtered list.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | string | No | Format: date-time. |
to |
query | string | No | Format: date-time. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The counts. | StatsSummary |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |