blob: e8edb0dcbd40c778b5669087fe73dc982da48111 [file] [log] [blame]
edition = "2023";
package milotic_tlbmc;
import "entity_common_config.proto";
import "i2c_common_config.proto";
import "reading_range_config.proto";
import "threshold_config.proto";
enum PsuSensorType {
PSU_SENSOR_TYPE_UNKNOWN = 0;
PSU_SENSOR_TYPE_ADM1266 = 1;
PSU_SENSOR_TYPE_ADM1272 = 2;
}
// Config for a PSU sensor device.
// A single device config might generate multiple sensors.
message PsuSensorConfig {
PsuSensorType type = 1;
I2cCommonConfig i2c_common_config = 2;
// Specifies the labels of the sensor readings in sysfs (key), and names
// of the sensor readings when they are exposed (value).
map<string, string> label_to_name = 3;
// The thresholds that we want to monitor for each sensor.
map<string, ThresholdConfigs> label_to_thresholds = 4;
// Specifies the reading range of each of the sensors.
map<string, ReadingRangeConfigs> label_to_reading_ranges = 5;
EntityCommonConfig entity_common_config = 6;
string name = 7;
}