'Posts an event to datadog (processing finished, potentially alerts, other issues)
Think about this as a means to maintain persistence of alerts, rather than alerting
itself.
:param title: The title of the event
:type title: string
:param text: The body of the event (more information)
:type text: string
:param tags: List of string tags to apply to the event
:type tags: list
:param alert_type: The alert type for the event, one of
["error", "warning", "info", "success"]
:type alert_type: string
:param aggregation_key: Key that can be used to aggregate this event in a stream
:type aggregation_key: string'

def post_event(self, title, text, tags=None, alert_type=None, aggregation_key=None):

    response = api.Event.create(title=title, text=text, host=self.host, tags=tags, alert_type=alert_type, aggregation_key=aggregation_key, source_type_name=self.source_type_name)
    self.validate_response(response)
    return response
