full diff

pub.chive.admin.getNodeMetrics

From
bafyreihfncxjbquq6vgub7zmdujpn6wprrryomvpromupfafmu4ioocyva indexed 2026-06-18 13:14 UTC View this version
To
bafyreihfncxjbquq6vgub7zmdujpn6wprrryomvpromupfafmu4ioocyva 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 "main": {
55 "description": "Get Node.js runtime metrics and process information",
66 "errors": [
77 {
88 "name": "AuthenticationRequired"
99 },
1010 {
1111 "name": "AdminRequired"
1212 }
1313 ],
1414 "output": {
1515 "encoding": "application/json",
1616 "schema": {
1717 "properties": {
1818 "metrics": {
1919 "description": "Node.js and process metric entries",
2020 "items": {
2121 "ref": "#nodeMetric",
2222 "type": "ref"
2323 },
2424 "type": "array"
2525 },
2626 "processInfo": {
2727 "description": "Process runtime information",
2828 "ref": "#processInfo",
2929 "type": "ref"
3030 }
3131 },
3232 "required": [
3333 "metrics",
3434 "processInfo"
3535 ],
3636 "type": "object"
3737 }
3838 },
3939 "parameters": {
4040 "properties": {},
4141 "type": "params"
4242 },
4343 "type": "query"
4444 },
4545 "nodeMetric": {
4646 "description": "A Node.js runtime metric",
4747 "properties": {
4848 "name": {
4949 "description": "Metric name",
5050 "type": "string"
5151 },
5252 "type": {
5353 "description": "Metric type",
5454 "knownValues": [
5555 "counter",
5656 "gauge",
5757 "histogram"
5858 ],
5959 "type": "string"
6060 },
6161 "unit": {
6262 "description": "Unit of measurement (bytes, seconds, percent)",
6363 "type": "string"
6464 },
6565 "value": {
6666 "description": "Current value (numeric string)",
6767 "type": "string"
6868 }
6969 },
7070 "required": [
7171 "name",
7272 "value",
7373 "type"
7474 ],
7575 "type": "object"
7676 },
7777 "processInfo": {
7878 "description": "Node.js process runtime information",
7979 "properties": {
8080 "cpuSystem": {
8181 "description": "CPU system time in microseconds",
8282 "type": "integer"
8383 },
8484 "cpuUser": {
8585 "description": "CPU user time in microseconds",
8686 "type": "integer"
8787 },
8888 "eventLoopLag": {
8989 "description": "Event loop lag in microseconds",
9090 "type": "integer"
9191 },
9292 "external": {
9393 "description": "External memory in bytes",
9494 "type": "integer"
9595 },
9696 "heapTotal": {
9797 "description": "V8 heap total in bytes",
9898 "type": "integer"
9999 },
100100 "heapUsed": {
101101 "description": "V8 heap used in bytes",
102102 "type": "integer"
103103 },
104104 "pid": {
105105 "description": "Process ID",
106106 "type": "integer"
107107 },
108108 "rss": {
109109 "description": "Resident set size in bytes",
110110 "type": "integer"
111111 },
112112 "uptime": {
113113 "description": "Process uptime in seconds",
114114 "type": "integer"
115115 }
116116 },
117117 "required": [
118118 "pid",
119119 "uptime",
120120 "heapUsed",
121121 "heapTotal",
122122 "rss"
123123 ],
124124 "type": "object"
125125 }
126126 },
127127 "id": "pub.chive.admin.getNodeMetrics",
128128 "lexicon": 1,
129129 "revision": 1
130130}