Skip to content

Commit 21dc5c6

Browse files
added api note
1 parent f2811de commit 21dc5c6

File tree

3 files changed

+17
-35
lines changed

3 files changed

+17
-35
lines changed

src/content/docs/magic-transit/how-to/configure-magic-tunnel-alerts.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,8 @@ import { APIRequest, Render, Tabs, TabItem } from "~/components";
1616
}}
1717
/>
1818

19-
## Set up Magic Tunnel health alerts
2019

21-
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
2220

23-
<Render
24-
file="magic-tunnel-health-alerts/setup-magic-tunnels-dash"
25-
product="magic-wan"
26-
params={{
27-
productName: "Magic Transit",
28-
}}
29-
/>
30-
31-
</TabItem> <TabItem label="API">
32-
33-
:::note
34-
Refer to the [documentation for Notifications](/notifications/get-started/) to learn about specific permissions you need to access the service via the API.
35-
:::
36-
37-
Send a [`POST` request](/api/resources/alerting/subresources/policies/methods/create/) to create a Magic Transit tunnel health alert. You can set tunnel health alerts with any SLO value between `0` and `99.99`.
3821

3922
<APIRequest
4023
path="/accounts/{account_id}/alerting/v3/policies"

src/content/docs/magic-wan/configuration/common-settings/configure-magic-tunnel-alerts.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,7 @@ import { APIRequest, Render, Tabs, TabItem } from "~/components";
1515
}}
1616
/>
1717

18-
## Set up Magic Tunnel health alerts
1918

20-
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
21-
22-
<Render
23-
file="magic-tunnel-health-alerts/setup-magic-tunnels-dash"
24-
params={{
25-
productName: "Magic WAN",
26-
}}
27-
/>
28-
29-
</TabItem> <TabItem label="API">
30-
31-
:::note
32-
Refer to the [documentation for Notifications](/notifications/get-started/) to learn about specific permissions you need to access the service via the API.
33-
:::
34-
35-
Send a [`POST` request](/api/resources/alerting/subresources/policies/methods/create/) to create a Magic WAN tunnel health alert. You can set tunnel health alerts with any SLO value between `0` and `99.99`.
3619

3720
<APIRequest
3821
path="/accounts/{account_id}/alerting/v3/policies"

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,20 @@ If a Magic Tunnel health alert is fired, customers can expect the following data
3434
5. Add webhooks or an email address for the person who should receive the notification, and select **Next**.
3535
6. Choose the tunnels you want to receive alerts for.
3636
7. Select the **Alert Sensitivity Level** threshold. It is predefined for _Medium_, but you can choose between _High_, _Medium_, and _Low_. If you need more than three sensitivity levels, use the API.
37-
8. Select **Create** when you are done.
37+
8. Select **Create** when you are done.
38+
39+
</TabItem> <TabItem label="API">
40+
41+
:::note
42+
Refer to the [documentation for Notifications](/notifications/get-started/) to learn about specific permissions you need to access the service via the API.
43+
:::
44+
45+
Send a [`POST` request](/api/resources/alerting/subresources/policies/methods/create/) to create a {props.productName} tunnel health alert. You can set tunnel health alerts with any SLO value between `0` and `99.99`.
46+
47+
48+
{ props.magicProduct === "Magic Transit" && (
49+
<>
50+
51+
</>
52+
)
53+
}

0 commit comments

Comments
 (0)