full diff

pub.chive.admin.getEndpointMetrics

From
bafyreicjfoqgkh2d4wztwqk3uvgralu5cs25ps4iosuiz2qhia3z5pbdnu indexed 2026-06-18 13:14 UTC View this version
To
bafyreicjfoqgkh2d4wztwqk3uvgralu5cs25ps4iosuiz2qhia3z5pbdnu indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "endpointMetric": {
55 "description": "HTTP endpoint performance metric",
66 "properties": {
77 "errorCount": {
88 "description": "Total error responses",
99 "type": "integer"
1010 },
1111 "errorRate": {
1212 "description": "Error rate in basis points (100 = 1%)",
1313 "type": "integer"
1414 },
1515 "method": {
1616 "description": "HTTP method (GET, POST, etc.)",
1717 "type": "string"
1818 },
1919 "p50": {
2020 "description": "50th percentile latency in microseconds",
2121 "type": "integer"
2222 },
2323 "p95": {
2424 "description": "95th percentile latency in microseconds",
2525 "type": "integer"
2626 },
2727 "p99": {
2828 "description": "99th percentile latency in microseconds",
2929 "type": "integer"
3030 },
3131 "path": {
3232 "description": "Endpoint path",
3333 "type": "string"
3434 },
3535 "requestCount": {
3636 "description": "Total requests",
3737 "type": "integer"
3838 }
3939 },
4040 "required": [
4141 "method",
4242 "path",
4343 "requestCount",
4444 "errorCount"
4545 ],
4646 "type": "object"
4747 },
4848 "main": {
4949 "description": "Get per-endpoint HTTP request metrics from Prometheus",
5050 "errors": [
5151 {
5252 "name": "AuthenticationRequired"
5353 },
5454 {
5555 "name": "AdminRequired"
5656 }
5757 ],
5858 "output": {
5959 "encoding": "application/json",
6060 "schema": {
6161 "properties": {
6262 "metrics": {
6363 "description": "Endpoint metric entries",
6464 "items": {
6565 "ref": "#endpointMetric",
6666 "type": "ref"
6767 },
6868 "type": "array"
6969 }
7070 },
7171 "required": [
7272 "metrics"
7373 ],
7474 "type": "object"
7575 }
7676 },
7777 "parameters": {
7878 "properties": {},
7979 "type": "params"
8080 },
8181 "type": "query"
8282 }
8383 },
8484 "id": "pub.chive.admin.getEndpointMetrics",
8585 "lexicon": 1,
8686 "revision": 1
8787}