monasca-common/java/monasca-common-model
Joachim Barheine b988eb855c Fix crash-loop in thresholder caused by floating point numbers used as dimension filter
Example: avg(some_timer{quantile=0.99}) > 0.1)

Changes:
* add DECIMAL (floating point value) to allowed tokens for dimensions

Without this fix, an alarm-definition like the above one once injected
through the Python API will break the Java-ORM layer because the
alarm-definition cannot be parsed by the generated ANTLR parser.
As a consequence the thresholder worker will terminate, leading to a
crash-cycle. I could not find a way to make the ORM-layer ignore
non-parseable alarm-definitions. So maybe this fix should be
complemented by an extension of the Python API that uses exactly the
same ANTLR grammar to validate incoming alarm-definitions.

Change-Id: Ibbd41e1b817ebadc74b1b4a677db898cfa173ccb
2016-12-02 09:32:48 +00:00
..
src Fix crash-loop in thresholder caused by floating point numbers used as dimension filter 2016-12-02 09:32:48 +00:00
.gitignore Changes to use monasca instead of mon 2014-07-23 08:40:26 -06:00
pom.xml Changes to use monasca instead of mon 2014-07-23 08:40:26 -06:00