节点指标
返回 KVNode 的操作指标,包括写入和读取计数。
身份验证
需要内部身份验证。通过 X-Glue-Authentication 头部或 apikey 和 secret 头部传递凭据。
请求示例
1curl "https://api.hola.cloud/v1/metrics" \
2 -H "X-Glue-Authentication: YOUR_AUTH_TOKEN"
响应示例
1HTTP/1.1 200 OK
2Content-Type: application/json
1{
2 "writes_total": 15000,
3 "reads_total": 98000,
4 "collections": 3,
5 "keys_total": 4500,
6 "uptime_seconds": 86400
7}
错误代码
| 状态 | 代码 | 描述 |
|---|---|---|
| 403 | forbidden | Missing authentication headers |
| 500 | internal_error | 服务器内部错误 |
评论