Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add list option in Measurement Client generator #904

Open
MounikaBattu17 opened this issue Sep 20, 2024 · 0 comments
Open

Add list option in Measurement Client generator #904

MounikaBattu17 opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request triage New issue that needs to be reviewed

Comments

@MounikaBattu17
Copy link
Contributor

MounikaBattu17 commented Sep 20, 2024

Problem to Solve

It would be beneficial to view the list of registered measurements in the Measurement Plugin Client Generator. Please refer to this thread for more details.

Proposed Solution

  • Add a new option to create_client command.

    @optgroup.option(
        "-l",
        "--list-all-measurements",
        is_flag=True,
        help="Lists all registered measurements.",
    )
    
  • Use get_all_registered_measurement_info in _support.py to get the registered measurements from the Discovery Service.

    _, measurement_display_names = get_all_registered_measurement_info(discovery_client)
    print("\nList of registered measurements:")
    for index, display_name in enumerate(measurement_display_names, start=1):
          print(f"{index}. {display_name}")
    

AB#2863168

@MounikaBattu17 MounikaBattu17 added enhancement New feature or request triage New issue that needs to be reviewed labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage New issue that needs to be reviewed
Projects
None yet
Development

No branches or pull requests

1 participant