trace/services/class-monitor/class_monitor/notification/base.py

9 lines
289 B
Python

from abc import ABC, abstractmethod
class Notifier(ABC):
@abstractmethod
async def send(self, title: str, text: str, idempotency_key: str = "",
images: list[dict] | None = None) -> None:
"""Deliver one notification or raise so the caller can retry."""