-
请求示例 HTTP的示例 GET /controller/campus/v1/performanceservice/endpointbehavior/loyalty?tagId=9dffc44b-1824-42a4-ac48-616e3f0eaa2a&tagType=0&startTime=1567526400&endTime=1567527800&timeUnit=day HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AC
CES S-TOKEN: x-yyyyyy
-
响应示例 返回状态码为200:接口调用成功,响应体参考FlowDistrResp。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"targetName" : "humanflow",
"counts" : [
{
"count" : "123",
"stamp" : 1565049600000
}
]
}
]
} 返回状态码为400:参数非法,查询失败。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
URI /controller/campus/v1/performanceservice/endpointbehavior/loyalty 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 tagId 否 string - - 查询维度具体id,UUID格式,根据tagType确定,当tagType为0或1时,tagId必填. "9dffc44b-1824-42a4-ac48-616e3f0eaa2a" tagType 是 string 0 1 2 - 查询类型: 0---站点维度查询,TagID为站点ID。 1---设备标签维度查询,TagID为设备标签ID。 2---租户维度查询,TagID不做校验,可为空。 "0" startTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567526400 endTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567527800 timeUnit 是 string day week month custom - 时间维度。 day---天维度 week---周维度 month---月维度 custom---自定义维度 "day"
-
响应示例 返回状态码为200:接口调用成功,响应体参考DeviceGroupTagResp。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"pageIndex" : 1,
"pageSize" : 20,
"totalRecords" : 1,
"data" : [
{
"tagId" : "31f35021-e656-472a-8937-9c6d6da76e6e",
"tagName" : "test"
}
]
} 返回状态码为400:参数非法,查询失败。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
响应参数 返回状态码为200:接口调用成功,响应体参考DeviceGroupTagResp。 表2 DeviceGroupTagResp对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 errcode string 0~10个字符。 - 错误码信息。 "0" errmsg string 0~256个字符。 - 结果信息。 "" pageIndex integer [0-2147483647] - 分页的序号。 1 pageSize integer [0-1000] - 分页的大小。 20 totalRecords integer [0-2147483647] - 本次查询的设备标签总数。 1 data ARRAY_REFERENCE 0-1000个列表项,详细请参见表3。 查询到的设备标签信息。 - 表3 DeviceGroupTag对象的参数列表 参数名称 类型 参数值域 默认值 参数说明 参数示例 tagId string 0~64个字符。 - 标签ID。 "31f35021-e656-472a-8937-9c6d6da76e6e" tagName string 0~32个字符。 - 标签名。 "test" 返回状态码为400:参数非法,查询失败。 详细信息请参见实际响应消息体。
-
URI /controller/campus/v1/performanceservice/endpointbehavior/tags 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 是 string - - 站点ID,UUID格式。 "9dffc44b-1824-42a4-ac48-616e3f0eaa2a" pageSize 是 integer [1-1000] 20 分页的大小。 20 pageIndex 是 integer [1-2147483647] 1 分页的序号。 1
-
请求示例 HTTP的示例 GET /controller/campus/v1/performanceservice/endpointbehavior/tags?siteId=9dffc44b-1824-42a4-ac48-616e3f0eaa2a&pageSize=20&pageIndex=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
-
请求示例 HTTP的示例 GET /controller/campus/v1/performanceservice/endpointbehavior/dwelltime?tagId=9dffc44b-1824-42a4-ac48-616e3f0eaa2a&tagType=0&startTime=1567526400&endTime=1567527800&timeUnit=day HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
-
URI /controller/campus/v1/performanceservice/endpointbehavior/dwelltime 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 tagId 否 string - - 查询维度具体id,UUID格式,根据tagType确定,当tagType为0或1时,tagId必填. "9dffc44b-1824-42a4-ac48-616e3f0eaa2a" tagType 是 string - - 查询类型: 0---站点维度查询,TagID为站点ID。 1---设备标签维度查询,TagID为设备标签ID。 2---租户维度查询,TagID不做校验,可为空。 "0" startTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567526400 endTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567527800 timeUnit 是 string day week month custom - 时间维度。 day---天维度 week---周维度 month---月维度 custom---自定义维度 "day"
-
响应示例 返回状态码为200:接口调用成功,响应体参考FlowDistrResp。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"targetName" : "humanflow",
"counts" : [
{
"count" : "123",
"stamp" : 1565049600000
}
]
}
]
} 返回状态码为400:参数非法,查询失败。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
请求示例 HTTP的示例 GET /controller/campus/v1/performanceservice/endpointbehavior/capturerate?tagId=9dffc44b-1824-42a4-ac48-616e3f0eaa2a&tagType=0&startTime=1567526400&endTime=1567527800&timeUnit=day HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-yyyyyy
-
响应示例 返回状态码为200:接口调用成功,响应体参考FlowDistrResp。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"targetName" : "humanflow",
"counts" : [
{
"count" : "123",
"stamp" : 1565049600000
}
]
}
]
} 返回状态码为400:参数非法,查询失败。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
URI /controller/campus/v1/performanceservice/endpointbehavior/capturerate 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 tagId 否 string - - 查询维度具体id,UUID格式,根据tagType确定,当tagType为0或1时,tagId必填. "9dffc44b-1824-42a4-ac48-616e3f0eaa2a" tagType 是 string 0 1 2 - 查询类型: 0---站点维度查询,TagID为站点ID。 1---设备标签维度查询,TagID为设备标签ID。 2---租户维度查询,TagID不做校验,可为空。 "0" startTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567526400 endTime 是 int32 - - 时间戳(秒),最大时间差不超过一年。 1567527800 timeUnit 是 string day week month custom - 时间维度。 day---天维度 week---周维度 month---月维度 custom---自定义维度 "day"
-
响应示例 返回状态码为200:接口调用成功,响应体参考FlowDistrResp。 HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0",
"errmsg" : "",
"data" : [
{
"targetName" : "humanflow",
"counts" : [
{
"count" : "123",
"stamp" : 1565049600000
}
]
}
]
} 返回状态码为400:参数非法,查询失败。 HTTP/1.1 400 Bad Request
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
-
URI /controller/campus/v1/performanceservice/endpointbehavior/realtimeflow 表1 query参数列表 参数名称 必选 类型 参数值域 默认值 参数说明 参数示例 siteId 否 string - - 站点ID,UUID格式。不传默认租户级查询. "9dffc44b-1824-42a4-ac48-616e3f0eaa2a" tagId 否 string - - 标签ID,UUID格式,若不设置,则默认查询站点下所有设备。 "31f35021-e656-472a-8937-9c6d6da76e6e"