Skip to content

Notification

Module superwise.controller.notification

This module implement notification functionality

Classes

NotificationController(client, sw) Class NotificationController - responsible for notification functionality

Args:

client: superwise client object

sw: superwise object

Ancestors (in MRO)

  • superwise.controller.base.BaseController
  • abc.ABC

Methods

create_datadog_notification(self, name: str, dd_api_key: str, dd_application_key: str) Create Datadog notification

Args:

name: notification name

dd_api_key: API key will allow us to submit metrics and events to Datadog

dd_application_key: Application keys will allows us to submit incidents to Datadog

create_email_notification(self, name: str, email: str) Args:

name: notification name

email: notification email

create_pagerduty_notification(self, name: str, token: str) Create PagerDuty notification

Args:

name: notification name

token: PagerDuty integration IGcsTokenSet to notify on new incidents

create_slack_notification(self, name: str, webhook_url: str) Create Slack webhook notification

Args:

name: notification name

webhook_url: notification email

create_webhook_notification(self, name: str, webhook_url: str) Create Webhook notification

Args:

name: notification name

webhook_url: webhook url

get(self, name: Optional[str] = None) Args:

name: notification name