Skip to content
本页目录

 

ThingsKit物联网平台

开箱即用的物联网低代码平台

获取左侧底部信息

接口地址:/api/yt/homepage/left/bottom{?endTs,interval,startTs,trend}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
startTsstartTsquerytrueinteger(int64)
endTsendTsquerytrueinteger(int64)
intervalintervalquerytrueinteger(int64)
trendtrend,可用值:CUSTOMER_ALARM_STATISTICAL,CUSTOMER_MESSAGE_STATISTICAL,CUSTOMER_TREND,TENANT_TRENDquerytruestring

响应参数:

参数名称参数说明类型
resultobject
setOrExpiredboolean

响应示例:

javascript
{
	"result": {},
	"setOrExpired": true
}
1
2
3
4

获取左侧顶部信息

接口地址:/api/yt/homepage/left/top

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

暂无

响应参数:

参数名称参数说明类型
alarmInfo告警统计BaseHomePageTop
  sumCount总数integer(int32)
  todayAdd今日新增integer(int32)
customerInfo客户统计BaseHomePageTop
  sumCount总数integer(int32)
  todayAdd今日新增integer(int32)
deviceInfo设备统计HomeDeviceInfoDTO
  directConnection直连设备数量integer(int32)
  gateWay网关设备数量integer(int32)
  inActive未激活设备数量integer(int32)
  offLine离线设备数量integer(int32)
  onLine在线设备数量integer(int32)
  sensor网关子设备数量integer(int32)
  sumCount设备总数integer(int32)
  todayAdd今日新增设备数量integer(int32)
messageInfo消息统计HomePageTopMessage
  dataPointsCount数据点总数integer(int32)
  messageCount消息总数integer(int32)
  todayDataPointsAdd今日数据点新增integer(int32)
  todayMessageAdd今日消息新增integer(int32)
productInfo产品统计BaseHomePageTop
  sumCount总数integer(int32)
  todayAdd今日新增integer(int32)
tenantInfo租户统计BaseHomePageTop
  sumCount总数integer(int32)
  todayAdd今日新增integer(int32)

响应示例:

javascript
{
	"alarmInfo": {
		"sumCount": 0,
		"todayAdd": 0
	},
	"customerInfo": {
		"sumCount": 0,
		"todayAdd": 0
	},
	"deviceInfo": {
		"directConnection": 0,
		"gateWay": 0,
		"inActive": 0,
		"offLine": 0,
		"onLine": 0,
		"sensor": 0,
		"sumCount": 0,
		"todayAdd": 0
	},
	"messageInfo": {
		"dataPointsCount": 0,
		"messageCount": 0,
		"todayDataPointsAdd": 0,
		"todayMessageAdd": 0
	},
	"productInfo": {
		"sumCount": 0,
		"todayAdd": 0
	},
	"tenantInfo": {
		"sumCount": 0,
		"todayAdd": 0
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

获取右侧过期租户信息

接口地址:/api/yt/homepage/right/overdue{?page,pageSize}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明是否必须数据类型
pagepagetrueint
pageSizepageSizetrueint

响应参数:

参数名称参数说明类型
itemsarray
  createTime创建时间string(date-time)
  creator创建用户string
  defaultConfig租户默认配置string
  description租户描述string
  enabled租户状态:启用/禁用boolean
  icon租户图标string
  idIDstring
  name租户名称string
  roleIds租户角色列表array
  tenantExpireTime租户到期时间string(date-time)
  tenantId租户IDstring
  tenantProfileId租户配置string
  tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
  updateTime更新时间string(date-time)
  updater更新用户string
totalinteger(int32)

响应示例:

javascript
{
	"items": [
		{
			"createTime": "",
			"creator": "",
			"defaultConfig": "",
			"description": "",
			"enabled": false,
			"icon": "",
			"id": "",
			"name": "",
			"roleIds": [],
			"tenantExpireTime": "",
			"tenantId": "",
			"tenantProfileId": "",
			"tenantStatus": "",
			"updateTime": "",
			"updater": ""
		}
	],
	"total": 0
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

获取右侧Top10

接口地址:/api/yt/homepage/right/top10

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

暂无

响应参数:

参数名称参数说明类型
resultobject
setOrExpiredboolean

响应示例:

javascript
{
	"result": {},
	"setOrExpired": true
}
1
2
3
4

小程序APP首页统计信息

接口地址:/api/yt/homepage/app{?login}

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
login只取告警数据querytrueboolean

响应参数:

参数名称参数说明类型
todayAlarm告警基础统计信息
  activedAlarm未处理告警数量integer(int32)
  clearedAck已处理告警数量integer(int32)
  clearedUnack误报告警数量integer(int32)
  total告警总数integer(int32)
todayCustomer客户基础统计信息
  cancellation禁用或过期客户数量integer(int32)
  loginUse活跃用户数integer(int32)
  normal正常用户integer(int32)
  total客户总数integer(int32)
todayDevice设备基础统计信息
  inActive未激活设备数量integer(int32)
  offLine离线设备数量integer(int32)
  onLine在线设备数量integer(int32)
  total设备总数integer(int32)
todayMsg流量基础统计信息
  dataPoints数据点数量integer(int32)
  message收发消息数量integer(int32)
todayTenant租户基础统计信息
  expired过期租户数量integer(int32)
  normal正常租户数量integer(int32)
  total租户总数integer(int32)
totalAlarm告警统计告警基础统计信息
  activedAlarm未处理告警数量integer(int32)
  clearedAck已处理告警数量integer(int32)
  clearedUnack误报告警数量integer(int32)
  total告警总数integer(int32)
totalCustomer客户统计客户基础统计信息
  cancellation禁用或过期客户数量integer(int32)
  loginUse活跃用户数integer(int32)
  normal正常用户integer(int32)
  total客户总数integer(int32)
totalDevice设备统计设备基础统计信息
  inActive未激活设备数量integer(int32)
  offLine离线设备数量integer(int32)
  onLine在线设备数量integer(int32)
  total设备总数integer(int32)
totalMsg消息统计流量基础统计信息
  dataPoints数据点数量integer(int32)
  message收发消息数量integer(int32)
totalTenant租户统计租户基础统计信息
  expired过期租户数量integer(int32)
  normal正常租户数量integer(int32)
  total租户总数integer(int32)

响应示例:

javascript
{
	"todayAlarm": {
		"activedAlarm": 0,
		"clearedAck": 0,
		"clearedUnack": 0,
		"total": 0
	},
	"todayCustomer": {
		"cancellation": 0,
		"loginUse": 0,
		"normal": 0,
		"total": 0
	},
	"todayDevice": {
		"inActive": 0,
		"offLine": 0,
		"onLine": 0,
		"total": 0
	},
	"todayMsg": {
		"dataPoints": 0,
		"message": 0
	},
	"todayTenant": {
		"expired": 0,
		"normal": 0,
		"total": 0
	},
	"totalAlarm": {
		"activedAlarm": 0,
		"clearedAck": 0,
		"clearedUnack": 0,
		"total": 0
	},
	"totalCustomer": {
		"cancellation": 0,
		"loginUse": 0,
		"normal": 0,
		"total": 0
	},
	"totalDevice": {
		"inActive": 0,
		"offLine": 0,
		"onLine": 0,
		"total": 0
	},
	"totalMsg": {
		"dataPoints": 0,
		"message": 0
	},
	"totalTenant": {
		"expired": 0,
		"normal": 0,
		"total": 0
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56