mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-03 16:10:21 +00:00
1. Import webhook and email destination 2. Import scheduled and realtime alert --------- Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
120 lines
2.7 KiB
JSON
120 lines
2.7 KiB
JSON
[
|
|
{
|
|
"name":"",
|
|
"org_id":"",
|
|
"stream_type":"logs",
|
|
"stream_name":"",
|
|
"is_real_time":false,
|
|
"query_condition":{
|
|
"type":"custom",
|
|
"conditions":[
|
|
{
|
|
"column":"logtag",
|
|
"operator":"=",
|
|
"value":"F",
|
|
"ignore_case":false
|
|
}
|
|
],
|
|
"sql":null,
|
|
"promql":null,
|
|
"promql_condition":null,
|
|
"aggregation":{
|
|
"group_by":[
|
|
|
|
],
|
|
"function":"avg",
|
|
"having":{
|
|
"column":"march",
|
|
"operator":">=",
|
|
"value":1,
|
|
"ignore_case":false
|
|
}
|
|
},
|
|
"vrl_function":null,
|
|
"search_event_type":null,
|
|
"multi_time_range":[
|
|
|
|
]
|
|
},
|
|
"trigger_condition":{
|
|
"period":10,
|
|
"operator":">=",
|
|
"threshold":1,
|
|
"frequency":1,
|
|
"cron":"1 40 * * * *",
|
|
"frequency_type":"cron",
|
|
"silence":10,
|
|
"timezone":"UTC",
|
|
"tolerance_in_secs":null
|
|
},
|
|
"destinations":[
|
|
""
|
|
],
|
|
"context_attributes":{
|
|
|
|
},
|
|
"row_template":"",
|
|
"description":"",
|
|
"enabled":false,
|
|
"tz_offset":0
|
|
},
|
|
{
|
|
"name":"",
|
|
"org_id":"",
|
|
"stream_type":"logs",
|
|
"stream_name":"",
|
|
"is_real_time":false,
|
|
"query_condition":{
|
|
"type":"custom",
|
|
"conditions":[
|
|
{
|
|
"column":"logtag",
|
|
"operator":"=",
|
|
"value":"F",
|
|
"ignore_case":false
|
|
}
|
|
],
|
|
"sql":null,
|
|
"promql":null,
|
|
"promql_condition":null,
|
|
"aggregation":{
|
|
"group_by":[
|
|
|
|
],
|
|
"function":"avg",
|
|
"having":{
|
|
"column":"march",
|
|
"operator":">=",
|
|
"value":1,
|
|
"ignore_case":false
|
|
}
|
|
},
|
|
"vrl_function":null,
|
|
"search_event_type":null,
|
|
"multi_time_range":[
|
|
|
|
]
|
|
},
|
|
"trigger_condition":{
|
|
"period":10,
|
|
"operator":">=",
|
|
"threshold":1,
|
|
"frequency":1,
|
|
"cron":"1 40 * * * *",
|
|
"frequency_type":"cron",
|
|
"silence":10,
|
|
"timezone":"UTC",
|
|
"tolerance_in_secs":null
|
|
},
|
|
"destinations":[
|
|
""
|
|
],
|
|
"context_attributes":{
|
|
|
|
},
|
|
"row_template":"",
|
|
"description":"",
|
|
"enabled":false,
|
|
"tz_offset":0
|
|
}
|
|
] |