Skip to content

Add CLI for show events-counters#1

Merged
zbud-msft merged 10 commits intoevents_sharedfrom
statistics
Oct 20, 2022
Merged

Add CLI for show events-counters#1
zbud-msft merged 10 commits intoevents_sharedfrom
statistics

Conversation

@renukamanavalan
Copy link
Owner

- What I did

- How I did it

- How to verify it

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

-->

@renukamanavalan renukamanavalan self-assigned this Sep 16, 2022
for key in natsorted(keys):
key_list = key.split(':')
data_dict = counters_db.get_all(counters_db.COUNTERS_DB, key)
table.append((key_list[1], data_dict["value"]))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if key_list will ever be empty but maybe add sanity check that we are not accessing empty array

Copy link
Owner Author

@renukamanavalan renukamanavalan Oct 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never.
< table name >:< keyname >

True for every redis entry

@zbud-msft zbud-msft merged commit 1092d2f into events_shared Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants