Skip to content

Commit 4de89d2

Browse files
Update common dependency to v0.8.0, use v1alpha8 API
1 parent 46b9393 commit 4de89d2

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

proto/frequenz/api/reporting/v1/reporting.proto

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ package frequenz.api.reporting.v1;
1414

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

17-
import "frequenz/api/common/v1/metrics/metric_sample.proto";
18-
import "frequenz/api/common/v1/microgrid/components/components.proto";
19-
import "frequenz/api/common/v1/microgrid/microgrid.proto";
20-
import "frequenz/api/common/v1/microgrid/sensors/sensors.proto";
17+
import "frequenz/api/common/v1alpha8/metrics/metrics.proto";
18+
import "frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto";
19+
import "frequenz/api/common/v1alpha8/microgrid/microgrid.proto";
20+
import "frequenz/api/common/v1alpha8/microgrid/sensors/sensors.proto";
2121

2222
// The Reporting service provides services for real-time and historical metrics monitoring
2323
// of various microgrid components like Batteries, EV Chargers, and Inverters.
@@ -132,7 +132,7 @@ message AggregationConfig {
132132
// !!! caution
133133
// Ensure the chosen metric is supported by all relevant microgrid components.
134134
// Failure to meet these conditions might results in an aggregation error.
135-
frequenz.api.common.v1.metrics.Metric metric = 2;
135+
frequenz.api.common.v1alpha8.metrics.Metric metric = 2;
136136

137137
// The formula used for aggregating the component metric for this microgrid.
138138
//
@@ -169,7 +169,7 @@ message SimpleAggregatedMetricValue {
169169

170170
// The aggregated value of the metric.
171171
// float value = 2;
172-
frequenz.api.common.v1.metrics.SimpleMetricValue sample = 2;
172+
frequenz.api.common.v1alpha8.metrics.SimpleMetricValue sample = 2;
173173
}
174174

175175
// Message defining a metric to receive data for, optionally filtering by connections.
@@ -205,7 +205,7 @@ message MetricConnections {
205205
//
206206
// If `connections` are specified, only data for this metric from those connections will be returned.
207207
// If no `connections` are specified, data from all connections for this metric will be returned.
208-
frequenz.api.common.v1.metrics.Metric metric = 1;
208+
frequenz.api.common.v1alpha8.metrics.Metric metric = 1;
209209

210210
// An optional list of connections to filter the data for the specified metric.
211211
//
@@ -279,7 +279,7 @@ message ReceiveMicrogridComponentsDataStreamRequest {
279279
// !!! note
280280
// Each entry in this repeated field associates a microgrid ID with its respective
281281
// component IDs. At least one such association must be provided for a valid request.
282-
repeated frequenz.api.common.v1.microgrid.MicrogridComponentIDs microgrid_components = 1;
282+
repeated frequenz.api.common.v1alpha8.microgrid.MicrogridElectricalComponentIDs microgrid_components = 1;
283283

284284
// List of metrics to receive data for, each possibly with connection filters.
285285
//
@@ -369,7 +369,7 @@ message ReceiveMicrogridComponentsDataStreamResponse {
369369
uint64 microgrid_id = 1;
370370

371371
// List of components within this microgrid, each with its associated data samples.
372-
repeated frequenz.api.common.v1.microgrid.components.ComponentData components = 2;
372+
repeated frequenz.api.common.v1alpha8.microgrid.electrical_components.ElectricalComponentTelemetry components = 2;
373373
}
374374

375375
// Message defining the request format for streaming aggregated historical metrics.
@@ -472,7 +472,7 @@ message ReceiveMicrogridSensorsDataStreamRequest {
472472
// !!! note
473473
// Each entry in this repeated field associates a microgrid ID with its respective
474474
// sensor IDs. At least one such association must be provided for a valid request.
475-
repeated frequenz.api.common.v1.microgrid.MicrogridSensorIDs microgrid_sensors = 1;
475+
repeated frequenz.api.common.v1alpha8.microgrid.MicrogridSensorIDs microgrid_sensors = 1;
476476

477477
// List of metrics to receive data for, each possibly with connection filters.
478478
//
@@ -504,7 +504,7 @@ message ReceiveMicrogridSensorsDataStreamResponse {
504504
uint64 microgrid_id = 1;
505505

506506
// List of sensors within this microgrid, each with its associated data samples.
507-
repeated frequenz.api.common.v1.microgrid.sensors.SensorData sensors = 2;
507+
repeated frequenz.api.common.v1alpha8.microgrid.sensors.SensorTelemetry sensors = 2;
508508
}
509509

510510
// Message defining the request format for streaming aggregated historical metrics.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ classifiers = [
4444
]
4545
requires-python = ">= 3.11, < 4"
4646
dependencies = [
47-
"frequenz-api-common >= 0.6.5, < 0.9.0",
47+
"frequenz-api-common >= 0.8.0, < 0.9.0",
4848
# We can't widen beyond the current value unless we bump the minimum
4949
# requirements too because of protobuf cross-version runtime guarantees:
5050
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major

submodules/frequenz-api-common

Submodule frequenz-api-common updated 78 files

0 commit comments

Comments
 (0)