Initial commit
This commit is contained in:
45
reference/goedge 文档/ServerRegionCountryMonthlyStatService.md
Normal file
45
reference/goedge 文档/ServerRegionCountryMonthlyStatService.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# ServerRegionCountryMonthlyStatService
|
||||
> 地区月份统计
|
||||
|
||||
---
|
||||
|
||||
## findTopServerRegionCountryMonthlyStats
|
||||
> 查找前N个地区
|
||||
|
||||
- 角色:`admin`, `user`
|
||||
- HTTP:`POST https://backend.dooki.cloud/ServerRegionCountryMonthlyStatService/findTopServerRegionCountryMonthlyStats`
|
||||
- RPC:`rpc findTopServerRegionCountryMonthlyStats (FindTopServerRegionCountryMonthlyStatsRequest) returns (FindTopServerRegionCountryMonthlyStatsResponse);`
|
||||
|
||||
**请求对象 (`FindTopServerRegionCountryMonthlyStatsRequest`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"month": "string // YYYYMM",
|
||||
"serverId": "int64 // 服务ID(网站ID)",
|
||||
"offset": "int64 // 读取位置",
|
||||
"size": "int64 // 数量,通常不能小于0"
|
||||
}
|
||||
```
|
||||
|
||||
**响应对象 (`FindTopServerRegionCountryMonthlyStatsResponse`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"stats": "[]Stat",
|
||||
"regionCountry": "RegionCountry",
|
||||
"count": "int64 // 数量"
|
||||
}
|
||||
```
|
||||
|
||||
**调用示例**
|
||||
|
||||
```bash
|
||||
curl -X POST "https://backend.dooki.cloud/ServerRegionCountryMonthlyStatService/findTopServerRegionCountryMonthlyStats" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
|
||||
-d '{
|
||||
...
|
||||
}'
|
||||
```
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user