Skip to content

Commit 8c0e873

Browse files
Remove unused enum SensorMetric
Signed-off-by: Tiyash Basu <[email protected]> # Conflicts: # proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto # Conflicts: # proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto
1 parent 2a0ca00 commit 8c0e873

File tree

2 files changed

+1
-52
lines changed

2 files changed

+1
-52
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
- Renamed `sampled_at` timestamps for state snapshots to `origin_time`.
3737
- Renamed `sampled_at` timestamps for metric samples to `sample_time`.
3838
- Remove `SensorMetricSample` in favour of using `MetricSample` for sensors.
39+
- Remove `SensorMetric` enum, since it was unused and redundant.
3940

4041
## Bug Fixes
4142

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

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -42,46 +42,6 @@ enum SensorCategory {
4242
SENSOR_CATEGORY_GENERAL = 7;
4343
}
4444

45-
// Enumrated sensor metrics.
46-
enum SensorMetric {
47-
// Unspecified.
48-
SENSOR_METRIC_UNSPECIFIED = 0;
49-
50-
// Temperature.
51-
// In Celsius (°C).
52-
SENSOR_METRIC_TEMPERATURE = 1;
53-
54-
// Humidity
55-
// In percentage (%).
56-
SENSOR_METRIC_HUMIDITY = 2;
57-
58-
// Pressure
59-
// In Pascal (Pa).
60-
SENSOR_METRIC_PRESSURE = 3;
61-
62-
// Irradiance / Radiation flux
63-
// In watts per square meter (W / m^2).
64-
SENSOR_METRIC_IRRADIANCE = 4;
65-
66-
// Velocity
67-
// In meters per second (m / s).
68-
SENSOR_METRIC_VELOCITY = 5;
69-
70-
// Acceleration.
71-
// In meters per second per second (m / s^2)
72-
SENSOR_METRIC_ACCELERATION = 6;
73-
74-
// Metric to represent angles, for metrics like direction.
75-
// In angles with respect to the (magnetic) North (°).
76-
SENSOR_METRIC_ANGLE = 7;
77-
78-
// Dew point.
79-
// The temperature at which the air becomes saturated with water vapor.
80-
//
81-
// In Celsius (°C).
82-
SENSOR_METRIC_DEW_POINT = 8;
83-
}
84-
8545
// Enum to represent the various states that a sensor can be in.
8646
// This enum is unified across all sensor categories for consistency.
8747
enum SensorStateCode {
@@ -207,18 +167,6 @@ message SensorStateSnapshot {
207167
repeated SensorDiagnostic errors = 4;
208168
}
209169

210-
// Representation of a sampled sensor metric along with its value.
211-
message SensorMetricSample {
212-
// The UTC timestamp of when the metric was sampled.
213-
google.protobuf.Timestamp sample_time = 1;
214-
215-
// The metric that was sampled.
216-
frequenz.api.common.v1.metrics.Metric metric = 2;
217-
218-
// The value of the sampled metric.
219-
frequenz.api.common.v1.metrics.MetricValueVariant value = 3;
220-
}
221-
222170
// SensorData message aggregates multiple metrics, operational states, and
223171
// errors, related to a specific microgrid sensor.
224172
//

0 commit comments

Comments
 (0)