I get a KeyError when calling EventsRouter.add_event every time the call is made from a new host, project, etc - but just once! After the first call, everything works as expected.
It seems that there is a lag between the two requests made in EventsRouter.add_event. Maybe my Zenoss is configured to do something when it sees a host for the first time, or maybe it is just very slow.
Would it be possible to separate out the send request part from the retrieve event? I thought of the following doing this without breaking the api:
Return a proxy ZenossEvent that fetches itself lazily.
Create an specific Exception type to signal that we failed to fetch the new event.
I get a
KeyError
when callingEventsRouter.add_event
every time the call is made from a new host, project, etc - but just once! After the first call, everything works as expected.It seems that there is a lag between the two requests made in
EventsRouter.add_event
. Maybe my Zenoss is configured to do something when it sees a host for the first time, or maybe it is just very slow.Would it be possible to separate out the
send request
part from theretrieve event
? I thought of the following doing this without breaking the api:ZenossEvent
that fetches itself lazily.Exception
type to signal that we failed to fetch the new event.I'm willing to write a PR to help.
Thank you for a great library!