47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
|
|
# ServerClientSystemMonthlyStatService
|
|||
|
|
> 操作系统统计
|
|||
|
|
|
|||
|
|
---
|
|||
|
|
|
|||
|
|
## findTopServerClientSystemMonthlyStats
|
|||
|
|
> 查找前N个操作系统
|
|||
|
|
|
|||
|
|
- 角色:`admin`, `user`
|
|||
|
|
- HTTP:`POST https://backend.dooki.cloud/ServerClientSystemMonthlyStatService/findTopServerClientSystemMonthlyStats`
|
|||
|
|
- RPC:`rpc findTopServerClientSystemMonthlyStats (FindTopServerClientSystemMonthlyStatsRequest) returns (FindTopServerClientSystemMonthlyStatsResponse);`
|
|||
|
|
|
|||
|
|
**请求对象 (`FindTopServerClientSystemMonthlyStatsRequest`)**
|
|||
|
|
|
|||
|
|
```json
|
|||
|
|
{
|
|||
|
|
"serverId": "int64 // 服务ID(网站ID)",
|
|||
|
|
"month": "string",
|
|||
|
|
"offset": "int64 // 读取位置",
|
|||
|
|
"size": "int64 // 数量,通常不能小于0"
|
|||
|
|
}
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**响应对象 (`FindTopServerClientSystemMonthlyStatsResponse`)**
|
|||
|
|
|
|||
|
|
```json
|
|||
|
|
{
|
|||
|
|
"stats": "[]Stat",
|
|||
|
|
"clientSystem": "ClientSystem",
|
|||
|
|
"version": "string",
|
|||
|
|
"count": "int64 // 数量"
|
|||
|
|
}
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
**调用示例**
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
curl -X POST "https://backend.dooki.cloud/ServerClientSystemMonthlyStatService/findTopServerClientSystemMonthlyStats" \
|
|||
|
|
-H "Content-Type: application/json" \
|
|||
|
|
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
|
|||
|
|
-d '{
|
|||
|
|
...
|
|||
|
|
}'
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
---
|