9f9ff90a | 05-Mar-2021 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Revert "created AddReportFutureVersion dbus method"
This reverts commit 753e4b3c843dd5d1068949c4106a6389f0e0ffbc.
Reason for revert: Breaks bmcweb, same approach is needed for changed properties
C
Revert "created AddReportFutureVersion dbus method"
This reverts commit 753e4b3c843dd5d1068949c4106a6389f0e0ffbc.
Reason for revert: Breaks bmcweb, same approach is needed for changed properties
Change-Id: Id868159df916fcf0bdd7fc5062f8c51187fcc7e2
show more ...
|
753e4b3c | 11-Feb-2021 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
created AddReportFutureVersion dbus method
New method will support CollectionTimeScope, CollectionDuration
In order to make not breaking interface changes bmcweb will switch to AddReportFutureVersi
created AddReportFutureVersion dbus method
New method will support CollectionTimeScope, CollectionDuration
In order to make not breaking interface changes bmcweb will switch to AddReportFutureVersion, then AddReport will be changed to match AddReportFutureVersion, then redfish will switch back to use AddReport, then AddReportFutureVersion will be removed.
Change-Id: I9cc906cc1fa7cdf27be7e433390c516f6bae3c50 Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
9f145912 | 11-Feb-2021 |
Wludzik, Jozef <jozef.wludzik@intel.com> |
Match DBus Trigger with phosphor-dbus-interfaces
Matched Trigger DBus interface to the one defined in phosphor-dbus-interfaces repository. Changed enum (int) type to string to reflect enum type defi
Match DBus Trigger with phosphor-dbus-interfaces
Matched Trigger DBus interface to the one defined in phosphor-dbus-interfaces repository. Changed enum (int) type to string to reflect enum type defined in Trigger.yaml. Fixed style in boost_build_1.74.0.sh script.
Tested: - Passed unit tests - Verified manually Trigger DBus object in witherspoon image on QEMU
Change-Id: I87175fc285afd182d1383da5879f89233b9de6a0 Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
show more ...
|
e8fc5751 | 05-Feb-2021 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Changed dbus add report interface
- metric parameters now take single sensor instead of list - added interface support for new operation types
Tested: - All telemetry tests are passing.
Signed-off
Changed dbus add report interface
- metric parameters now take single sensor instead of list - added interface support for new operation types
Tested: - All telemetry tests are passing.
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com> Change-Id: Id3a41c48e81a287e7d205ae1c747daa36d4cdb29
show more ...
|
d960e1f3 | 08-Jan-2021 |
Wludzik, Jozef <jozef.wludzik@intel.com> |
Implement Trigger Actions
Now action is triggered when threshold is crossed. There are 3 actions: write message to journal, write message to journal as Redfish Event and update an existing Report. T
Implement Trigger Actions
Now action is triggered when threshold is crossed. There are 3 actions: write message to journal, write message to journal as Redfish Event and update an existing Report. To update an existing Report updateReading method is changed to public. Added UpdateReport to ReportManager, now object is able to update readings of any report using report name.
Tested: - Unit tests passed - Verified that logs are propagated to journal when threshold is crossed
Change-Id: Iebca7c8b9ab9b50b4c401877ccf8c2f01f1e6f36 Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
show more ...
|
1477fe6a | 02-Jan-2021 |
Wludzik, Jozef <jozef.wludzik@intel.com> |
Implement NumericThreshold for Trigger
Implemented NumericThreshold for Trigger that allows to set expected threshold value for collection of sensors and monitors if this value is crossed. Implement
Implement NumericThreshold for Trigger
Implemented NumericThreshold for Trigger that allows to set expected threshold value for collection of sensors and monitors if this value is crossed. Implemented detection of direction when threshold value is crossed. Added initial interface that is used to commit an action when threshold value is crossed. Moved Sensor Cache from Report Factory to Telemetry class, now Sensor Cache is shared between Report Factory and Trigger Factory. Moved fetching sensor from Dbus to seperate header to have single implementation for factories. Disabled tests that uses boost coroutine because of false positive that is catched by address sanitizer.
Tested: - Passed unit tests - Built in yocto envrionment with success - Telemetry service started successfully in OpenBMC
Change-Id: I1ff7ab96174a27576786f0b9a71554fe1eeff436 Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
show more ...
|
76833cb5 | 21-Dec-2020 |
Wludzik, Jozef <jozef.wludzik@intel.com> |
Add TriggerManager and Trigger objects
Implemented initial version of Trigger and TriggerManager DBus interfaces. Now DBus user is able to add new Trigger and delete it. There is no support for othe
Add TriggerManager and Trigger objects
Implemented initial version of Trigger and TriggerManager DBus interfaces. Now DBus user is able to add new Trigger and delete it. There is no support for other functionality added.
Tested: - Built using yocto dependencies with success - Unit tests passed - Verified manually if Trigger and TriggerManager works as expected
Change-Id: Ie68463526ecccc3be67cc7bfaaf9a9aa7326dee6 Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
show more ...
|
d2238194 | 02-Dec-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Review fixes for 'Created metric class'
- Changed metric to_json to dumpConfiguration returning LabeledTuple - LabeledTuple can be created and assigned directly to json - LabeledTuple can be readed
Review fixes for 'Created metric class'
- Changed metric to_json to dumpConfiguration returning LabeledTuple - LabeledTuple can be created and assigned directly to json - LabeledTuple can be readed from json using json.get<LabeledTuple> - Added PrintTo for LabeledMetricParams, LabeledSensorParams - Added helper method expectMake to ReportFactoryMock - sensorPaths are serialized to tuple<service, path> instead of single field with service and path separated via ':' - Changed configuration version from 1 to 2
Change-Id: I7c45fb584687172f88fd549a93329264793b0b8e Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
6ccfcbf5 | 04-Nov-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Created metric class
Metric collects updates from sensor. Report displays metric readings depending on reportingType.
Tested: - Added new units tests for Metric class - All other unit tests are
Created metric class
Metric collects updates from sensor. Report displays metric readings depending on reportingType.
Tested: - Added new units tests for Metric class - All other unit tests are passing
Change-Id: I19f4831fab163a4f9540cef7bb23e903ae90fddf Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
f32f6fef | 30-Oct-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Added Update method to report on dbus
- Update method, updates timestamp and readings
Tested: - Added new unit tests covering update method - All existing unit tests are passing
Change-Id: I6b
Added Update method to report on dbus
- Update method, updates timestamp and readings
Tested: - Added new unit tests covering update method - All existing unit tests are passing
Change-Id: I6b3829126d9060dbaf436cbf8e6917294dc03134 Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
e2362796 | 27-Oct-2020 |
Wludzik, Jozef <jozef.wludzik@intel.com> |
Implement Report persistency
Now Report properties are stored in non-volatile memory. It allows to restore Report after system restart. Persistency of a report is controlled by Persistency property
Implement Report persistency
Now Report properties are stored in non-volatile memory. It allows to restore Report after system restart. Persistency of a report is controlled by Persistency property in Report interface.
Tested: - Passed unit tests - Verified that report is stored in /var/lib/telemetry dir - Verified that report is restored from storage after telemetry service start
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com> Change-Id: Iccfe21603eecffc4e174a4403f699b03de320db9
show more ...
|
c8e3a64a | 23-Oct-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Added Periodic reportingType support to Report
When report interval expires report will collect readings from metrics and update timestamp.
Tested: - Added new units tests covering added code -
Added Periodic reportingType support to Report
When report interval expires report will collect readings from metrics and update timestamp.
Tested: - Added new units tests covering added code - All existing unit tests are passing
Change-Id: I7f23ca05d77efb0f18d2c0d0f138c524ffb4f6af Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
2f9f9b87 | 13-Oct-2020 |
Wludzik, Jozef <jozef.wludzik@intel.com> |
Add ReportManager and Report unit tests
Introduced ReportFactory to seperate Report and ReportManager unit tests. Implemented mocks for Report, ReportManager and ReportFactory classes. Added tests f
Add ReportManager and Report unit tests
Introduced ReportFactory to seperate Report and ReportManager unit tests. Implemented mocks for Report, ReportManager and ReportFactory classes. Added tests for DBus Properties and Methods provided by telemetry service.
Tested: - Ran unit-tests with success
Change-Id: I1860e280d26ee4becc52de98dd65e5697d26b376 Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
show more ...
|
b5645947 | 29-Sep-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Implemented sensor class
Sensor class was introduced, it monitors xyz.openbmc_project.Sensor.Value, for change and notifies all listeners.
Tested: - Unit tested with service stub that provides db
Implemented sensor class
Sensor class was introduced, it monitors xyz.openbmc_project.Sensor.Value, for change and notifies all listeners.
Tested: - Unit tested with service stub that provides dbus interface xyz.openbmc_project.Sensor.Value - All changes are delivered to listeners - All other unit tests are passing
Change-Id: I8c9d58cc986c1fe2a4d2386815d559814016efa6 Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
7f06f613 | 24-Sep-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Created sensor cache class
Created sensor cache and sensor interface that needs to be implemented by sensors.
Tested: - Sensors created by sensor cache are stored and reused if there is try to ac
Created sensor cache class
Created sensor cache and sensor interface that needs to be implemented by sensors.
Tested: - Sensors created by sensor cache are stored and reused if there is try to access same sensor multiple times. - All other units tests are passing
Change-Id: I552b2016bca4688e1b2a223297587826af256b54 Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
73da6906 | 24-Sep-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Added PersistentJsonStorageClass
PersistentJsonStorage is used to store persistent information in json format. This class will be used by ReportManager to save persistent report configuration.
Test
Added PersistentJsonStorageClass
PersistentJsonStorage is used to store persistent information in json format. This class will be used by ReportManager to save persistent report configuration.
Tested: - Added unit tests for new functionality - All other unit tests are passing
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com> Change-Id: Ib496e6782e849d910fe37c02c355047afda5c79c
show more ...
|