(title: str, text: str, alert_type: str = ALERT_INFO,
                         tags: Dict[str, str] = None, aggregation_key: str = None)
Send an event record to the monitoring provider.

    Currently only implemented by the Datadog provider.

    :param title: Title of the event
    :param text: Event body
    :param alert_type: Event type. One of 'success', 'info', 'warning', 'error'
    :param tags: Event tags
    :param aggregation_key: Key to use to group multiple events
Send an event record to the monitoring provider.
Send an event record to the monitoring provider .
def create_metrics_event(title: str, text: str, alert_type: str = ALERT_INFO,
                         tags: Dict[str, str] = None, aggregation_key: str = None):
    """
    Send an event record to the monitoring provider.

    Currently only implemented by the Datadog provider.

    :param title: Title of the event
    :param text: Event body
    :param alert_type: Event type. One of 'success', 'info', 'warning', 'error'
    :param tags: Event tags
    :param aggregation_key: Key to use to group multiple events
    """
    tags = COMMON_TAGS.update(tags or {})
    try:
        _get_metrics_provider().create_event(title, text, tags, alert_type, aggregation_key)
    except Exception as e:
        metrics_logger.exception('Error creating metrics event', e)
def create_metrics_event ( title : str , text : str , alert_type : str = ALERT_INFO , tags : Dict [ str , str ] = None , aggregation_key : str = None ) : tags = COMMON_TAGS . update ( tags or { } ) try : _get_metrics_provider ( ) . create_event ( title , text , tags , alert_type , aggregation_key ) except Exception as e : metrics_logger . exception ( 'Error creating metrics event' , e )