You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a case were i need to get the event details from a log entry...
I know get_trigger_log_entry() gets me the details but the return i am getting is just <LogEntry: contexts=[], created_at=u'2016-05-02T11:42:42Z', agent=<Container: type=u'service'>, type=u'trigger', id=u'someID', channel=<Container: type=u'email', summary=u'SomeSummary'>>
Is there a way i can completely get this info with pygerduty. The return of incidents.show has the link to
the log entry but does not give me the content of it.
Is there an attribute to get this content that I am missing.
Can some one please help me with my requirement. Thanks in advance.
The text was updated successfully, but these errors were encountered:
pygerduty is a pretty thin wrapper around the API and can do most things the API can do. If you want to get a list of LogEntry's from an incident then you could call log_entries.list() on an incident. For example:
incident = pd.incidents.list().next()
for entry in incident.log_entries.list():
print entry
I am new to pygerduty and still exploring.
I have a case were i need to get the event details from a log entry...
I know get_trigger_log_entry() gets me the details but the return i am getting is just
<LogEntry: contexts=[], created_at=u'2016-05-02T11:42:42Z', agent=<Container: type=u'service'>, type=u'trigger', id=u'someID', channel=<Container: type=u'email', summary=u'SomeSummary'>>
Is there a way i can completely get this info with pygerduty. The return of incidents.show has the link to
the log entry but does not give me the content of it.
Is there an attribute to get this content that I am missing.
Can some one please help me with my requirement. Thanks in advance.
The text was updated successfully, but these errors were encountered: