[doc] events API limit,before, after options not documented
Bug #1604901 reported by
Jason Hobbs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Wishlist
|
Andres Rodriguez | ||
2.0 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After discussion, the way to address this bug is to provide the ability to obtain events based on date/time. This would allow for better debugging.
Original bug report
-------
I'm trying to look up relatively recent events for one of my nodes, but the event log cli doesn't go that for back. It only shows 100 entries and it doesn't provide any mechanism for viewing ones before that.
Here's example output:
http://
roaksoax pointed out to me I can use limit, before, and after to retrieve the logs using paging. The options are not documented in the cli.
Related branches
lp://staging/~andreserl/maas/lp1604901
- Mike Pontillo (community): Approve
-
Diff: 25 lines (+7/-1)1 file modifiedsrc/maasserver/api/events.py (+7/-1)
lp://staging/~andreserl/maas/packaging_rc3
- Andres Rodriguez (community): Approve
-
Diff: 90 lines (+54/-6)2 files modifieddebian/changelog (+44/-0)
debian/maas-region-controller.postinst (+10/-6)
summary: |
- No way to retrieve complete event log through the cli + start, before, and after options are not documented for the event log + cli |
description: | updated |
description: | updated |
summary: |
- Provide ability to retrieve events based on (range) of date/time + [doc] events API limit,before, after options not documented |
Changed in maas: | |
assignee: | nobody → Andres Rodriguez (andreserl) |
To post a comment you must log in.
If you want to learn how to use the events API to obtain events in different ranges, you can use the following:
http:// pastebin. ubuntu. com/20205479/