API中心服务端API应用统计
应用统计
获取今天实时统计
请求地址: /api/3dcat/application/stat/todayRealTime
请求方法:GET
请求参数:
返回结果:
字段名 | 类型 | 说明 |
---|
countTotal | Integer | 使用总时长(分钟) |
durationTotal | Integer | 使用总次数 |
countDay | Integer | 今天使用总次数 |
durationDay | Integer | 今天使用总时长(分钟) |
concurrency | Integer | 当前并发数 |
返回内容示例:
{
"version":"1.0.0",
"result":true,
"message":"success",
"code":200,
"data":{
"countTotal":173,
"durationTotal":418,
"countDay":19,
"durationDay":35,
"concurrency":0
},
"serverTime":1626166807275,
"requestId":"7a84c99eec277c33"
}
查询应用使用时间分布详情
请求地址: /api/3dcat/application/stat/timeDistribution
请求方法:GET
请求参数:
字段名 | 类型 | 是否必填 | 说明 |
---|
startDate | String | 是 | 查询起始时间(格式为YYYY-MM-dd) |
endDate | String | 是 | 查询结束时间(格式为YYYY-MM-dd) |
appId | Long | 否 | 应用Id 不传 查全部 |
返回结果:
字段名 | 类型 | 说明 |
---|
dateDistributions | List | 使用总时长(分钟) |
areaDistributions | List | 使用总次数 |
appDistributions | List | 使用总次数 |
dateDistributions
字段名 | 类型 | 说明 |
---|
statDate | String | 日期 |
duration | Integer | 使用时长 |
areaDistributions
字段名 | 类型 | 说明 |
---|
area | String | 省份 |
duration | Integer | 使用时长 |
appDistributions
字段名 | 类型 | 说明 |
---|
appName | String | 应用名称 |
duration | Integer | 使用时长 |
返回内容示例:
{
"version":"1.0.0",
"result":true,
"message":"success",
"code":200,
"data":{
"dateDistributions":[
{
"statDate":"07-08",
"duration":90
}
],
"areaDistributions":[
{
"area":"河南省",
"duration":27
},
{
"area":"未知",
"duration":6
},
{
"area":"其他",
"duration":1
}
],
"appDistributions":[
{
"appName":"Car",
"duration":2
},
{
"appName":"其他",
"duration":7
}
]
},
"serverTime":1626166807208,
"requestId":"0359fcf66d2d86aa"
}
查询应用使用次数分布详情
请求地址: /api/3dcat/application/stat/countDistribution
请求方法:GET
请求参数:
字段名 | 类型 | 是否必填 | 说明 |
---|
startDate | String | 是 | 查询起始时间(格式为YYYY-MM-dd) |
endDate | String | 是 | 查询结束时间(格式为YYYY-MM-dd) |
appId | Long | 否 | 应用Id 不传 查全部 |
返回结果:
字段名 | 类型 | 说明 |
---|
dateDistributions | List | 使用总时长(分钟) |
areaDistributions | List | 使用总次数 |
appDistributions | List | 使用总次数 |
dateDistributions
字段名 | 类型 | 说明 |
---|
statDate | String | 日期 |
count | Integer | 使用次数 |
areaDistributions
字段名 | 类型 | 说明 |
---|
area | String | 省份 |
count | Integer | 使用次数 |
appDistributions
字段名 | 类型 | 说明 |
---|
appName | String | 应用名称 |
count | Integer | 使用次数 |
返回内容示例:
{
"version":"1.0.0",
"result":true,
"message":"success",
"code":200,
"data":{
"dateDistributions":[
{
"statDate":"07-12",
"count":2
}
],
"areaDistributions":[
{
"area":"广东省",
"count":2
}
],
"appDistributions":[
{
"appName":"3433",
"count":2
}
]
},
"serverTime":1626175048402,
"requestId":"807e939d796baac7"
}