Watch Elastic Metricbeat for Performance Measurement Jobs 16/14116/4
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Thu, 23 Jan 2025 16:09:03 +0000 (00:09 +0800)
committerZhang Rong(Jon) <rong.zhang@windriver.com>
Fri, 24 Jan 2025 08:26:58 +0000 (16:26 +0800)
commitc97804097cd84f3f223a23016ff142724e88e481
treed50d5fc4f760868fa1dda6d85318cde0e25a591b
parent1b8d34e95a043aa42c20fe2f62886b0215468f5d
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>
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]