Skip to content

Conversation

@micaebe
Copy link

@micaebe micaebe commented Jul 8, 2025

Adds support to read AggregatedMetricValue (besides SimpleMetricValue) inside GenericDataBatch.

@github-actions github-actions bot added the part:docs Affects the documentation label Jul 8, 2025
Copy link
Contributor

@cwasicki cwasicki left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the fix! LGTM, small comment to avoid the CI failure. Also needs signing of the commits.

elif sample.value.HasField("aggregated_metric"):
value = sample.value.aggregated_metric.avg_value
else:
value = math.nan
Copy link
Contributor

Choose a reason for hiding this comment

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

This part could be moved into a separate method to avoid the CI failure. In fact this whole class is on the list for refactoring anyway, and this would be a reasonable change.

@flora-hofmann-frequenz
Copy link
Collaborator

Addressed in PR #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants