diff options
author | eportnov <eportnov@ibs.ru> | 2022-09-09 10:36:18 +0300 |
---|---|---|
committer | eportnov <eportnov@ibs.ru> | 2022-09-09 10:36:18 +0300 |
commit | c2b58395cbb4fd0fec20e41df53e399538d02471 (patch) | |
tree | 29b6e5191602be251ff8a04e43148d6ac77c0eb1 /meta-ibs/meta-cp2-5422 | |
parent | 7ea2ef8233b21c8864e51db2c0532ef2fb5aca89 (diff) | |
download | openbmc-c2b58395cbb4fd0fec20e41df53e399538d02471.tar.xz |
correct telemetry's fields
Diffstat (limited to 'meta-ibs/meta-cp2-5422')
-rw-r--r-- | meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0011-configure-telemetry.patch | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0011-configure-telemetry.patch b/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0011-configure-telemetry.patch index 97bc6d6129..d77457ce7a 100644 --- a/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0011-configure-telemetry.patch +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/interfaces/bmcweb/0011-configure-telemetry.patch @@ -69,10 +69,11 @@ index 18830f13..b3f5721e 100644 { metricValues.push_back({ - {"MetricId", id}, - {"MetricProperty", metadata}, +- {"MetricProperty", metadata}, - {"MetricValue", std::to_string(sensorValue)}, - {"Timestamp", redfish::time_utils::getDateTimeUintMs(timestamp)}, -+ {"MetricValue", GetCroppedValue(sensorValue)}, ++ {"Sensor", metadata}, ++ {"Value", GetCroppedValue(sensorValue)}, + {"Timestamp", GetCroppedTimeStamp(timestamp)}, }); } |