

def stream(self, start, end, priority=None, sources=None, tags=None):
    '\n        Get the events that occurred between the *start* and *end* POSIX timestamps,\n        optional filtered by *priority* ("low" or "normal"), *sources* and\n        *tags*.\n\n        See the `event API documentation <http://api.datadoghq.com/events>`_ for the\n        event data format.\n\n        >>> dog_http_api.stream(1313769783, 131378000, sources=["nagios"])\n        { "events": [\n            {\n              "id": "event-1",\n              "title": "my first event",\n              "priority": "normal",\n              "handle": "alq@datadoghq.com",\n              "date_happened": 1313769783,\n              "source": "nagios",\n              "alert_type": "ok",\n              "is_aggregate": true,\n              "children": [\n                {\n                  "id": "event-100",\n                  "date_happened": 123459833,\n                  "alert_type": "error"\n                }, ...\n              ]\n            }, ...\n          ]\n        }\n        '
    params = {
        'start': int(start),
        'end': int(end),
    }
    if priority:
        params['priority'] = priority
    if sources:
        params['sources'] = ','.join(params)
    if tags:
        params['tags'] = ','.join(tags)
    return self.http_request('GET', '/events', response_formatter=(lambda x: x['events']), **params)

dataset/ETHPy150Open DataDog/dogapi/src/dogapi/http/events.py EventApi.stream/VarMisuse@77/398 `sources`->`params`