Initial commit
This commit is contained in:
45
reference/goedge 文档/ServerDomainHourlyStatService.md
Normal file
45
reference/goedge 文档/ServerDomainHourlyStatService.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# ServerDomainHourlyStatService
|
||||
> 服务域名按小时统计服务
|
||||
|
||||
---
|
||||
|
||||
## listTopServerDomainStatsWithServerId
|
||||
> 读取服务的域名排行
|
||||
|
||||
- 角色:`admin`
|
||||
- HTTP:`POST https://backend.dooki.cloud/ServerDomainHourlyStatService/listTopServerDomainStatsWithServerId`
|
||||
- RPC:`rpc listTopServerDomainStatsWithServerId(ListTopServerDomainStatsWithServerIdRequest) returns (ListTopServerDomainStatsWithServerIdResponse);`
|
||||
|
||||
**请求对象 (`ListTopServerDomainStatsWithServerIdRequest`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"nodeClusterId": "int64 // 集群ID",
|
||||
"nodeId": "int64 // 节点ID",
|
||||
"serverId": "int64 // 服务ID(网站ID)",
|
||||
"hourFrom": "string",
|
||||
"hourTo": "string",
|
||||
"size": "int64 // 数量,通常不能小于0"
|
||||
}
|
||||
```
|
||||
|
||||
**响应对象 (`ListTopServerDomainStatsWithServerIdResponse`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"domainStats": "[]ServerDomainHourlyStat"
|
||||
}
|
||||
```
|
||||
|
||||
**调用示例**
|
||||
|
||||
```bash
|
||||
curl -X POST "https://backend.dooki.cloud/ServerDomainHourlyStatService/listTopServerDomainStatsWithServerId" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
|
||||
-d '{
|
||||
...
|
||||
}'
|
||||
```
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user