文档
测试

创建监控项

POST
http://172.16.14.11:8069/api/v1/hosts/host/78/item

接口描述

/api/v1/hosts/host/<int:host_id>/item

请求头

参数名
类型
描述
必填
Content-Type
string
示例:application/json
必填

请求参数

参数名
类型
描述
必填
uid
string
示例:6
必填
token
string
示例:e37afe96bdb2f6968ff0a0eba55cd65eb4be998bo1610681127
必填
name
string
示例:内存使用率(剩%)
必填
history
string
示例:90d
必填
key
string
示例:vm.memory.size[pavailable]
必填
delay
string
示例:30s
必填
item_type
string
示例:0
必填
value_type
string
示例:0
必填
is_sync
boolean
示例:true
必填
units
string
单位
可选
interface_id
int
接口id
必填
application_id
int
应用集id
可选

响应参数

参数名
类型
描述
必填
jsonrpc
string
示例:2.0
必填
id
object
示例:null
必填
result
object
数据字典
必填
code
string
示例:201
必填
msg
string
示例:创建成功
必填
result
int
示例:12437
必填