Skip to main content
Solved

Use Service Dependency to Disable Alerts

  • October 24, 2024
  • 1 reply
  • 68 views

Forum|alt.badge.img

We have a use case that looks to not be supported by PagerDuty, wondering if anyone has a way to implement this scenario.

Our pipelines are dependent on 3rd party APIs.    When there is schedule maintenance of an API, we would like to be able to disable all alerts related to pipelines that are dependent on that API.     

I have looked into setting up the API as a dependent service, but it doesn’t look like I can do anything with this linkage to suppress alerts.   

Best answer by mwalls

Hi @bschiff

 

There’s nothing directly that will create a maintenance window for you based on an event or notification. You can set up your own automation though to create maintenance windows on your dependent services via the API when your vendor informs you of their planned maintenance. 

 

https://developer.pagerduty.com/api-reference/a450bc9b9ea6f-create-a-maintenance-window

 

Here’s an example in Python: https://github.com/lnxchk/pdgarage-samples/blob/main/python/create_mws.py

 

HTH, 

--mandi

1 reply

mwalls
Forum|alt.badge.img
  • Community Manager
  • Answer
  • October 24, 2024

Hi @bschiff

 

There’s nothing directly that will create a maintenance window for you based on an event or notification. You can set up your own automation though to create maintenance windows on your dependent services via the API when your vendor informs you of their planned maintenance. 

 

https://developer.pagerduty.com/api-reference/a450bc9b9ea6f-create-a-maintenance-window

 

Here’s an example in Python: https://github.com/lnxchk/pdgarage-samples/blob/main/python/create_mws.py

 

HTH, 

--mandi