8 Commits

Author SHA1 Message Date
roland-hochmuth
c8694aeff8 Remove xrange for run both Python 2 and Python 3
Change-Id: Ibf1b45fe27f1943265cdc36e99b7a53263885eb2
2017-05-31 08:51:43 +02:00
Craig Bryant
380dedfe11 Treat period, periods and threshold as numbers
These are really numbers, not strings so always use them as their
real type

Change-Id: I0de4875300f77ea4219576195af967f944cf8005
2017-01-17 19:15:45 -07:00
Craig Bryant
b05ebb9117 Add validation for period and periods
Period is currently constrained to be non-zero and a
multiple of 60. Validate those limits.

Periods must be >= 1.

Had to change the except clause to print out the
msg from the parser. This gives good messages for
these two cases but so-so for other cases

Add tests to ensure validation works as expected

Change-Id: If473359901621dae7f3e4d3be903f5d5d7e2885a
2017-01-13 16:18:22 -07:00
Ryan Brandt
8b6e235a40 Add support for 'last' function
Added documentation for last function
Added python parsing for last function
Added tempest tests for last_value function

Change-Id: I4c35321e23e13596a2ef02e7e57306d5685c81ec
Depends-On: Ib5123ed035018757a50d9ebeb7335fbca48054f2
Implements: Blueprint last-value
2016-10-12 03:51:13 +00:00
Tomasz Trębski
0cce983d95 (Non)deterministic support for alarms
The deterministic alarm's main trait
is preventing from transition to UNDETERMINTED state.
That allows effectively create alarms for metrics
which behaviour is similar to events (i.e. generated
upon critical situation in the system). By default (non-deterministic)
alarms created for those metrics would stay in UNDETERMINED stay
for most of the time.

Implements: blueprint alarmsonlogs
Change-Id: I506fcd0b9861e902a2bfcfa768d402c568b85cea
2016-06-08 09:24:21 +02:00
Ryan Brandt
67c5fca946 Allow spaces and apostrophes in dimension key/value
Also allow apostrophes in metric name

Change-Id: Ie064b1959e2c5e16ef1ad77968a7dd486eb331b7
2015-11-25 11:05:12 -07:00
Ryan Brandt
af357ca087 Match alarm expression parsing to java api
Change-Id: I79b2b07faeaa0a7849e807180af71f88a0fd9725
2015-06-17 15:09:51 -06:00
Roland Hochmuth
89731de2a6 Updated for Falcon 0.2 and clean-up
Upgraded to Falcon 0.2
Converted from stevedore to simport
Converted from monasca to monasca_api
Removed events. Events api is in monasca-events-api
Removed references to elastic search
Removed support for message format translations
Removed unused and dead code
Removed author tags

Change-Id: I5034ea256372d22b9f824e301c379da81f82b4e2
2015-06-06 21:47:03 -06:00