oncall-engine/engine/apps/mattermost/events/event_handler.py
Matias Bordese dcae98b02a
feat: add support for mattermost chatops (#5321)
Related to https://github.com/grafana/oncall/issues/96

---------

Co-authored-by: Ravishankar <ravishankar.gnanaprakasam@gmail.com>
2025-04-21 14:23:37 -03:00

18 lines
442 B
Python

from abc import ABC, abstractmethod
from apps.mattermost.events.types import MattermostEvent
from apps.user_management.models import User
class MattermostEventHandler(ABC):
def __init__(self, event: MattermostEvent, user: User):
self.event: MattermostEvent = event
self.user: User = user
@abstractmethod
def is_match(self) -> bool:
pass
@abstractmethod
def process(self) -> None:
pass