Skip to content

Add list option in Measurement Client generator #904

Description

@MounikaBattu17

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions