Skip to content

Commit 3840e36

Browse files
Rename metric_sample.proto to metrics.proto
This change renames the `metric_sample.proto` file to `metrics.proto` to better reflect its content. The file contains multiple metric-related messages, including `SimpleMetricValue` and `MetricSample`, which are used to represent metric values and samples, respectively. The new name `metrics.proto` is more descriptive and aligns with the purpose of the file. Signed-off-by: Tiyash Basu <[email protected]>
1 parent 4dfe689 commit 3840e36

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Added new message definitions for streaming events (Deleted, Created, Updated)
2525
- Renamed `ComponentCatgoryMetadataVariant` to `ElectricalComponentCategorySpecificInfo`.
2626
- Renamed field `ElectricalComponent.category_type` to `ElectricalComponent.category_specific_info` to better reflect its purpose.
27+
- Renamed `metric_sample.proto` to `metrics.proto` to better reflect its content.
2728

2829
## Bug Fixes
2930

proto/frequenz/api/common/v1/metrics/metric_sample.proto renamed to proto/frequenz/api/common/v1/metrics/metrics.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ message SimpleMetricValue {
2222
}
2323

2424
// Encapsulates derived statistical summaries of a single metric.
25-
//
25+
c//
2626
// The message allows for the reporting of statistical summaries — minimum,
2727
// maximum, and average values - as well as the complete list of individual
2828
// samples if available.

proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ syntax = "proto3";
1111
package frequenz.api.common.v1.microgrid.electrical_components;
1212

1313
import "frequenz/api/common/v1/metrics/bounds.proto";
14-
import "frequenz/api/common/v1/metrics/metric_sample.proto";
14+
import "frequenz/api/common/v1/metrics/metrics.proto";
1515
import "frequenz/api/common/v1/microgrid/electrical_components/battery.proto";
1616
import
1717
"frequenz/api/common/v1/microgrid/electrical_components/ev_charger.proto";

proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ syntax = "proto3";
1010

1111
package frequenz.api.common.v1.microgrid.sensors;
1212

13-
import "frequenz/api/common/v1/metrics/metric_sample.proto";
13+
import "frequenz/api/common/v1/metrics/metrics.proto";
1414
import "frequenz/api/common/v1/microgrid/lifetime.proto";
1515

1616
import "google/protobuf/timestamp.proto";

0 commit comments

Comments
 (0)