方法列表
按小时读取统计数据
admin
RPC
findLatestServerHourlyStats (FindLatestServerHourlyStatsRequest) returns (FindLatestServerHourlyStatsResponse)
HTTP
POST /ServerDailyStatService/findLatestServerHourlyStats
输入对象:FindLatestServerHourlyStatsRequest:
{ // 服务ID(网站ID) int64 serverId; // 小时数 int32 hours; }
输出对象:FindLatestServerHourlyStatsResponse:
按分钟读取统计数据,并返回秒级平均流量
admin
RPC
findLatestServerMinutelyStats (FindLatestServerMinutelyStatsRequest) returns (FindLatestServerMinutelyStatsResponse)
HTTP
POST /ServerDailyStatService/findLatestServerMinutelyStats
输入对象:FindLatestServerMinutelyStatsRequest:
{ // 服务ID(网站ID) int64 serverId; // 分钟数 int32 minutes; }
输出对象:FindLatestServerMinutelyStatsResponse:
读取某天的5分钟间隔流量
admin
RPC
findServer5MinutelyStatsWithDay (FindServer5MinutelyStatsWithDayRequest) returns (FindServer5MinutelyStatsWithDayResponse)
HTTP
POST /ServerDailyStatService/findServer5MinutelyStatsWithDay
输入对象:FindServer5MinutelyStatsWithDayRequest:
{ // 服务ID(网站ID) int64 serverId; // 必需,格式:YYYYMMDD string day; // 可选,开始时间,格式:HHIISS,比如 130000 string timeFrom; // 可选,结束时间,格式:HHIISS,比如 130459 string timeTo; }
输出对象:FindServer5MinutelyStatsWithDayResponse:
读取最近N日的统计数据
admin
RPC
findLatestServerDailyStats (FindLatestServerDailyStatsRequest) returns (FindLatestServerDailyStatsResponse)
HTTP
POST /ServerDailyStatService/findLatestServerDailyStats
输入对象:FindLatestServerDailyStatsRequest:
{ // 服务ID(网站ID) int64 serverId; // 区域ID,可选 int64 nodeRegionId; // 天数 int32 days; }
输出对象:FindLatestServerDailyStatsResponse:
读取日期段内的流量数据
admin
user
RPC
findServerDailyStatsBetweenDays (FindServerDailyStatsBetweenDaysRequest) returns (FindServerDailyStatsBetweenDaysResponse)
HTTP
POST /ServerDailyStatService/findServerDailyStatsBetweenDays
输入对象:FindServerDailyStatsBetweenDaysRequest:
{ // 用户ID,和服务ID二选一 int64 userId; // 服务ID,和用户ID二选一 int64 serverId; // 开始日期 YYYYMMDD string dayFrom; // 结束日期 YYYYMMDD string dayTo; // 区域ID int64 nodeRegionId; }
输出对象:FindServerDailyStatsBetweenDaysResponse:
查找单个服务当前时刻(N分钟内)统计数据
admin
user
RPC
sumCurrentServerDailyStats (SumCurrentServerDailyStatsRequest) returns (SumCurrentServerDailyStatsResponse)
HTTP
POST /ServerDailyStatService/sumCurrentServerDailyStats
输入对象:SumCurrentServerDailyStatsRequest:
{ // 服务ID(网站ID) int64 serverId; }
输出对象:SumCurrentServerDailyStatsResponse:
计算单个服务的日统计
admin
user
RPC
sumServerDailyStats (SumServerDailyStatsRequest) returns (SumServerDailyStatsResponse)
HTTP
POST /ServerDailyStatService/sumServerDailyStats
输入对象:SumServerDailyStatsRequest:
{ // 用户ID int64 userId; // 服务ID(网站ID) int64 serverId; int64 nodeRegionId; // YYYYMMDD string day; // day 和 dayFrom+dayTo 二选一, YYYYMMDD string dayFrom; // day 和 dayFrom+dayTo 二选一,YYYYMMDD string dayTo; }
输出对象:SumServerDailyStatsResponse:
计算单个服务的月统计
admin
user
RPC
sumServerMonthlyStats (SumServerMonthlyStatsRequest) returns (SumServerMonthlyStatsResponse)
HTTP
POST /ServerDailyStatService/sumServerMonthlyStats
输入对象:SumServerMonthlyStatsRequest:
{ // 服务ID(网站ID) int64 serverId; // YYYYMM string month; }
输出对象:SumServerMonthlyStatsResponse: