def send_alert(self): from sentry.integrations.slack.utils import send_incident_alert_notification # TODO: We should include more information about the trigger/severity etc. send_incident_alert_notification(self.action.integration, self.incident, self.action.target_identifier)
def send_alert(self, metric_value, method): from sentry.rules.actions.notify_event_service import send_incident_alert_notification send_incident_alert_notification(self.action, self.incident, metric_value, method)
def send_alert(self, metric_value, method): from sentry.integrations.pagerduty.utils import send_incident_alert_notification send_incident_alert_notification(self.action, self.incident, metric_value, method)
def send_alert(self, metric_value): from sentry.integrations.msteams.utils import send_incident_alert_notification send_incident_alert_notification(self.action, self.incident, metric_value)
def send_alert(self, metric_value: int | float, new_status: IncidentStatus): from sentry.rules.actions.notify_event_service import send_incident_alert_notification send_incident_alert_notification(self.action, self.incident, new_status, metric_value)
def send_alert(self, metric_value: int | float, new_status: IncidentStatus): from sentry.integrations.pagerduty.utils import send_incident_alert_notification send_incident_alert_notification(self.action, self.incident, metric_value, new_status)