Skip to content

Commit c6bc361

Browse files
added code
1 parent 4ee71b5 commit c6bc361

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/content/partials/magic-wan/magic-tunnel-health-alerts/magic-tunnel-health-alerts.mdx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -123,30 +123,29 @@ Send a [`POST` request](/api/resources/alerting/subresources/policies/methods/cr
123123

124124
{ props.magicWord === "Magic WAN" && (
125125
<>
126-
<APIRequest
127-
path="/accounts/{account_id}/alerting/v3/policies"
128-
method="POST"
129-
json={{
130-
"alert_type": "magic_wan_tunnel_health",
131-
"description": "<DESCRIBE_POLICY>",
132-
"enabled": true,
133-
"filters": {
134-
"slo": [
135-
"99.9"
136-
]
137-
},
138-
"mechanisms": {
139-
"email": [
140-
{
141-
"id": "EMAIL_ADDRESS"
142-
}
143-
]},
144-
"name": "<DESCRIBE_ALERT>"
145-
}}
146-
/>
147-
148-
<pre class="json output">
149-
{`
126+
<APIRequest
127+
path="/accounts/{account_id}/alerting/v3/policies"
128+
method="POST"
129+
json={{
130+
"alert_type": "magic_wan_tunnel_health",
131+
"description": "<DESCRIBE_POLICY>",
132+
"enabled": true,
133+
"filters": {
134+
"slo": [
135+
"99.9"
136+
]
137+
},
138+
"mechanisms": {
139+
"email": [
140+
{
141+
"id": "EMAIL_ADDRESS"
142+
}
143+
]},
144+
"name": "<DESCRIBE_ALERT>"
145+
}}
146+
/>
147+
148+
<Code lang="json" code={`
150149
{
151150
"result": [
152151
{
@@ -189,8 +188,9 @@ Send a [`POST` request](/api/resources/alerting/subresources/policies/methods/cr
189188
"errors": [],
190189
"messages": []
191190
}
192-
`}
193-
</pre>
191+
`} />
192+
193+
194194
</>
195195
)
196196
}

0 commit comments

Comments
 (0)