监控矩阵接口

接口目录

监控矩阵列表

GET /monitor_matrix/api/list_monitor_matrix

URL 参数

参数 描述 取值
search 监控矩阵id或名称,可选 string
kind 监控矩阵类型 int, 0普通矩阵, 1无节点矩阵
page 页数,默认 1 int
page_size 每页个数,默认 15 int

返回字段

参数 描述 取值
errcode 错误码,1000 为正常 int
msg "OK" 或错误信息 string
monitor_matrices 矩阵列表 object array
monitor_matrices.id 矩阵ID string
monitor_matrices.kind 类型 int
monitor_matrices.name 名称 string
monitor_matrices.status 状态, 1已开始 2已暂停 int
monitor_matrices.closed_at 关闭时间 string
monitor_matrices.crated_at 创建时间 string
count 总数 int

返回示例:

{
    "errcode": 1000,
    "msg": "",
    "monitor_matrices": [{
        "id": "17lokk52",
        "kind": 0,
        "name": "log",
        "status": 2,
        "closed_at": "2019-01-31T12:07:54+08:00",
        "created_at": "2019-01-28T10:08:09+08:00"
    }],
    "count": 1
}

添加监控矩阵

POST /monitor_matrix/api/add_monitor_matrix

JSON 参数

参数 描述 取值
kind 矩阵类型 int,0普通矩阵, 1无节点矩阵
name 矩阵名称 string
close_timestamp 关闭时间 int

返回字段

参数 描述 取值
errcode 错误码,1000 为正常 int
msg "OK" 或错误信息 string
monitor_matrix_id 监控矩阵ID string

返回示例:

{
    "errcode": 1000,
    "monitor_matrix_id": "j90eo564",
    "msg": ""
}

删除监控矩阵

POST /monitor_matrix/api/del_monitor_matrix

URL 参数

参数 描述 取值
monitor_matrix_id 监控矩阵ID string

返回字段

参数 描述 取值
errcode 错误码,1000 为正常 int
msg "OK" 或错误信息 string

返回示例:

{
    "errcode": 1000,
    "msg": ""
}

批量删除监控矩阵

POST /monitor_matrix/api/del_monitor_matrices

URL 参数

参数 描述 取值
monitor_matrix_ids 监控矩阵hashID,逗号分隔 string

返回字段

参数 描述 取值
errcode 错误码,1000 为正常 int
msg "OK" 或错误信息 string

返回示例:

{
    "errcode": 1000,
    "msg": ""
}

开始监控矩阵

POST /monitor_matrix/api/start_monitor_matrix

JSON 参数

参数 描述 取值
monitor_matrix_id 监控矩阵ID string
close_timestamp 关闭时间 int

返回字段

参数 描述 取值
errcode 错误码,1000 为正常 int
msg "OK" 或错误信息 string

返回示例:

{
    "errcode": 1000,
    "msg": ""
}

暂停监控矩阵

POST /monitor_matrix/api/pause_monitor_matrix

URL 参数

参数 描述 取值
monitor_matrix_id 监控矩阵ID string

返回字段

参数 描述 取值
errcode 错误码,1000 为正常 int
msg "OK" 或错误信息 string

返回示例:

{
    "errcode": 1000,
    "msg": ""
}

修改监控矩阵关闭时间

POST /monitor_matrix/api/modify_monitor_matrix_closed_at

JSON 参数

参数 描述 取值
monitor_matrix_id 监控矩阵ID string
close_timestamp 关闭时间 int

返回字段

参数 描述 取值
errcode 错误码,1000 为正常 int
msg "OK" 或错误信息 string

返回示例:

{
    "errcode": 1000,
    "msg": ""
}

results matching ""

    No results matching ""