-
Notifications
You must be signed in to change notification settings - Fork 27
Feature/eckit 653 metrics list #247
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #247 +/- ##
===========================================
+ Coverage 65.86% 66.24% +0.38%
===========================================
Files 1129 1131 +2
Lines 57671 57960 +289
Branches 4365 4395 +30
===========================================
+ Hits 37985 38397 +412
+ Misses 19686 19563 -123 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Ozaq
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor change request. Please provide some documentation.
tests/runtime/test_metrics.cc
Outdated
| { | ||
| eckit::MetricsGroup grp("group"); | ||
| Metrics::set("int", 1); | ||
| eckit::MetricsGroupItem gi; | ||
| Metrics::set("int", 2); | ||
| } | ||
| expect(",\"group\":[{\"int\":1},{\"int\":2}]}", metrics); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this; Does this mean a group contains an implicit GroupItem?
| class MetricsGroup { | ||
| public: | ||
|
|
||
| MetricsGroup(const std::string& prefix); | ||
| ~MetricsGroup(); | ||
| }; | ||
|
|
||
| class MetricsGroupItem { | ||
| public: | ||
|
|
||
| MetricsGroupItem(); | ||
| ~MetricsGroupItem(); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a bit of documentation to this? Its not immediately clear how this is supposed to work
…mwf/eckit into feature/ECKIT-653-metricsList
Description
add the ability to create groups of metrics
(requested in mars-server to list all the files in which a big layout is subdivided)
Contributor Declaration
By opening this pull request, I affirm the following:
🌦️ >> Documentation << 🌦️
https://sites.ecmwf.int/docs/dev-section/eckit/pull-requests/PR-247