Make it possible to loop creation of metric&event definitions
What does this MR do and why?
Related to #461637 (closed)
In internal events cli, make it possible to create an event and a metric after creating an event or a metric without quitting the cli.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
-
Run the cli:
ruby scripts/internal_events/cli.rb
-
Go through the new scenarios:
- creating a metric and then an event
- creating a metric and then a metric
- creating an event and then an event
-
For each of these scenarios, make sure that appropriate files [metric/event definition] have been created.
Edited by Michał Wielich