Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Filter events on server side, in order to decrease load on Marathon #541

Merged
merged 2 commits into from
Jan 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion marathon_lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ def tasks(self):
return self.api_req('GET', ['tasks'])["tasks"]

def get_event_stream(self):
url = self.host + "/v2/events"
url = self.host + "/v2/events?plan-format=light&" + \
"event_type=status_update_event&" + \
"event_type=health_status_changed_event&" + \
"event_type=api_post_event"
return CurlHttpEventStream(url, self.__auth, self.__verify)

def iter_events(self, stream):
Expand Down