History log of /openbmc/telemetry/tests/src/helpers/ (Results 1 – 11 of 11)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
b3e03d2d28-Jun-2024 Michal Orzel <michalx.orzel@intel.com>

Address Valgrind issues in CI

Fixes "uninitialized values" errors reported by Valgrind. Problem
occurred from lack of specializations of googletest's PrintTo functions
for several custom types.

Tes

Address Valgrind issues in CI

Fixes "uninitialized values" errors reported by Valgrind. Problem
occurred from lack of specializations of googletest's PrintTo functions
for several custom types.

Tested:
On local CI container. After applying this patch issues stopped
appearing.

Change-Id: I98d9fd19724bee15add7b19422a9ddc2e4cbef09
Signed-off-by: Michal Orzel <michalx.orzel@intel.com>

show more ...


/openbmc/telemetry/.clang-format
/openbmc/telemetry/.gitignore
/openbmc/telemetry/OWNERS
/openbmc/telemetry/meson.build
/openbmc/telemetry/meson.options
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metrics/collection_function.cpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/sensor.cpp
/openbmc/telemetry/src/trigger.cpp
/openbmc/telemetry/src/trigger_factory.cpp
/openbmc/telemetry/src/trigger_manager.cpp
/openbmc/telemetry/src/types/readings.cpp
/openbmc/telemetry/src/types/report_types.cpp
/openbmc/telemetry/src/utils/conversion.hpp
/openbmc/telemetry/src/utils/conversion_trigger.cpp
/openbmc/telemetry/src/utils/labeled_tuple.hpp
/openbmc/telemetry/src/utils/make_id_name.cpp
/openbmc/telemetry/src/utils/messanger_service.cpp
/openbmc/telemetry/src/utils/threshold_operations.hpp
/openbmc/telemetry/subprojects/nlohmann_json.wrap
/openbmc/telemetry/tests/meson.build
/openbmc/telemetry/tests/src/dbus_environment.hpp
/openbmc/telemetry/tests/src/helpers.hpp
report_params_helpers.hpp
trigger_helpers.hpp
types/container_types_helpers.hpp
/openbmc/telemetry/tests/src/mocks/report_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_factory_mock.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/test_discrete_threshold.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_numeric_threshold.cpp
/openbmc/telemetry/tests/src/test_on_change_threshold.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_sensor_cache.cpp
/openbmc/telemetry/tests/src/test_trigger.cpp
/openbmc/telemetry/tests/src/test_trigger_manager.cpp
cff70c1427-Oct-2022 Krzysztof Grobelny <krzysztof.grobelny@intel.com>

Removed FutureVersion from API

Instead of using FutureVersion API currently used version is updated.
This change needs to be bumped together with [1]. API that utilized map
of variants to be more fl

Removed FutureVersion from API

Instead of using FutureVersion API currently used version is updated.
This change needs to be bumped together with [1]. API that utilized map
of variants to be more flexible and backwards compatible was reverted.
It was decided that straight forward API that is commonly used should be
used instead.

Removed MetricId property from Metric. In telemetry it was implemented
as a name for Metric, but it was supposed to work as described in [2].
Currently MetricId is not supported by telemetry service and property
was removed.

Tested:
- After chaging bmcweb to use new API old and new features are working
as expected

[1]: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/44270
[2]: https://redfish.dmtf.org/schemas/v1/MetricReportDefinition.v1_4_2.json

Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I5930a466a370f268d68f575a4a3db5ee9655e574

show more ...

3a1c297a10-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

Change-Id: I1ac255c58971ac5cc4697b8bb1069067aad02d18
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


/openbmc/telemetry/.clang-format
/openbmc/telemetry/.gitignore
/openbmc/telemetry/README.md
/openbmc/telemetry/meson.build
/openbmc/telemetry/meson_options.txt
/openbmc/telemetry/redfish-tests/README.md
/openbmc/telemetry/redfish-tests/conftest.py
/openbmc/telemetry/redfish-tests/redfish_requests.py
/openbmc/telemetry/redfish-tests/test_telemetry.py
/openbmc/telemetry/src/errors.cpp
/openbmc/telemetry/src/errors.hpp
/openbmc/telemetry/src/interfaces/metric.hpp
/openbmc/telemetry/src/interfaces/report_factory.hpp
/openbmc/telemetry/src/main.cpp
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metric.hpp
/openbmc/telemetry/src/metric_value.hpp
/openbmc/telemetry/src/metrics/collection_data.cpp
/openbmc/telemetry/src/metrics/collection_function.cpp
/openbmc/telemetry/src/numeric_threshold.cpp
/openbmc/telemetry/src/persistent_json_storage.cpp
/openbmc/telemetry/src/persistent_json_storage.hpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report.hpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_factory.hpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/report_manager.hpp
/openbmc/telemetry/src/sensor.cpp
/openbmc/telemetry/src/sensor.hpp
/openbmc/telemetry/src/state.hpp
/openbmc/telemetry/src/trigger.cpp
/openbmc/telemetry/src/trigger_actions.hpp
/openbmc/telemetry/src/trigger_factory.cpp
/openbmc/telemetry/src/trigger_manager.cpp
/openbmc/telemetry/src/trigger_manager.hpp
/openbmc/telemetry/src/types/collection_time_scope.hpp
/openbmc/telemetry/src/types/error_message.hpp
/openbmc/telemetry/src/types/error_type.hpp
/openbmc/telemetry/src/types/operation_type.hpp
/openbmc/telemetry/src/types/readings.cpp
/openbmc/telemetry/src/types/report_action.hpp
/openbmc/telemetry/src/types/report_types.cpp
/openbmc/telemetry/src/types/report_types.hpp
/openbmc/telemetry/src/types/report_updates.hpp
/openbmc/telemetry/src/types/reporting_type.hpp
/openbmc/telemetry/src/types/trigger_types.hpp
/openbmc/telemetry/src/utils/circular_vector.hpp
/openbmc/telemetry/src/utils/contains.hpp
/openbmc/telemetry/src/utils/conversion.hpp
/openbmc/telemetry/src/utils/conversion_trigger.cpp
/openbmc/telemetry/src/utils/conversion_trigger.hpp
/openbmc/telemetry/src/utils/dbus_path_utils.cpp
/openbmc/telemetry/src/utils/dbus_path_utils.hpp
/openbmc/telemetry/src/utils/ensure.hpp
/openbmc/telemetry/src/utils/labeled_tuple.hpp
/openbmc/telemetry/src/utils/make_id_name.cpp
/openbmc/telemetry/src/utils/make_id_name.hpp
/openbmc/telemetry/src/utils/messanger_service.cpp
/openbmc/telemetry/src/utils/messanger_service.hpp
/openbmc/telemetry/src/utils/threshold_operations.hpp
/openbmc/telemetry/src/utils/transform.hpp
/openbmc/telemetry/src/utils/variant_utils.hpp
/openbmc/telemetry/subprojects/boost.wrap
/openbmc/telemetry/subprojects/googletest.wrap
/openbmc/telemetry/subprojects/packagefiles/boost/meson.build
/openbmc/telemetry/tests/meson.build
/openbmc/telemetry/tests/src/dbus_environment.hpp
interfaces/json_storage_helpers.hpp
interfaces/sensor_id_helpers.hpp
metric_value_helpers.hpp
/openbmc/telemetry/tests/src/mocks/metric_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_factory_mock.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/params/trigger_params.hpp
/openbmc/telemetry/tests/src/stubs/dbus_sensor_object.cpp
/openbmc/telemetry/tests/src/test_conversion.cpp
/openbmc/telemetry/tests/src/test_discrete_threshold.cpp
/openbmc/telemetry/tests/src/test_ensure.cpp
/openbmc/telemetry/tests/src/test_labeled_tuple.cpp
/openbmc/telemetry/tests/src/test_make_id_name.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_persistent_json_storage.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_sensor_cache.cpp
/openbmc/telemetry/tests/src/test_trigger.cpp
/openbmc/telemetry/tests/src/test_trigger_actions.cpp
/openbmc/telemetry/tests/src/test_trigger_manager.cpp
/openbmc/telemetry/tests/src/utils/string_utils.cpp
/openbmc/telemetry/tests/src/utils/string_utils.hpp
/openbmc/telemetry/xyz.openbmc_project.Telemetry.service.in
1cdd7e4f08-Jun-2022 Szymon Dompke <szymon.dompke@intel.com>

Use proper dbus path when possible.

Following methods and properties were updated to use full dbus path,
instead of internal telemetry id:
- TriggerManager.AddTrigger() - 'reportIds' arg
- Trigger.R

Use proper dbus path when possible.

Following methods and properties were updated to use full dbus path,
instead of internal telemetry id:
- TriggerManager.AddTrigger() - 'reportIds' arg
- Trigger.ReportIds - renamed to 'Reports'
- Report.TriggerIds - renamed to 'Triggers'

Testing done:
- UTs were updated and are passing.

Signed-off-by: Szymon Dompke <szymon.dompke@intel.com>
Change-Id: I78d812d38289fac575d25b48503cc8b9c6f736fe

show more ...


/openbmc/telemetry/meson.build
/openbmc/telemetry/meson_options.txt
/openbmc/telemetry/src/discrete_threshold.cpp
/openbmc/telemetry/src/discrete_threshold.hpp
/openbmc/telemetry/src/interfaces/metric.hpp
/openbmc/telemetry/src/interfaces/metric_listener.hpp
/openbmc/telemetry/src/interfaces/report.hpp
/openbmc/telemetry/src/interfaces/report_factory.hpp
/openbmc/telemetry/src/interfaces/report_manager.hpp
/openbmc/telemetry/src/interfaces/sensor.hpp
/openbmc/telemetry/src/interfaces/sensor_listener.hpp
/openbmc/telemetry/src/interfaces/threshold.hpp
/openbmc/telemetry/src/interfaces/trigger.hpp
/openbmc/telemetry/src/interfaces/trigger_action.hpp
/openbmc/telemetry/src/interfaces/trigger_factory.hpp
/openbmc/telemetry/src/messages/collect_trigger_id.hpp
/openbmc/telemetry/src/messages/presence.hpp
/openbmc/telemetry/src/messages/trigger_presence_changed_ind.hpp
/openbmc/telemetry/src/messages/update_report_ind.hpp
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metric.hpp
/openbmc/telemetry/src/metrics/collection_data.cpp
/openbmc/telemetry/src/metrics/collection_data.hpp
/openbmc/telemetry/src/metrics/collection_function.cpp
/openbmc/telemetry/src/metrics/collection_function.hpp
/openbmc/telemetry/src/numeric_threshold.cpp
/openbmc/telemetry/src/numeric_threshold.hpp
/openbmc/telemetry/src/on_change_threshold.cpp
/openbmc/telemetry/src/on_change_threshold.hpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report.hpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_factory.hpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/report_manager.hpp
/openbmc/telemetry/src/sensor.cpp
/openbmc/telemetry/src/sensor.hpp
/openbmc/telemetry/src/state.hpp
/openbmc/telemetry/src/telemetry.hpp
/openbmc/telemetry/src/trigger.cpp
/openbmc/telemetry/src/trigger.hpp
/openbmc/telemetry/src/trigger_actions.cpp
/openbmc/telemetry/src/trigger_actions.hpp
/openbmc/telemetry/src/trigger_factory.cpp
/openbmc/telemetry/src/trigger_factory.hpp
/openbmc/telemetry/src/trigger_manager.cpp
/openbmc/telemetry/src/trigger_manager.hpp
/openbmc/telemetry/src/types/error_message.hpp
/openbmc/telemetry/src/types/error_type.hpp
/openbmc/telemetry/src/types/operation_type.hpp
/openbmc/telemetry/src/types/readings.cpp
/openbmc/telemetry/src/types/readings.hpp
/openbmc/telemetry/src/types/report_types.cpp
/openbmc/telemetry/src/types/report_types.hpp
/openbmc/telemetry/src/types/report_updates.hpp
/openbmc/telemetry/src/types/sensor_types.hpp
/openbmc/telemetry/src/types/trigger_types.hpp
/openbmc/telemetry/src/utils/circular_vector.hpp
/openbmc/telemetry/src/utils/contains.hpp
/openbmc/telemetry/src/utils/conversion_trigger.cpp
/openbmc/telemetry/src/utils/conversion_trigger.hpp
/openbmc/telemetry/src/utils/dbus_mapper.hpp
/openbmc/telemetry/src/utils/dbus_path_utils.cpp
/openbmc/telemetry/src/utils/dbus_path_utils.hpp
/openbmc/telemetry/src/utils/ensure.hpp
/openbmc/telemetry/src/utils/generate_id.cpp
/openbmc/telemetry/src/utils/generate_id.hpp
/openbmc/telemetry/src/utils/labeled_tuple.hpp
/openbmc/telemetry/src/utils/messanger.hpp
/openbmc/telemetry/src/utils/messanger_service.cpp
/openbmc/telemetry/src/utils/messanger_service.hpp
/openbmc/telemetry/src/utils/threshold_operations.hpp
/openbmc/telemetry/src/utils/transform.hpp
/openbmc/telemetry/src/utils/tstring.hpp
/openbmc/telemetry/subprojects/googletest.wrap
/openbmc/telemetry/subprojects/nlohmann.wrap
/openbmc/telemetry/subprojects/phosphor-logging.wrap
/openbmc/telemetry/subprojects/sdbusplus.wrap
/openbmc/telemetry/tests/meson.build
/openbmc/telemetry/tests/src/dbus_environment.cpp
/openbmc/telemetry/tests/src/dbus_environment.hpp
/openbmc/telemetry/tests/src/helpers.hpp
types/object_path_helpers.hpp
/openbmc/telemetry/tests/src/main.cpp
/openbmc/telemetry/tests/src/mocks/clock_mock.hpp
/openbmc/telemetry/tests/src/mocks/metric_listener_mock.hpp
/openbmc/telemetry/tests/src/mocks/metric_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_manager_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_mock.hpp
/openbmc/telemetry/tests/src/mocks/sensor_listener_mock.hpp
/openbmc/telemetry/tests/src/mocks/sensor_mock.hpp
/openbmc/telemetry/tests/src/mocks/threshold_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_action_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_mock.hpp
/openbmc/telemetry/tests/src/params/metric_params.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/params/trigger_params.hpp
/openbmc/telemetry/tests/src/stubs/dbus_sensor_object.cpp
/openbmc/telemetry/tests/src/test_conversion.cpp
/openbmc/telemetry/tests/src/test_discrete_threshold.cpp
/openbmc/telemetry/tests/src/test_ensure.cpp
/openbmc/telemetry/tests/src/test_generate_id.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_numeric_threshold.cpp
/openbmc/telemetry/tests/src/test_on_change_threshold.cpp
/openbmc/telemetry/tests/src/test_path_append.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_sensor.cpp
/openbmc/telemetry/tests/src/test_transform.cpp
/openbmc/telemetry/tests/src/test_trigger.cpp
/openbmc/telemetry/tests/src/test_trigger_actions.cpp
/openbmc/telemetry/tests/src/test_trigger_manager.cpp
/openbmc/telemetry/tests/src/utils/conv_container.hpp
/openbmc/telemetry/tests/src/utils/generate_unique_mock_id.cpp
51f0fd5028-Dec-2021 Krzysztof Grobelny <krzysztof.grobelny@intel.com>

Fixed issue with wrong timestamp

Telemetry service used steady_clock for generating timestamps, but it
produced incorrect time. This change makes telemetry service use
steady_clock for intervals and

Fixed issue with wrong timestamp

Telemetry service used steady_clock for generating timestamps, but it
produced incorrect time. This change makes telemetry service use
steady_clock for intervals and system_clock for timestamps.

Changed readings timestamp to display current timestamp instead of a
time when reading was received.

Tested:
- correct timestamp is visible on dbus
- other telemetry service features are still working

Change-Id: Ic49f45640532cfffaeff5e0bd5591e6d99e5def5
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>

show more ...


/openbmc/telemetry/.gitignore
/openbmc/telemetry/meson.build
/openbmc/telemetry/meson_options.txt
/openbmc/telemetry/scripts/configure_fast_compilation.sh
/openbmc/telemetry/src/details/collection_function.cpp
/openbmc/telemetry/src/details/collection_function.hpp
/openbmc/telemetry/src/discrete_threshold.cpp
/openbmc/telemetry/src/discrete_threshold.hpp
/openbmc/telemetry/src/interfaces/clock.hpp
/openbmc/telemetry/src/interfaces/metric.hpp
/openbmc/telemetry/src/interfaces/report.hpp
/openbmc/telemetry/src/interfaces/report_factory.hpp
/openbmc/telemetry/src/interfaces/report_manager.hpp
/openbmc/telemetry/src/interfaces/sensor.hpp
/openbmc/telemetry/src/interfaces/sensor_listener.hpp
/openbmc/telemetry/src/interfaces/trigger.hpp
/openbmc/telemetry/src/interfaces/trigger_action.hpp
/openbmc/telemetry/src/interfaces/trigger_factory.hpp
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metric.hpp
/openbmc/telemetry/src/numeric_threshold.cpp
/openbmc/telemetry/src/numeric_threshold.hpp
/openbmc/telemetry/src/on_change_threshold.cpp
/openbmc/telemetry/src/on_change_threshold.hpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report.hpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_factory.hpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/report_manager.hpp
/openbmc/telemetry/src/sensor.cpp
/openbmc/telemetry/src/sensor.hpp
/openbmc/telemetry/src/sensor_cache.hpp
/openbmc/telemetry/src/trigger.cpp
/openbmc/telemetry/src/trigger.hpp
/openbmc/telemetry/src/trigger_actions.cpp
/openbmc/telemetry/src/trigger_actions.hpp
/openbmc/telemetry/src/trigger_factory.cpp
/openbmc/telemetry/src/trigger_factory.hpp
/openbmc/telemetry/src/trigger_manager.cpp
/openbmc/telemetry/src/trigger_manager.hpp
/openbmc/telemetry/src/types/collection_duration.hpp
/openbmc/telemetry/src/types/collection_time_scope.hpp
/openbmc/telemetry/src/types/duration_types.hpp
/openbmc/telemetry/src/types/operation_type.hpp
/openbmc/telemetry/src/types/report_action.hpp
/openbmc/telemetry/src/types/report_types.cpp
/openbmc/telemetry/src/types/report_types.hpp
/openbmc/telemetry/src/types/report_updates.hpp
/openbmc/telemetry/src/types/reporting_type.hpp
/openbmc/telemetry/src/types/trigger_types.hpp
/openbmc/telemetry/src/utils/circular_vector.hpp
/openbmc/telemetry/src/utils/clock.hpp
/openbmc/telemetry/src/utils/contains.hpp
/openbmc/telemetry/src/utils/conversion.hpp
/openbmc/telemetry/src/utils/conversion_trigger.cpp
/openbmc/telemetry/src/utils/detached_timer.hpp
/openbmc/telemetry/src/utils/generate_id.cpp
/openbmc/telemetry/src/utils/generate_id.hpp
/openbmc/telemetry/src/utils/labeled_tuple.hpp
/openbmc/telemetry/src/utils/tstring.hpp
/openbmc/telemetry/subprojects/googletest.wrap
/openbmc/telemetry/subprojects/phosphor-logging.wrap
/openbmc/telemetry/subprojects/sdbusplus.wrap
/openbmc/telemetry/tests/meson.build
/openbmc/telemetry/tests/src/dbus_environment.cpp
/openbmc/telemetry/tests/src/dbus_environment.hpp
/openbmc/telemetry/tests/src/fakes/clock_fake.hpp
/openbmc/telemetry/tests/src/helpers.hpp
types/duration_types_helpers.hpp
/openbmc/telemetry/tests/src/mocks/metric_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_mock.hpp
/openbmc/telemetry/tests/src/mocks/sensor_listener_mock.hpp
/openbmc/telemetry/tests/src/mocks/sensor_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_action_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_mock.hpp
/openbmc/telemetry/tests/src/params/metric_params.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/params/trigger_params.hpp
/openbmc/telemetry/tests/src/test_conversion.cpp
/openbmc/telemetry/tests/src/test_discrete_threshold.cpp
/openbmc/telemetry/tests/src/test_generate_id.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_numeric_threshold.cpp
/openbmc/telemetry/tests/src/test_on_change_threshold.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_sensor.cpp
/openbmc/telemetry/tests/src/test_trigger.cpp
/openbmc/telemetry/tests/src/test_trigger_actions.cpp
/openbmc/telemetry/tests/src/test_trigger_manager.cpp
dcc4e19308-Mar-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.

Tested:
- Verified that current version of bmcweb works fine with old API

Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
Change-Id: I51a9b7fb2f4da5b8d2f688ccd5e93710352b1ac7

show more ...


/openbmc/telemetry/.gitignore
/openbmc/telemetry/MAINTAINERS
/openbmc/telemetry/OWNERS
/openbmc/telemetry/meson.build
/openbmc/telemetry/meson_options.txt
/openbmc/telemetry/scripts/boost_build_1.74.0.sh
/openbmc/telemetry/src/discrete_threshold.cpp
/openbmc/telemetry/src/discrete_threshold.hpp
/openbmc/telemetry/src/interfaces/metric.hpp
/openbmc/telemetry/src/interfaces/report_factory.hpp
/openbmc/telemetry/src/interfaces/sensor.hpp
/openbmc/telemetry/src/interfaces/trigger_factory.hpp
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metric.hpp
/openbmc/telemetry/src/numeric_threshold.cpp
/openbmc/telemetry/src/numeric_threshold.hpp
/openbmc/telemetry/src/on_change_threshold.cpp
/openbmc/telemetry/src/on_change_threshold.hpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report.hpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_factory.hpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/report_manager.hpp
/openbmc/telemetry/src/sensor.hpp
/openbmc/telemetry/src/telemetry.hpp
/openbmc/telemetry/src/trigger.cpp
/openbmc/telemetry/src/trigger.hpp
/openbmc/telemetry/src/trigger_actions.cpp
/openbmc/telemetry/src/trigger_actions.hpp
/openbmc/telemetry/src/trigger_factory.cpp
/openbmc/telemetry/src/trigger_factory.hpp
/openbmc/telemetry/src/trigger_manager.cpp
/openbmc/telemetry/src/trigger_manager.hpp
/openbmc/telemetry/src/types/collection_duration.hpp
/openbmc/telemetry/src/types/collection_time_scope.hpp
/openbmc/telemetry/src/types/milliseconds.hpp
/openbmc/telemetry/src/types/operation_type.hpp
/openbmc/telemetry/src/types/report_types.cpp
/openbmc/telemetry/src/types/report_types.hpp
/openbmc/telemetry/src/types/trigger_types.hpp
/openbmc/telemetry/src/utils/conversion_trigger.cpp
/openbmc/telemetry/src/utils/conversion_trigger.hpp
/openbmc/telemetry/src/utils/detached_timer.hpp
/openbmc/telemetry/src/utils/json.hpp
/openbmc/telemetry/src/utils/labeled_tuple.hpp
/openbmc/telemetry/src/utils/tstring.hpp
/openbmc/telemetry/subprojects/sdbusplus.wrap
/openbmc/telemetry/tests/meson.build
/openbmc/telemetry/tests/src/dbus_environment.cpp
/openbmc/telemetry/tests/src/dbus_environment.hpp
/openbmc/telemetry/tests/src/helpers.hpp
labeled_tuple_helpers.hpp
/openbmc/telemetry/tests/src/mocks/metric_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_factory_mock.hpp
/openbmc/telemetry/tests/src/params/metric_params.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/params/trigger_params.hpp
/openbmc/telemetry/tests/src/test_discrete_threshold.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_numeric_threshold.cpp
/openbmc/telemetry/tests/src/test_on_change_threshold.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_trigger.cpp
/openbmc/telemetry/tests/src/test_trigger_actions.cpp
/openbmc/telemetry/tests/src/test_trigger_manager.cpp
9f9ff90a05-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 ...

753e4b3c11-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 ...

e8fc575105-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 ...


/openbmc/telemetry/MAINTAINERS
/openbmc/telemetry/README.md
/openbmc/telemetry/meson.build
/openbmc/telemetry/meson_options.txt
/openbmc/telemetry/scripts/boost_build_1.74.0.sh
/openbmc/telemetry/src/interfaces/metric.hpp
/openbmc/telemetry/src/interfaces/report.hpp
/openbmc/telemetry/src/interfaces/report_manager.hpp
/openbmc/telemetry/src/interfaces/threshold.hpp
/openbmc/telemetry/src/interfaces/trigger.hpp
/openbmc/telemetry/src/interfaces/trigger_action.hpp
/openbmc/telemetry/src/interfaces/trigger_factory.hpp
/openbmc/telemetry/src/interfaces/trigger_manager.hpp
/openbmc/telemetry/src/interfaces/trigger_types.hpp
/openbmc/telemetry/src/interfaces/types.hpp
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metric.hpp
/openbmc/telemetry/src/numeric_threshold.cpp
/openbmc/telemetry/src/numeric_threshold.hpp
/openbmc/telemetry/src/operation_type.hpp
/openbmc/telemetry/src/persistent_json_storage.cpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report.hpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_factory.hpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/report_manager.hpp
/openbmc/telemetry/src/sensor.cpp
/openbmc/telemetry/src/telemetry.hpp
/openbmc/telemetry/src/trigger.cpp
/openbmc/telemetry/src/trigger.hpp
/openbmc/telemetry/src/trigger_actions.cpp
/openbmc/telemetry/src/trigger_actions.hpp
/openbmc/telemetry/src/trigger_factory.cpp
/openbmc/telemetry/src/trigger_factory.hpp
/openbmc/telemetry/src/trigger_manager.cpp
/openbmc/telemetry/src/trigger_manager.hpp
/openbmc/telemetry/src/utils/conversion.hpp
/openbmc/telemetry/src/utils/dbus_mapper.hpp
/openbmc/telemetry/src/utils/tstring.hpp
/openbmc/telemetry/subprojects/nlohmann.wrap
/openbmc/telemetry/tests/meson.build
interfaces/labeled_reading_parameter_helpers.hpp
/openbmc/telemetry/tests/src/mocks/metric_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_manager_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_action_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_manager_mock.hpp
/openbmc/telemetry/tests/src/mocks/trigger_mock.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/params/trigger_params.hpp
/openbmc/telemetry/tests/src/test_conversion.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_numeric_threshold.cpp
/openbmc/telemetry/tests/src/test_persistent_json_storage.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_trigger.cpp
/openbmc/telemetry/tests/src/test_trigger_actions.cpp
/openbmc/telemetry/tests/src/test_trigger_manager.cpp
d223819402-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 ...


/openbmc/telemetry/src/interfaces/metric.hpp
/openbmc/telemetry/src/interfaces/report_factory.hpp
/openbmc/telemetry/src/interfaces/types.hpp
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metric.hpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report.hpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_factory.hpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/report_manager.hpp
/openbmc/telemetry/src/sensor.cpp
/openbmc/telemetry/src/utils/detached_timer.hpp
/openbmc/telemetry/src/utils/labeled_tuple.hpp
/openbmc/telemetry/src/utils/tstring.hpp
/openbmc/telemetry/tests/src/dbus_environment.cpp
/openbmc/telemetry/tests/src/helpers.hpp
interfaces/json_storage_helpers.hpp
interfaces/labeled_reading_parameter_helpers.hpp
interfaces/labeled_sensor_parameter_helpers.hpp
interfaces/sensor_id_helpers.hpp
/openbmc/telemetry/tests/src/mocks/metric_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_mock.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/stubs/dbus_sensor_object.cpp
/openbmc/telemetry/tests/src/stubs/dbus_sensor_object.hpp
/openbmc/telemetry/tests/src/test_detached_timer.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_persistent_json_storage.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_sensor.cpp
/openbmc/telemetry/tests/src/test_sensor_cache.cpp
/openbmc/telemetry/tests/src/test_transform.cpp
/openbmc/telemetry/tests/src/test_unique_call.cpp
6ccfcbf504-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 ...


/openbmc/telemetry/.clang-format
/openbmc/telemetry/.gitignore
/openbmc/telemetry/LICENSE
/openbmc/telemetry/MAINTAINERS
/openbmc/telemetry/README.md
/openbmc/telemetry/meson.build
/openbmc/telemetry/meson_options.txt
/openbmc/telemetry/src/interfaces/json_storage.hpp
/openbmc/telemetry/src/interfaces/metric.hpp
/openbmc/telemetry/src/interfaces/report.hpp
/openbmc/telemetry/src/interfaces/report_factory.hpp
/openbmc/telemetry/src/interfaces/report_manager.hpp
/openbmc/telemetry/src/interfaces/sensor.hpp
/openbmc/telemetry/src/interfaces/sensor_listener.hpp
/openbmc/telemetry/src/interfaces/types.hpp
/openbmc/telemetry/src/main.cpp
/openbmc/telemetry/src/metric.cpp
/openbmc/telemetry/src/metric.hpp
/openbmc/telemetry/src/metric_value.hpp
/openbmc/telemetry/src/persistent_json_storage.cpp
/openbmc/telemetry/src/persistent_json_storage.hpp
/openbmc/telemetry/src/report.cpp
/openbmc/telemetry/src/report.hpp
/openbmc/telemetry/src/report_factory.cpp
/openbmc/telemetry/src/report_factory.hpp
/openbmc/telemetry/src/report_manager.cpp
/openbmc/telemetry/src/report_manager.hpp
/openbmc/telemetry/src/sensor.cpp
/openbmc/telemetry/src/sensor.hpp
/openbmc/telemetry/src/sensor_cache.cpp
/openbmc/telemetry/src/sensor_cache.hpp
/openbmc/telemetry/src/telemetry.hpp
/openbmc/telemetry/src/utils/detached_timer.hpp
/openbmc/telemetry/src/utils/labeled_tuple.hpp
/openbmc/telemetry/src/utils/transform.hpp
/openbmc/telemetry/src/utils/tstring.hpp
/openbmc/telemetry/src/utils/unique_call.hpp
/openbmc/telemetry/subprojects/boost.wrap
/openbmc/telemetry/subprojects/googletest.wrap
/openbmc/telemetry/subprojects/nlohmann.wrap
/openbmc/telemetry/subprojects/phosphor-logging.wrap
/openbmc/telemetry/subprojects/sdbusplus.wrap
/openbmc/telemetry/tests/meson.build
/openbmc/telemetry/tests/src/dbus_environment.cpp
/openbmc/telemetry/tests/src/dbus_environment.hpp
metric_value_helpers.hpp
sensor_id_helpers.hpp
/openbmc/telemetry/tests/src/main.cpp
/openbmc/telemetry/tests/src/mocks/json_storage_mock.hpp
/openbmc/telemetry/tests/src/mocks/metric_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_factory_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_manager_mock.hpp
/openbmc/telemetry/tests/src/mocks/report_mock.hpp
/openbmc/telemetry/tests/src/mocks/sensor_listener_mock.hpp
/openbmc/telemetry/tests/src/mocks/sensor_mock.hpp
/openbmc/telemetry/tests/src/params/report_params.hpp
/openbmc/telemetry/tests/src/printers.hpp
/openbmc/telemetry/tests/src/printers/interfaces/json_storage.hpp
/openbmc/telemetry/tests/src/stubs/dbus_sensor_object.cpp
/openbmc/telemetry/tests/src/stubs/dbus_sensor_object.hpp
/openbmc/telemetry/tests/src/test_detached_timer.cpp
/openbmc/telemetry/tests/src/test_metric.cpp
/openbmc/telemetry/tests/src/test_persistent_json_storage.cpp
/openbmc/telemetry/tests/src/test_report.cpp
/openbmc/telemetry/tests/src/test_report_manager.cpp
/openbmc/telemetry/tests/src/test_sensor.cpp
/openbmc/telemetry/tests/src/test_sensor_cache.cpp
/openbmc/telemetry/tests/src/test_transform.cpp
/openbmc/telemetry/tests/src/test_unique_call.cpp
/openbmc/telemetry/tests/src/utils/conv_container.hpp
/openbmc/telemetry/tests/src/utils/generate_unique_mock_id.cpp
/openbmc/telemetry/tests/src/utils/generate_unique_mock_id.hpp
/openbmc/telemetry/tests/src/utils/set_exception.hpp
/openbmc/telemetry/xyz.openbmc_project.Telemetry.service.in