-
Notifications
You must be signed in to change notification settings - Fork 8
Support requesting states without metrics #50
Copy link
Copy link
Open
Labels
part:❓We need to figure out which part is affectedWe need to figure out which part is affectedpriority:❓We need to figure out how soon this should be addressedWe need to figure out how soon this should be addressedtype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users
Milestone
Metadata
Metadata
Assignees
Labels
part:❓We need to figure out which part is affectedWe need to figure out which part is affectedpriority:❓We need to figure out how soon this should be addressedWe need to figure out how soon this should be addressedtype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users
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
frequenz-api-reporting/proto/frequenz/api/reporting/v1/reporting.proto
Line 348 in 4b476d7
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