Bug 2215 fixed 55/12955/5
authorDaniel Gomes <dagomes@av.it.pt>
Fri, 10 Feb 2023 17:39:56 +0000 (17:39 +0000)
committerelumalai <deepika.e@tataelxsi.co.in>
Fri, 31 May 2024 05:24:31 +0000 (07:24 +0200)
commitb3173221c25ae915eaca041ebd045f6148cc447d
tree3a4381d70b94a89f4346f25db587b53c80cb02a4
parent754a953c2ffe60c944e61a890906a13c7f5cc920
Bug 2215 fixed

- created an attribute on the Alarm class, extra_labels
- create a method on common_db to include new extra_labels
- changed the _get_metric_value_from_response method of Prometheus Evaluator to return both the metric value and labels

Change-Id: I22e0fd8e95de28560e3a3216622c43c8861137ef
Signed-off-by: Daniel Gomes <dagomes@av.it.pt>
osm_mon/core/common_db.py
osm_mon/core/models.py
osm_mon/core/response.py
osm_mon/evaluator/backends/base.py
osm_mon/evaluator/backends/prometheus.py
osm_mon/evaluator/evaluator.py
osm_mon/evaluator/service.py
osm_mon/tests/unit/core/test_common_db_client.py
osm_mon/tests/unit/evaluator/test_evaluator_service.py