Built-in Protections

Check No PagerDuty Alerts

This protection ensures that no active PagerDuty alerts are triggered for the provided service.

Name: check-no-pagerduty-alerts

Parameters

  • apiKey - a PagerDuty API key
  • serviceID - PagerDuty ServiceID of the service you want to validate
application:
  name: my-application
  releaseChannels:
    - name: my-release-channel
      protections:
        - ref:
            name: check-no-pagerduty-alerts
            parameters:
            - name: apiKey
              # this secret can be created with `pvnctl secrets`
              secret:
                key: pagerdutyApiKey
                version: pagerdutyApiKey-0
            - name: serviceID
              string: '<service-id>'

Check No Datadog Alerts

This protection ensures no active Datadog monitors are triggered that match the Datadog tags provided in TagList.

Name: check-no-pagerduty-alerts

Parameters

  • apiKey - a Datadog API key
  • appKey - a Datadog app key with the monitors_read scope
  • tagList - a space-separated list of Datadog tags to filter the monitors on
application:
  name: my-application
  releaseChannels:
    - name: my-release-channel
      protections:
        - ref:
            name: check-no-datadog-alerts
            parameters:
            - name: apiKey
              # this secret can be created with `pvnctl secrets`
              secret:
                key: datadogApiKey
                version: datadogApiKey-0
            - name: appKey
              secret:
                key: datadogAppKey
                version: datadogAppKey-0
           - name: tagList
             string: "env:prod"