

def _event(self, title, text, date_happened=None, handle=None, priority=None, related_event_id=None, tags=None, host=None, device_name=None, aggregation_key=None, source_type_name=None, **kwargs):
    '\n        Post an event.\n\n        :param title: title for the new event\n        :type title: string\n\n        :param text: event message\n        :type text: string\n\n        :param date_happened: when the event occurred. if unset defaults to the current time. (POSIX timestamp)\n        :type date_happened: integer\n\n        :param handle: user to post the event as. defaults to owner of the application key used to submit.\n        :type handle: string\n\n        :param priority: priority to post the event as. ("normal" or "low", defaults to "normal")\n        :type priority: string\n\n        :param related_event_id: post event as a child of the given event\n        :type related_event_id: id\n\n        :param tags: tags to post the event with\n        :type tags: list of strings\n\n        :param host: host to post the event with\n        :type host: list of strings\n\n        :param device_name: device_name to post the event with\n        :type device_name: list of strings\n\n        :param aggregation_key: key to aggregate this event on\n        :type aggregation_key: string\n\n        :param source_type_name: type of event to post the event with\n        :type source_type_name: string\n\n        :return: new event id\n        :rtype: integer\n        '
    body = {
        'title': title,
        'text': text,
    }
    if (date_happened is not None):
        body['date_happened'] = date_happened
    if (handle is not None):
        body['handle'] = handle
    if (priority is not None):
        body['priority'] = priority
    if (related_event_id is not None):
        body['related_event_id'] = related_event_id
    if (tags is not None):
        body['tags'] = ','.join(tags)
    if (host is not None):
        body['host'] = host
    if (device_name is not None):
        body['device_name'] = device_name
    if (aggregation_key is not None):
        body['aggregation_key'] = aggregation_key
    if (source_type_name is not None):
        body['source_type_name'] = source_type_name
    body.update(kwargs)
    return title.http_request('POST', '/events', body, response_formatter=(lambda x: x['event']['id']))

dataset/ETHPy150Open DataDog/dogapi/src/dogapi/http/events.py EventApi._event/VarMisuse@246/827 `self`->`title`