Skip to main content
GET
Analytics Trends
string
Start of the window, RFC 3339 (e.g., 2026-03-01T00:00:00Z). An unparseable value is ignored.
string
End of the window, RFC 3339.
string
default:"day"
Group results by day or week. Any other value groups by day.
Minimum role: viewer. Covers every namespace. Issues are bucketed by creationTimestamp; buckets are sorted by date and only buckets with at least one Issue are returned. bySeverity only lists severities that occurred. With groupBy=week, the bucket date is January 1 of the ISO year plus (ISO week − 1) × 7 days, an approximation that does not always fall on a Monday.

Authorizations

X-API-Key
string
header
required

API key sent in the X-API-Key header. Keys are read from the Secret chatcli-operator-secrets, key api-keys (fallback: ConfigMap chatcli-operator-config, key api-keys) in the operator namespace, as a YAML list of {key, role, name, description} (name is the identity recorded on approval decisions); the operator chart creates it only with apiKeys.create: true. Roles: viewer < operator < admin — any other role string is denied everywhere. Changes are picked up within about 30 seconds; deleting both the Secret and the ConfigMap revokes every key. With no keys configured every /api/ call returns 401, unless CHATCLI_OPERATOR_DEV_MODE=true, which grants admin without a key (development only).

Query Parameters

from
string<date-time>

Start of the time range (RFC3339). Unparseable values are ignored.

Example:

"2026-03-01T00:00:00Z"

to
string<date-time>

End of the time range (RFC3339). Unparseable values are ignored.

Example:

"2026-03-19T23:59:59Z"

groupBy
enum<string>
default:day

day (default) or week.

Available options:
day,
week

Response

Incident trends

apiVersion
string
Example:

"v1"

kind
string
Example:

"IssueTrends"

metadata
object
items
object[]