Refactors alarms to decouple them from vnf specific data 63/7963/2
authorBenjamin Diaz <bdiaz@whitestack.com>
Thu, 19 Sep 2019 14:59:06 +0000 (11:59 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Thu, 19 Sep 2019 19:35:46 +0000 (16:35 -0300)
commitd5ac6e1b2139145a4e051264d1566543a25c6d9d
treebea9d0b6e349af56ef85cac0b32034b35724982a
parent4cd39554442ed6384a35f6542e08c25a7a3aa2cf
Refactors alarms to decouple them from vnf specific data

Alarms now handle the concept of tags, instead of having vnf specific
parameters in the model. This allows for wider usecases of alarms (e.g. fault management).

Change-Id: I2b395c4bb7f72d4fb7c53b75feccd7de00508013
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
13 files changed:
osm_mon/core/database.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/migrations/002_add_alarm_tags.py [new file with mode: 0644]
osm_mon/migrations/003_rename_monitoring_param.py [new file with mode: 0644]
osm_mon/migrations/004_remove_alarm_fields.py [new file with mode: 0644]
osm_mon/server/server.py
osm_mon/server/service.py
osm_mon/tests/unit/evaluator/test_evaluator_service.py
osm_mon/tests/unit/evaluator/test_prometheus.py [new file with mode: 0644]