Watch Elastic Metricbeat for Performance Measurement Jobs 99/14099/1
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Thu, 23 Jan 2025 16:09:03 +0000 (00:09 +0800)
committerJon Zhang <rong.zhang@windriver.com>
Sat, 25 Jan 2025 02:58:37 +0000 (02:58 +0000)
commit9a0947f461c5f54b1ffb4867e8465885daf2b8df
treed50d5fc4f760868fa1dda6d85318cde0e25a591b
parentf37ac46958a4592f1f745d7633d87d98ac00a180
Watch Elastic Metricbeat for Performance Measurement Jobs

This commit introduces a client implementation to interact with the
Elasticsearch API, enabling the querying of event types for performance
measurement jobs.

Test Plan:

PASS - Verify that the aggregation datasets for performance measurement
       jobs are collected as expected.
PASS - Test the performance measurement jobs API to ensure it returns
       the correct results.
PASS - Confirm that if Elasticsearch is not available, the watcher skips
       the performance measurement (PM) portion as intended.
PASS - Ensure that existing performance measurement jobs are skipped
       and not duplicated.

Change-Id: I399c5c14b585ff9e05d7aaea582bd824733e8da3
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
(cherry picked from commit c97804097cd84f3f223a23016ff142724e88e481)
13 files changed:
configs/o2app.conf
o2app/entrypoints/resource_watcher.py
o2app/service/handlers.py
o2common/config/config.py
o2ims/adapter/clients/pm_client.py [new file with mode: 0644]
o2ims/adapter/orm.py
o2ims/domain/commands.py
o2ims/domain/performance_obj.py
o2ims/service/auditor/measurement_handler.py [new file with mode: 0644]
o2ims/service/watcher/measurement_watcher.py [new file with mode: 0644]
requirements-stx.txt
requirements-test.txt
tests/integration-ocloud/test_clientdriver_pm.py [new file with mode: 0644]