Files
pyGoEdge-UserPanel/reference/goedge 文档/ServerStatBoardChartService.md
2025-11-18 03:36:49 +08:00

111 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ServerStatBoardChartService
> 统计看板条目
---
## disableServerStatBoardChart
> 取消图表
- 角色:`admin`
- HTTP`POST https://backend.dooki.cloud/ServerStatBoardChartService/disableServerStatBoardChart`
- RPC`rpc disableServerStatBoardChart (DisableServerStatBoardChartRequest) returns (RPCSuccess);`
**请求对象 (`DisableServerStatBoardChartRequest`)**
```json
{
"serverStatBoardId": "int64",
"metricChartId": "int64"
}
```
**响应对象 (`RPCSuccess`)**
```json
{}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/ServerStatBoardChartService/disableServerStatBoardChart" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---
## enableServerStatBoardChart
> 添加图表
- 角色:`admin`
- HTTP`POST https://backend.dooki.cloud/ServerStatBoardChartService/enableServerStatBoardChart`
- RPC`rpc enableServerStatBoardChart (EnableServerStatBoardChartRequest) returns (RPCSuccess);`
**请求对象 (`EnableServerStatBoardChartRequest`)**
```json
{
"serverStatBoardId": "int64",
"metricChartId": "int64"
}
```
**响应对象 (`RPCSuccess`)**
```json
{}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/ServerStatBoardChartService/enableServerStatBoardChart" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---
## findAllEnabledServerStatBoardCharts
> 读取看板中的图表
- 角色:`admin`
- HTTP`POST https://backend.dooki.cloud/ServerStatBoardChartService/findAllEnabledServerStatBoardCharts`
- RPC`rpc findAllEnabledServerStatBoardCharts (FindAllEnabledServerStatBoardChartsRequest) returns (FindAllEnabledServerStatBoardChartsResponse);`
**请求对象 (`FindAllEnabledServerStatBoardChartsRequest`)**
```json
{
"serverStatBoardId": "int64"
}
```
**响应对象 (`FindAllEnabledServerStatBoardChartsResponse`)**
```json
{
"serverStatBoardCharts": "[]ServerStatBoardChart"
}
```
**调用示例**
```bash
curl -X POST "https://backend.dooki.cloud/ServerStatBoardChartService/findAllEnabledServerStatBoardCharts" \
-H "Content-Type: application/json" \
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
-d '{
...
}'
```
---