<gh_stars>0
class Alert:
    """The core alert data model, contains information to be passed to a manager."""

    def __init__(self, application, dependency, message, severity, metadata=None, source='localhost'):
        """Create a new Alert.

        :param message: string data to be sent to the alert manager
        :type message: str

        :param severity: healthysnake level indicating severity of alert
        :type severity: int

        :param metadata: optional dictionary of metadata to send
        :type metadata: dict
        """
        if metadata is None:
            metadata = {}

        self.application = application
        self.dependency = dependency
        self.message = message
        self.severity = severity
        self.metadata = metadata
        self.source = source

class Alert:
    """The core alert data model, contains information to be passed to a manager."""

    def __init__(self, application, dependency, message, severity, metadata=None, source='localhost'):
        """Create a new Alert.

        :param message: string data to be sent to the alert manager
        :type message: str

        :param severity: healthysnake level indicating severity of alert
        :type severity: int

        :param metadata: optional dictionary of metadata to send
        :type metadata: dict
        """
        if metadata is None:
            metadata = {}

        self.application = application
        self.dependency = dependency
        self.message = message
        self.severity = severity
        self.metadata = metadata
        self.source = source
The core alert data model, contains information to be passed to a manager. Create a new Alert.          :param message: string data to be sent to the alert manager         :type message: str          :param severity: healthysnake level indicating severity of alert         :type severity: int          :param metadata: optional dictionary of metadata to send         :type metadata: dict