监控源列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
POST /monitorSource/list HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
Object | Body | 否 | A short description of struct |
||
clientToken | String | Body | 否 | 601FA6A2-AC5C-4B59-BE11-378FTOKENA11 | 幂等标识 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | Array of data | data |
|
monitorSourceId | Long | 12 | 监控源id |
monitorSourceName | String | Zabbix | 监控源名称 |
fieldKeys | Array of String | payload.content | 监控源字段 |
requestId | String | 10REQUES-AC5C-4B59-BE11-378F117A6A88 | id of the request |
示例
请求示例
POST /monitorSource/list HTTP/1.1
Host:gemp.cn-shanghai.aliyuncs.com
Content-Type:application/json
{
"clientToken" : "601FA6A2-AC5C-4B59-BE11-378FTOKENA11"
}
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ListMonitorSourcesResponse>
<monitorSourceId>1</monitorSourceId>
<fieldKeys>payload.content</fieldKeys>
<fieldKeys>payload.summary</fieldKeys>
<fieldKeys>payload.testarr[].a</fieldKeys>
<fieldKeys>payload.testarr[].b</fieldKeys>
<fieldKeys>payload.title</fieldKeys>
<monitorSourceName>zabbix</monitorSourceName>
</ListMonitorSourcesResponse>
<ListMonitorSourcesResponse>
<monitorSourceId>9</monitorSourceId>
<fieldKeys>payload.testarr[].a</fieldKeys>
<fieldKeys>payload.testarr[].b</fieldKeys>
<fieldKeys>payload.title</fieldKeys>
<monitorSourceName>网易云</monitorSourceName>
</ListMonitorSourcesResponse>
<ListMonitorSourcesResponse>
<monitorSourceId>8</monitorSourceId>
<fieldKeys>payload.content</fieldKeys>
<fieldKeys>payload.summary</fieldKeys>
<fieldKeys>payload.title</fieldKeys>
<monitorSourceName>腾讯云</monitorSourceName>
</ListMonitorSourcesResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
[ {
"monitorSourceId" : 1,
"fieldKeys" : [ "payload.content", "payload.summary", "payload.testarr[].a", "payload.testarr[].b", "payload.title" ],
"monitorSourceName" : "zabbix"
}, {
"monitorSourceId" : 9,
"fieldKeys" : [ "payload.testarr[].a", "payload.testarr[].b", "payload.title" ],
"monitorSourceName" : "网易云"
}, {
"monitorSourceId" : 8,
"fieldKeys" : [ "payload.content", "payload.summary", "payload.title" ],
"monitorSourceName" : "腾讯云"
} ]
错误码
访问错误中心查看更多错误码。
访问错误中心查看更多错误码。