获取各种类型监控任务的自定义告警规则
URI /v2/threshold/getAllThresholdType.json
Method GET
参数说明
结果(json)
'metric' => 告警指标(1:当前响应时间 3:当日可用率 4:不可用监测点)

'cond' => 条件 (1:大于  2:小于)

'unit' => 单位 (1:ms  2:s  3:%)

'monitor_set' => 针对分布式监测点
                (只有站点监控任务才有)(1:任意几个监测点 2:指定监测点 3:平均)
					

一个例子

curl -s "https://api.jiankongbao.com/v2/threshold/getAllThresholdType.json?access_token=aa1f2500dccd88d47fb1bd16b38a562997edc536"

说明:access_token通过获取访问token得到。

返回结果

{
   "http": {
       "metric": {
           "1": {
               "name": "当前响应时间",
               "id": 1,
               "code": {
                   "1": {
                       "name": "大于",
                       "id": 1,
                       "unit": [
                           {
                               "name": "ms",
                               "id": "1"
                           },
                           {
                               "name": "s",
                               "id": "2"
                           }
                       ],
                       "retry": 3
                   },
                   "2": {
                       "name": "小于",
                       "id": 2,
                       "unit": [
                           {
                               "name": "ms",
                               "id": "1"
                           },
                           {
                               "name": "s",
                               "id": "2"
                           }
                       ],
                       "retry": 3
                   }
               }
           },
		   ...........
}