Files
librenms-librenms/sql-schema
Neil Lathwood 03076c4025 feature: Added new alert rule builder UI and rule mapping UI (#8293)
* feature: Added new alert rule builder UI

* Updated to export sql queries

* More updates

* more changes

* removed debug

* fix scrut

* Updated to include import options + various other fixes

* fix rule

* Populate name from collection rules.

* Fix default rule import
Allow new and old style rules in the collection.
Don't add new yet as I'm not sure GenSQL() is working.

* Fix GenSQL call

* Extract filter building to class so it is nicely contained in one place

* moved schema

* some fixes and tweaks

* travis fixes

* Some more features / updates

* Fix up my mistakes when adding default rules

* Use a modal for new alert (Incomplete)
Larger dialog!!
Remove page loading stuff.

Working:
Loading rules, resetting dialog, importing from collection.

Not working yet:
select width
device limited rule access? don't know what this is...

Lots of unused stuff to delete...

* reload "table" after save

* fixed editing rule

* Auto select2 width

* Reload window on save

* Restore per-device alert. Remove debug.

* Small cleanups. Rule Name first.

* Restore button to button type. Rename schema.

* Fixes: wrong command to reload window, remove extra attributes, rule is never passed

* Fixed old rule editing

* some small updates for old imports

* travis update to use trusty

* maybe travis fix

* Ability to set alert rule mappings on the rule edit screen

* pip installs one line, no quiet for deploy

* update schema def

* Fix style and some copyright headers

* fix docs missing file

* Allow new versions of snmpsim and libraries

* Parser WIP

* Fix default rules insert

* reorganize

* Legacy import first draft done

* Implement saving
Skip translation to sql for now

* Working on glues

* small rule collection fix

* Working on glues

* Working on glues

* Docs updates + small UI changes

* Parser WIP

* reorganize

* Legacy import first draft done

* Implement saving
Skip translation to sql for now

* Working on glues

* Working on glues

* Working on glues

* Add table mapping, should move to it's own class

* WIP

* Glue working!!

* Extract Schema class

* Some final touches.
revert alerts_rules.json for now.

* Finish up initial implementation
Needs more tests

* Fix a few places

* small doc updates

* Fix finding tables in grouped rules.

* remove unused code

* code format fixes

* Some quick tests for Schema
Simplified output for findRelationshipPath. Always includes start and target in the result.
This simplifies a lot of code in QueryBuilderParser.php
This also always loads the target table data now (which we want)

* Make bill_id the PRIMARY index for the bills table

* Load macros from a json file in misc instead of the database.

* Fix whitespace and wrong key for collection.

* Handle IN properly when generating SQL

* Fix glue (devices.device_id = ports.port_id) is incorrect :D
Show ALL tables we can resolve relationships for in the query builder filter.

* Remove all macros from the database
Remove insert statements, leave updates to update user's existing rules.
2018-03-14 20:25:19 +00:00
..
2012-03-20 16:11:31 +00:00
2012-03-20 16:11:31 +00:00
2012-04-09 12:53:44 +00:00
2012-05-02 15:06:12 +00:00
2012-05-03 09:04:39 +00:00
2012-05-06 19:56:06 +00:00
2012-05-09 16:38:42 +00:00
2012-05-15 17:16:16 +00:00
2012-05-25 14:19:37 +00:00
2014-02-03 12:10:06 +00:00
2014-02-03 22:39:37 +00:00
2014-03-03 20:23:29 +00:00
2014-09-16 22:19:28 +01:00
2014-12-21 15:44:50 +00:00
2015-01-15 07:18:10 +00:00
2015-03-01 12:23:31 +00:00
2015-03-01 12:28:10 +00:00
2015-04-12 11:37:15 +01:00
2015-06-16 08:27:58 +10:00
2015-07-23 18:41:41 +01:00
2015-07-26 11:09:46 +00:00
2015-08-16 11:12:24 +00:00
2015-08-16 11:12:24 +00:00
2015-08-24 14:59:43 +01:00
2015-08-25 11:35:22 -04:00
2015-09-15 11:57:09 +01:00
2015-09-17 16:19:48 +02:00
2017-04-13 10:18:12 +01:00
2015-11-16 20:22:08 -08:00
2015-11-19 12:13:51 +00:00
2015-12-03 09:38:16 -07:00
2015-12-08 20:34:32 +00:00
2015-12-13 18:24:26 +00:00
2016-01-14 06:10:00 +10:00
2016-01-10 22:47:40 +00:00
2016-01-10 22:47:40 +00:00
2016-01-17 19:19:56 +01:00
2016-01-19 14:33:15 +00:00
2016-01-28 14:25:36 +01:00
2016-01-28 13:07:33 +01:00
2016-02-08 20:12:05 +01:00
2016-01-31 18:17:56 +00:00
2016-02-10 07:20:34 +01:00
2016-02-20 11:06:12 +01:00
2016-02-27 15:29:11 +01:00
2016-03-18 23:20:02 -05:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2016-04-26 12:56:58 -07:00
2016-05-24 20:24:20 +01:00
2016-06-28 14:20:04 -05:00
2016-06-30 15:29:58 -05:00
2016-06-30 21:38:40 +01:00
2016-07-15 16:26:16 +10:00
2016-07-18 07:14:03 +10:00
2016-07-25 06:47:34 +10:00
2016-08-17 21:03:03 -05:00
2016-08-22 19:12:44 +01:00
2016-08-28 21:48:05 +01:00
2016-09-02 12:42:45 -05:00
2016-09-13 22:30:06 +01:00
2016-09-17 23:42:08 +03:00
2016-09-22 00:11:16 +03:00
2016-09-22 00:12:20 +03:00
2016-09-22 00:12:20 +03:00
2016-09-23 22:24:45 +01:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2017-04-13 10:18:12 +01:00
2017-02-26 13:44:08 +00:00
2017-04-12 10:39:02 +01:00
2017-06-28 21:43:19 +01:00
2017-10-26 07:56:09 +01:00
2017-10-31 20:32:56 +00:00
2017-12-29 11:52:49 +00:00
2018-02-01 09:50:32 +00:00