Skip to content

Support requesting states without metrics #50

@cwasicki

Description

@cwasicki

What's needed?

Currently we need to request at least one metric and receiving states is an include option. This is in line with the current specifications as documented here

// At least one metric must be specified. Failure to do so will result in an empty response.
.

This means that users cannot request states only without any metric or only request states with a dummy metric that will be discarded. It would be good to have the option to request states without requiring to also request metrics.

Proposed solution

At the moment the service accepts requests without metrics and include option for states but doesn't respond with any data (as expected). The simplest option could be to send a response including only the states in this case.

There are other options that require changing the interface, which could improve clarity. FYI @thomas-nicolai-frequenz

Use cases

Users that want to request only states, e.g. for monitoring purpose.

Alternatives and workarounds

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:❓We need to figure out which part is affectedpriority:❓We need to figure out how soon this should be addressedtype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions