警报配置列表

方法:POST

Content-Type:application/json

https://network.tingyun.com/network-pro/api/alarm/alarmlist-json-authkey

请求参数

字段名 类型 必填 选项 描述
authkey string -- 授权码
alarm_type int 0:性能警报,1:错误警报 默认性能警报 警报类型
alarm_status String 状态码 0:停用 ,1:启用 ,-1:全部,默认全部 警报状态
current_page int false -- 当前页
task_type int false -- 任务类型 页面监测(PC):11,文件监测(PC):12,Ping监测(PC):0,事务监测(PC):2,流媒体监测(PC):3,MTR监测:7,私有协议:255,页面监测(移动):102,文件监测(移动):1021,Ping监测(移动):100,事务监测(移动):103,流媒体监测(移动):111,短信监测(移动):105 默认全部

返回参数

字段名 类型 描述
status long 状态码
total_records int 总条数
current_page int 当前页
page_size int 每页显示多少条
alarm_id long 警报id
alarm_name string 警报名字
task_name string 任务名字
task_type int 任务类型
field string 警报触发指标名称
perf_threshold string 性能指标阈值 alarm_type==0 只有性能警报才会有
perf_threshold_serious string 性能指标阈值
aval_threshold string 可用性阈值 alarm_type==0 只有性能警报才会有
aval_threshold_serious string 可用性阈值
error_count string 错误数量/百分比 alarm_type==1 只有错误警报才会有
error_count_serious string 错误数量/百分比 alarm_type==1 只有错误警报才会有 错误数量或者百分比 严重警报
base_on string 取样间隔
user_name string 最后修改账户
m_user_name string 创建账户
ctime string 创建时间
status int 警报任务状态
createByYourself int 当前警报是否是登录帐号创建。 0:否; 1:是
calc_way string
percentile int --

错误说明

字段说明 错误信息
authkey PermissionDeniedError

返回示例

{
    "status": 200,
    "data": {
        "total_records": 269,
        "current_page": 2,
        "page_size": 10,
        "alarms": [
            {
                "alarm_id": 2103129,
                "alarm_name": "无法解析(没有任何dns 配置)-性能警报",
                "task_name": "无法解析(没有任何dns 配置)",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "6.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-04-28",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103128,
                "alarm_name": "手动指定 DNS- 3.2.1.1-性能警报",
                "task_name": "手动指定 DNS- 3.2.1.1",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "6.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-04-28",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103146,
                "alarm_name": "任务_asdad3.021123",
                "task_name": "asdad3.0",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "80.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-05-11",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103145,
                "alarm_name": "任务_asdad3.02112",
                "task_name": "asdad3.0",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "80.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-05-11",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103144,
                "alarm_name": "任务_asdad3.0",
                "task_name": "asdad3.0",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "80.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-05-11",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103143,
                "alarm_name": "3.0任务管理测试2-性能警报",
                "task_name": "3.0任务管理测试2",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "6.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-04-28",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103142,
                "alarm_name": "全页面证书监测-性能警报",
                "task_name": "全页面证书监测",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "6.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-04-28",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103141,
                "alarm_name": "绑定任务查看-性能警报",
                "task_name": "绑定任务查看",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "6.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-04-28",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103140,
                "alarm_name": "asdasda1231-性能警报",
                "task_name": "asdasda1231",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "6.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-04-28",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            },
            {
                "alarm_id": 2103139,
                "alarm_name": "test123123-性能警报",
                "task_name": "test123123",
                "task_type": 11,
                "field": "总下载时间",
                "perf_threshold": null,
                "perf_threshold_serious": "10.0s",
                "aval_threshold": null,
                "aval_threshold_serious": "6.0%",
                "error_count": null,
                "error_count_serious": null,
                "base_on": "1x",
                "user_name": "sina_test1",
                "m_user_name": "sina_test1",
                "ctime": "2023-04-28",
                "status": 0,
                "createByYourself": 1,
                "calc_way": null,
                "percentile": 50
            }
        ]
    }
}
© 2007-2023 北京基调网络股份有限公司 all right reserved,powered by Gitbook本文档更新于: 2023-09-04 19:27

results matching ""

    No results matching ""