API.create_pager_duty_alert_webhook#
- API.create_pager_duty_alert_webhook(name: str, https_url: str, http_method: str, event_routing_key: str, description: str = '', http_headers: Optional[Dict[str, str]] = None, notification_levels: Optional[List[str]] = None, event_group: str = 'deepchecks', event_class: str = '', api_access_key: Optional[str] = None, raise_on_status: bool = True) Response #
Create alert webhook.
- Parameters
- namestr
The name of the webhook
- https_urlstr
The url of the webhook
- http_methodstr
The http method of the webhook expected: GET, POST
- event_routing_keystr
The event routing key of the webhook in PagerDuty
- descriptionstr, optional
The description of the webhook
- http_headersdict, optional
The http headers of the webhook
- notification_levelslist, optional
The notification levels of the webhook
- event_groupstr
The event group of the webhook in PagerDuty
- event_classstr
The event class of the webhook in PagerDuty
- raise_on_statusbool
Whether to raise error on bad status code or not
- api_access_keystr, optional
The api access key of PagerDuty REMARK: this might not be needed for webhooks at all, and we might remove it in the future
- Returns
- ——-
- httpx.Response
The response from the server