Duansg commented on issue #3615:
URL: https://github.com/apache/hertzbeat/issues/3615#issuecomment-3132956119

   > 完整的json参数
   > 
   > ```
   > 
   > [{
   >     "alert_id": "alert-1753773732-855204",
   >     "alert_instance_id": "83d72973ff78845e-63b0d391c4b07-3beef5b",
   >     "alert_name": "新告警规则",
   >     "alert_time": 1753777839,
   >     "aliuid": "1183565243178554",
   >     "annotations": {
   >         "__count__": "1",
   >         "__date__": "null",
   >         "__line__": "null",
   >         "__log_count__": "null",
   >         "__log_pattern__": "null",
   >         "__log_signature__": "null",
   >         "__source__": "10.219.196.58",
   >         "__time__": "1753777770",
   >         "__time___0": "1753777770",
   >         "__topic__": "null",
   >         "__ts__": "1753777711000",
   >         "average": "89.357",
   >         "curlevel": "OK",
   >         "desc": "新告警规则告警触发",
   >         "escalation": "null",
   >         "escalation.comparisonoperator": "null",
   >         "escalation.expression": "null",
   >         "escalation.level": "null",
   >         "escalation.statistics": "null",
   >         "escalation.tag": "null",
   >         "escalation.threshold": "null",
   >         "escalation.times": "null",
   >         "instanceid": "r-bp1l526vq5zj05wnlf",
   >         "instancename": "cns3-ali-live-rg-tmc-res",
   >         "maximum": "89.357",
   >         "metricname": "ShardingMemoryUsage",
   >         "nodeid": "r-bp1l526vq5zj05wnlf-db-13",
   >         "product": "KVstore",
   >         "rulename": "cns3-live-redis-node-内存使用率 (暂时只监控,不通知)",
   >         "timemetrics": "null",
   >         "timemetrics.engine_out_time": "null",
   >         "timemetrics.notify_in_time": "null",
   >         "timestamp": "1753777680000",
   >         "title": "新告警规则告警触发",
   >         "userid": "1183565243178554"
   >     },
   >     "fingerprint": "3382afb2c64dd169",
   >     "fire_results": [
   >         {
   >             "__count__": "1",
   >             "__date__": "null",
   >             "__line__": "null",
   >             "__log_count__": "null",
   >             "__log_pattern__": "null",
   >             "__log_signature__": "null",
   >             "__source__": "10.219.196.58",
   >             "__time__": "1753777770",
   >             "__time___0": "1753777770",
   >             "__topic__": "null",
   >             "__ts__": "1753777711000",
   >             "average": "89.357",
   >             "curlevel": "OK",
   >             "escalation": "null",
   >             "escalation.comparisonoperator": "null",
   >             "escalation.expression": "null",
   >             "escalation.level": "null",
   >             "escalation.statistics": "null",
   >             "escalation.tag": "null",
   >             "escalation.threshold": "null",
   >             "escalation.times": "null",
   >             "instanceid": "r-bp1l526vq5zj05wnlf",
   >             "instancename": "cns3-ali-live-rg-tmc-res",
   >             "maximum": "89.357",
   >             "metricname": "ShardingMemoryUsage",
   >             "nodeid": "r-bp1l526vq5zj05wnlf-db-13",
   >             "product": "KVstore",
   >             "rulename": "cns3-live-redis-node-内存使用率 (暂时只监控,不通知)",
   >             "timemetrics": "null",
   >             "timemetrics.engine_out_time": "null",
   >             "timemetrics.notify_in_time": "null",
   >             "timestamp": "1753777680000",
   >             "userid": "1183565243178554"
   >         },
   >         {
   >             "__count__": "1",
   >             "__date__": "null",
   >             "__line__": "null",
   >             "__log_count__": "null",
   >             "__log_pattern__": "null",
   >             "__log_signature__": "null",
   >             "__source__": "10.219.220.193",
   >             "__time__": "1753777753",
   >             "__time___0": "1753777753",
   >             "__topic__": "null",
   >             "__ts__": "1753777700000",
   >             "average": "92.339",
   >             "curlevel": "INFO",
   >             "escalation": "null",
   >             "escalation.comparisonoperator": "null",
   >             "escalation.expression": "null",
   >             "escalation.level": "null",
   >             "escalation.statistics": "null",
   >             "escalation.tag": "null",
   >             "escalation.threshold": "null",
   >             "escalation.times": "null",
   >             "instanceid": "r-bp1toyrgnh2gp479sg",
   >             "instancename": "cns3-pre-rg-tmc-restrictions",
   >             "maximum": "92.339",
   >             "metricname": "ShardingMemoryUsage",
   >             "nodeid": "r-bp1toyrgnh2gp479sg-db-5",
   >             "product": "KVstore",
   >             "rulename": "cns3-pre-redis-node-内存使用率(暂时只监控不通知)",
   >             "timemetrics": "null",
   >             "timemetrics.engine_out_time": "null",
   >             "timemetrics.notify_in_time": "null",
   >             "timestamp": "1753777680000",
   >             "userid": "1183565243178554"
   >         }
   >     ],
   >     "fire_results_count": 2,
   >     "fire_time": 1753777839,
   >     "labels": {},
   >     "project": "alerts-logs",
   >     "region": "cn-shanghai",
   >     "resolve_time": 0,
   >     "results": [
   >         {
   >             "dashboard_url": "",
   >             "end_time": 1753777800,
   >             "fire_result": {
   >                 "__count__": "1",
   >                 "__date__": "null",
   >                 "__line__": "null",
   >                 "__log_count__": "null",
   >                 "__log_pattern__": "null",
   >                 "__log_signature__": "null",
   >                 "__source__": "10.219.196.58",
   >                 "__time__": "1753777770",
   >                 "__time___0": "1753777770",
   >                 "__topic__": "null",
   >                 "__ts__": "1753777711000",
   >                 "average": "89.357",
   >                 "curlevel": "OK",
   >                 "escalation": "null",
   >                 "escalation.comparisonoperator": "null",
   >                 "escalation.expression": "null",
   >                 "escalation.level": "null",
   >                 "escalation.statistics": "null",
   >                 "escalation.tag": "null",
   >                 "escalation.threshold": "null",
   >                 "escalation.times": "null",
   >                 "instanceid": "r-bp1l526vq5zj05wnlf",
   >                 "instancename": "cns3-ali-live-rg-tmc-res",
   >                 "maximum": "89.357",
   >                 "metricname": "ShardingMemoryUsage",
   >                 "nodeid": "r-bp1l526vq5zj05wnlf-db-13",
   >                 "product": "KVstore",
   >                 "rulename": "cns3-live-redis-node-内存使用率 (暂时只监控,不通知)",
   >                 "timemetrics": "null",
   >                 "timemetrics.engine_out_time": "null",
   >                 "timemetrics.notify_in_time": "null",
   >                 "timestamp": "1753777680000",
   >                 "userid": "1183565243178554"
   >             },
   >             "project": "alerts-logs",
   >             "query": "* | select *",
   >             "query_url": 
"https://sls.console.aliyun.com/lognext/project/alerts-logs/logsearch/alert-logs?encode=base64\u0026endTime=1753777800\u0026queryString=KiB8IHNlbGVjdCAq\u0026queryTimeType=99\u0026startTime=1753777740";,
   >             "raw_results": [
   >                 {
   >                     "__count__": "1",
   >                     "__date__": "null",
   >                     "__line__": "null",
   >                     "__log_count__": "null",
   >                     "__log_pattern__": "null",
   >                     "__log_signature__": "null",
   >                     "__source__": "10.219.196.58",
   >                     "__time__": "1753777770",
   >                     "__time___0": "1753777770",
   >                     "__topic__": "null",
   >                     "__ts__": "1753777711000",
   >                     "average": "89.357",
   >                     "curlevel": "OK",
   >                     "escalation": "null",
   >                     "escalation.comparisonoperator": "null",
   >                     "escalation.expression": "null",
   >                     "escalation.level": "null",
   >                     "escalation.statistics": "null",
   >                     "escalation.tag": "null",
   >                     "escalation.threshold": "null",
   >                     "escalation.times": "null",
   >                     "instanceid": "r-bp1l526vq5zj05wnlf",
   >                     "instancename": "cns3-ali-live-rg-tmc-res",
   >                     "maximum": "89.357",
   >                     "metricname": "ShardingMemoryUsage",
   >                     "nodeid": "r-bp1l526vq5zj05wnlf-db-13",
   >                     "product": "KVstore",
   >                     "rulename": "cns3-live-redis-node-内存使用率 (暂时只监控,不通知)",
   >                     "timemetrics": "null",
   >                     "timemetrics.engine_out_time": "null",
   >                     "timemetrics.notify_in_time": "null",
   >                     "timestamp": "1753777680000",
   >                     "userid": "1183565243178554"
   >                 },
   >                 {
   >                     "__count__": "1",
   >                     "__date__": "null",
   >                     "__line__": "null",
   >                     "__log_count__": "null",
   >                     "__log_pattern__": "null",
   >                     "__log_signature__": "null",
   >                     "__source__": "10.219.220.193",
   >                     "__time__": "1753777753",
   >                     "__time___0": "1753777753",
   >                     "__topic__": "null",
   >                     "__ts__": "1753777700000",
   >                     "average": "92.339",
   >                     "curlevel": "INFO",
   >                     "escalation": "null",
   >                     "escalation.comparisonoperator": "null",
   >                     "escalation.expression": "null",
   >                     "escalation.level": "null",
   >                     "escalation.statistics": "null",
   >                     "escalation.tag": "null",
   >                     "escalation.threshold": "null",
   >                     "escalation.times": "null",
   >                     "instanceid": "r-bp1toyrgnh2gp479sg",
   >                     "instancename": "cns3-pre-rg-tmc-restrictions",
   >                     "maximum": "92.339",
   >                     "metricname": "ShardingMemoryUsage",
   >                     "nodeid": "r-bp1toyrgnh2gp479sg-db-5",
   >                     "product": "KVstore",
   >                     "rulename": "cns3-pre-redis-node-内存使用率(暂时只监控不通知)",
   >                     "timemetrics": "null",
   >                     "timemetrics.engine_out_time": "null",
   >                     "timemetrics.notify_in_time": "null",
   >                     "timestamp": "1753777680000",
   >                     "userid": "1183565243178554"
   >                 }
   >             ],
   >             "raw_results_count": 2,
   >             "region": "cn-shanghai",
   >             "role_arn": "",
   >             "start_time": 1753777740,
   >             "store": "alert-logs",
   >             "store_type": "log"
   >         }
   >     ],
   >     "severity": 6,
   >     "status": "firing"
   > }]
   > ```
   
   Hi, Hertzbeat currently uses the default template format of SLS webhooks and 
does not support alerts from SLS custom templates. This is to integrate 
Hertzbeat existing alert handling process. You can refer to the current default 
template description of SLS.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to