cf events: make returned item count and/or time span set able by command flags / arguments
@a-b ci sta già lavorando.
Dal 1/10/2024.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
What's the user value of this feature request?
Developers and cloud admins can easily review app events in controlled manner. They can receive the needed set of events instead of a "random" (actually the last 50, what ever is recorded in these) subset.
Currently the first "page" (defaulting to fifty items) is returned, which might span a few minutes to days, depending on app activity. This does not allow investigating any specific problem with an app, unless it by chance falls within those last 50 events.
Who is the functionality for?
Mostly app developers, but also cloud operators.
How often will this functionality be used by the user?
While developing an app more or less frequently, depending of development and testing proceedings.
Who else is affected by the change?
This issue requests adding additions flags to the cf events command. It does not change existing behavior and so should not be able to break anything nor have any other negative impact on other users.
Is your feature request related to a problem? Please describe.
I am unable to review any app relate activity (pushes, starts/stops, crashes) outside the random time span that fits into the default first 50 lines from the event log. Specifically I had no simple way to figure out when an app started to frequently crash, restart and crash again.
Describe the solution you'd like
The cf events command should have optional arguments that allow to set the number of events to return. It should also gain options to specify the time span to return.
cf events APP_NAME [ --num-events <integer> ]
return at most<interger>events from the event log, starting with the most recent event.cf events APP_NAME [ --before <time specification> ]
return the default number of events (or number given by--num-events) that happened strictly before the given time specificationcf events APP_NAME [ --after <time specification> ]
return the default number of events (or number given by--num-events) that happened strictly after the given time specification, counting from the oldest event younger than<time specification>toward newer items
The <time specification> should follow usual format: yyyy-mm-dd HH:MM:SS
If both --before and --after are given, any additional --num-events should be ignored and the events in the given time span should be returned. Specifying an --after and --before time specification where the --after time specification newer than the --before time specification should be flagged as an error.
At least the first variant can probably be implemented with minimal changes, by passing an additional ccv3.PerPage parameter in line 32 of actor/v7action/event.go b/actor/v7action/event.go
Describe alternatives you've considered
I can not think of any alternative to achieve a similar result, i.e. ability to look a specific events for an app.
Additional context
No additional context.
- Lingua principale
- Go
- Stelle
- 1.9k
- Fork
- 990
- Merge medio
- 1g 7h
- PR unite (30g)
- 8
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloudfoundry/cli
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
cloudfoundry/cli#3866 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
cloudfoundry/cli#3863 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
cloudfoundry/cli#3851 · 1 commento · 1 reazione ·
-
Add zsh shell completion Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
cloudfoundry/cli#3794 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
cloudfoundry/cli#3787 · 1 commento ·
Tutte le issue di cloudfoundry/cli
Issue simili
-
nix: vendorHash is outdated Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Bob Shell support Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
santhosh-tekuri/jsonschema#276 ·