ThingsKit物联网平台API文档-监控运维(告警管理-告警联系人)

告警联系人分页

接口地址:/api/yt/alarm_contact{?create_time,organizationId,page,pageSize,username}

请求方式:GET

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

响应数据类型:*/*

请求参数:

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

响应参数:

参数名称参数说明类型
itemsarray
addPeople添加人string
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
dingtalk钉钉string
email电子邮件string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
organizationDTO组织对象OrganizationDTO
children子集array
createTime创建时间string
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name组织名称string
parentId组织父IDstring
remark备注string
roleIds租户角色列表array
sort排序integer
tenantExpireTime租户到期时间string
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string
updater更新用户string
organizationId组织string
phone电话string
remark备注string
roleIds租户角色列表array
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string
username用户名string
wechat微信string
totalinteger(int32)

响应示例:

{
	"items": [
		{
			"addPeople": "",
			"createTime": "",
			"creator": "",
			"defaultConfig": "",
			"description": "",
			"dingtalk": "",
			"email": "",
			"enabled": false,
			"icon": "",
			"id": "",
			"name": "",
			"organizationDTO": {
				"children": [
					{
						"children": [
							{}
						],
						"createTime": "",
						"creator": "",
						"defaultConfig": "",
						"description": "",
						"enabled": false,
						"icon": "",
						"id": "",
						"name": "",
						"parentId": "",
						"remark": "",
						"roleIds": [],
						"sort": 0,
						"tenantExpireTime": "",
						"tenantId": "",
						"tenantProfileId": "",
						"tenantStatus": "",
						"updateTime": "",
						"updater": ""
					}
				],
				"createTime": "",
				"creator": "",
				"defaultConfig": "",
				"description": "",
				"enabled": false,
				"icon": "",
				"id": "",
				"name": "",
				"parentId": "",
				"remark": "",
				"roleIds": [],
				"sort": 0,
				"tenantExpireTime": "",
				"tenantId": "",
				"tenantProfileId": "",
				"tenantStatus": "",
				"updateTime": "",
				"updater": ""
			},
			"organizationId": "",
			"phone": "",
			"remark": "",
			"roleIds": [],
			"tenantExpireTime": "",
			"tenantId": "",
			"tenantProfileId": "",
			"tenantStatus": "",
			"updateTime": "",
			"updater": "",
			"username": "",
			"wechat": ""
		}
	],
	"total": 0
}

新增告警联系人

接口地址:/api/yt/alarm_contact

请求方式:POST

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

响应数据类型:*/*

请求示例:

{
  "name": "",
  },
  "organizationId": "",
  "phone": "",
  "username": ""
}

请求参数:

参数名称参数说明请求类型是否必须数据类型
alarmContactDTOAlarmContactDTObodytrueAlarmContactDTO
addPeople添加人falsestring
createTime创建时间falsestring(date-time)
creator创建用户falsestring
defaultConfig租户默认配置falsestring
description租户描述falsestring
dingtalk钉钉falsestring
email电子邮件falsestring
enabled租户状态:启用/禁用falseboolean
icon租户图标falsestring
idIDfalsestring
name租户名称falsestring
organizationDTO组织对象falseOrganizationDTO
children子集falsearray
createTime创建时间falsestring
creator创建用户falsestring
defaultConfig租户默认配置falsestring
description租户描述falsestring
enabled租户状态:启用/禁用falseboolean
icon租户图标falsestring
idIDfalsestring
name组织名称falsestring
parentId组织父IDfalsestring
remark备注falsestring
roleIds租户角色列表falsearray
sort排序falseinteger
tenantExpireTime租户到期时间falsestring
tenantId租户IDfalsestring
tenantProfileId租户配置falsestring
tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
updateTime更新时间falsestring
updater更新用户falsestring
organizationId组织falsestring
phone电话truestring
remark备注falsestring
roleIds租户角色列表falsearray
tenantExpireTime租户到期时间falsestring(date-time)
tenantId租户IDfalsestring
tenantProfileId租户配置falsestring
tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
updateTime更新时间falsestring(date-time)
updater更新用户falsestring
username用户名truestring
wechat微信falsestring

响应参数:

参数名称参数说明类型
addPeople添加人string
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
dingtalk钉钉string
email电子邮件string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
organizationDTO组织对象OrganizationDTO
children子集array
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name组织名称string
parentId组织父IDstring
remark备注string
roleIds租户角色列表array
sort排序integer(int32)
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string
organizationId组织string
phone电话string
remark备注string
roleIds租户角色列表array
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string
username用户名string
wechat微信string

响应示例:

{
	"addPeople": "",
	"createTime": "",
	"creator": "",
	"defaultConfig": "",
	"description": "",
	"dingtalk": "",
	"email": "",
	"enabled": false,
	"icon": "",
	"id": "",
	"name": "",
	"organizationDTO": {
		"children": [
			{
				"children": [
					{}
				],
				"createTime": "",
				"creator": "",
				"defaultConfig": "",
				"description": "",
				"enabled": false,
				"icon": "",
				"id": "",
				"name": "",
				"parentId": "",
				"remark": "",
				"roleIds": [],
				"sort": 0,
				"tenantExpireTime": "",
				"tenantId": "",
				"tenantProfileId": "",
				"tenantStatus": "",
				"updateTime": "",
				"updater": ""
			}
		],
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"enabled": false,
		"icon": "",
		"id": "",
		"name": "",
		"parentId": "",
		"remark": "",
		"roleIds": [],
		"sort": 0,
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"updateTime": "",
		"updater": ""
	},
	"organizationId": "",
	"phone": "",
	"remark": "",
	"roleIds": [],
	"tenantExpireTime": "",
	"tenantId": "",
	"tenantProfileId": "",
	"tenantStatus": "",
	"updateTime": "",
	"updater": "",
	"username": "",
	"wechat": ""
}

编辑告警联系人(待翻译)

接口地址:/api/yt/alarm_contact/update

请求方式:POST

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

响应数据类型:*/*

请求示例:

{
  "addPeople": "",
  "name": ""
  },
  "organizationId": "",
  "phone": "",
  "username": ""
}

请求参数:

参数名称参数说明请求类型是否必须数据类型
alarmContactDTOAlarmContactDTObodytrueAlarmContactDTO
addPeople添加人falsestring
createTime创建时间falsestring(date-time)
creator创建用户falsestring
defaultConfig租户默认配置falsestring
description租户描述falsestring
dingtalk钉钉falsestring
email电子邮件falsestring
enabled租户状态:启用/禁用falseboolean
icon租户图标falsestring
idIDfalsestring
name租户名称falsestring
organizationDTO组织对象falseOrganizationDTO
children子集falsearray
createTime创建时间falsestring
creator创建用户falsestring
defaultConfig租户默认配置falsestring
description租户描述falsestring
enabled租户状态:启用/禁用falseboolean
icon租户图标falsestring
idIDfalsestring
name组织名称falsestring
parentId组织父IDfalsestring
remark备注falsestring
roleIds租户角色列表falsearray
sort排序falseinteger
tenantExpireTime租户到期时间falsestring
tenantId租户IDfalsestring
tenantProfileId租户配置falsestring
tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
updateTime更新时间falsestring
updater更新用户falsestring
organizationId组织falsestring
phone电话truestring
remark备注falsestring
roleIds租户角色列表falsearray
tenantExpireTime租户到期时间falsestring(date-time)
tenantId租户IDfalsestring
tenantProfileId租户配置falsestring
tenantStatus可用值:DISABLED,EXPIRED,NORMALfalsestring
updateTime更新时间falsestring(date-time)
updater更新用户falsestring
username用户名truestring
wechat微信falsestring

响应参数:

参数名称参数说明类型
errorCodePlatform error code:\n2 – General error (HTTP: 500 – Internal Server Error)\n\n10 – Authentication failed (HTTP: 401 – Unauthorized)\n\n11 – JWT token expired (HTTP: 401 – Unauthorized)\n\n15 – Credentials expired (HTTP: 401 – Unauthorized)\n\n20 – Permission denied (HTTP: 403 – Forbidden)\n\n30 – Invalid arguments (HTTP: 400 – Bad Request)\n\n31 – Bad request params (HTTP: 400 – Bad Request)\n\n32 – Item not found (HTTP: 404 – Not Found)\n\n33 – Too many requests (HTTP: 429 – Too Many Requests)\n\n34 – Too many updates (Too many updates over Websocket session)\n\n* 40 – Subscription violation (HTTP: 403 – Forbidden)object
messageError messagestring
statusHTTP Response Status Codeinteger(int32)
timestampTimestampstring(date-time)

删除告警联系人(待翻译)

接口地址:/api/yt/alarm_contact

请求方式:DELETE

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

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
stringsstringbodytruearray

响应参数:

参数名称参数说明类型
errorCodePlatform error code:\n2 – General error (HTTP: 500 – Internal Server Error)\n\n10 – Authentication failed (HTTP: 401 – Unauthorized)\n\n11 – JWT token expired (HTTP: 401 – Unauthorized)\n\n15 – Credentials expired (HTTP: 401 – Unauthorized)\n\n20 – Permission denied (HTTP: 403 – Forbidden)\n\n30 – Invalid arguments (HTTP: 400 – Bad Request)\n\n31 – Bad request params (HTTP: 400 – Bad Request)\n\n32 – Item not found (HTTP: 404 – Not Found)\n\n33 – Too many requests (HTTP: 429 – Too Many Requests)\n\n34 – Too many updates (Too many updates over Websocket session)\n\n* 40 – Subscription violation (HTTP: 403 – Forbidden)object
messageError messagestring
statusHTTP Response Status Codeinteger(int32)
timestampTimestampstring(date-time)

获取组织下的告警联系人

接口地址:/api/yt/alarm_contact/{organizationId}

请求方式:GET

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

响应数据类型:*/*

请求参数:

参数名称参数说明请求类型是否必须数据类型
organizationIdorganizationIdpathtruestring

响应参数:

参数名称参数说明类型
addPeople添加人string
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
dingtalk钉钉string
email电子邮件string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name租户名称string
organizationDTO组织对象OrganizationDTO
children子集array
createTime创建时间string(date-time)
creator创建用户string
defaultConfig租户默认配置string
description租户描述string
enabled租户状态:启用/禁用boolean
icon租户图标string
idIDstring
name组织名称string
parentId组织父IDstring
remark备注string
roleIds租户角色列表array
sort排序integer(int32)
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string
organizationId组织string
phone电话string
remark备注string
roleIds租户角色列表array
tenantExpireTime租户到期时间string(date-time)
tenantId租户IDstring
tenantProfileId租户配置string
tenantStatus可用值:DISABLED,EXPIRED,NORMALstring
updateTime更新时间string(date-time)
updater更新用户string
username用户名string
wechat微信string

响应示例:

[
	{
		"addPeople": "",
		"createTime": "",
		"creator": "",
		"defaultConfig": "",
		"description": "",
		"dingtalk": "",
		"email": "",
		"enabled": false,
		"icon": "",
		"id": "",
		"name": "",
		"organizationDTO": {
			"children": [
				{
					"children": [
						{}
					],
					"createTime": "",
					"creator": "",
					"defaultConfig": "",
					"description": "",
					"enabled": false,
					"icon": "",
					"id": "",
					"name": "",
					"parentId": "",
					"remark": "",
					"roleIds": [],
					"sort": 0,
					"tenantExpireTime": "",
					"tenantId": "",
					"tenantProfileId": "",
					"tenantStatus": "",
					"updateTime": "",
					"updater": ""
				}
			],
			"createTime": "",
			"creator": "",
			"defaultConfig": "",
			"description": "",
			"enabled": false,
			"icon": "",
			"id": "",
			"name": "",
			"parentId": "",
			"remark": "",
			"roleIds": [],
			"sort": 0,
			"tenantExpireTime": "",
			"tenantId": "",
			"tenantProfileId": "",
			"tenantStatus": "",
			"updateTime": "",
			"updater": ""
		},
		"organizationId": "",
		"phone": "",
		"remark": "",
		"roleIds": [],
		"tenantExpireTime": "",
		"tenantId": "",
		"tenantProfileId": "",
		"tenantStatus": "",
		"updateTime": "",
		"updater": "",
		"username": "",
		"wechat": ""
	}
]