Add frps proxy traffic API v2 (#5398)

This commit is contained in:
fatedier
2026-07-08 02:05:28 +08:00
committed by GitHub
parent 5cd722b177
commit 68509f5d44
7 changed files with 280 additions and 49 deletions

View File

@@ -90,3 +90,16 @@ type V2ProxyStatusResp struct {
LastStartTime string `json:"lastStartTime"`
LastCloseTime string `json:"lastCloseTime"`
}
type V2ProxyTrafficResp struct {
Name string `json:"name"`
Unit string `json:"unit"`
Granularity string `json:"granularity"`
History []V2ProxyTrafficPointResp `json:"history"`
}
type V2ProxyTrafficPointResp struct {
Date string `json:"date"`
TrafficIn int64 `json:"trafficIn"`
TrafficOut int64 `json:"trafficOut"`
}