File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed
src/content/partials/magic-wan/magic-tunnel-health-alerts Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,79 @@ Send a [`POST` request](/api/resources/alerting/subresources/policies/methods/cr
4747
4848
4949{ props .magicWord === " Magic Transit" && (
50+ <>
51+ <APIRequest
52+ path = " /accounts/{account_id}/alerting/v3/policies"
53+ method = " POST"
54+ json = { {
55+ " alert_type" : " magic_tunnel_health_check_event" ,
56+ " description" : " <DESCRIBE_POLICY>" ,
57+ " enabled" : true ,
58+ " filters" : {
59+ " slo" : [
60+ " 99.9"
61+ ]
62+ },
63+ " mechanisms" : {
64+ " email" : [
65+ {
66+ " id" : " EMAIL_ADDRESS"
67+ }
68+ ]},
69+ " name" : " <DESCRIBE_ALERT>"
70+
71+ }}
72+ />
73+
74+ ```json output
75+ {
76+ " result" : [
77+ {
78+ " id" : " f174e90a-fafe-4643-bbbc-4a0ed4fc8415" ,
79+ " name" : " <POLICY_NAME>" ,
80+ " description" : " <POLICY_DESCRIPTION>" ,
81+ " enabled" : true ,
82+ " alert_type" : " magic_tunnel_health_check_event" ,
83+ " mechanisms" : {
84+ " email" : [
85+ {
86+ " id" : " <YOUR_EMAIL>"
87+ }
88+ ]
89+ },
90+ " created" : " 2024-09-11T14:13:29.585658Z" ,
91+ " modified" : " 2024-09-11T14:13:29.585658Z" ,
92+ " conditions" : {
93+ " and" : [
94+ {
95+ " or" : [
96+ {
97+ " <=" : [
98+ {
99+ " var" : " slo"
100+ },
101+ " 99.9"
102+ ]
103+ }
104+ ]
105+ }
106+ ]
107+ },
108+ " filters" : {
109+ " slo" : [" 99.9" ]
110+ }
111+ }
112+ ],
113+ " success" : true ,
114+ " errors" : [],
115+ " messages" : []
116+ }
117+ ```
118+ </>
119+ )
120+ }
121+
122+ { props .magicWord === " Magic WAN" && (
50123 <>
51124
52125 </>
You can’t perform that action at this time.
0 commit comments