devel:alertengine
Differences
This shows you the differences between two versions of the page.
devel:alertengine [2008/06/19 08:16] – Created the start of alertengine doc thomaska | devel:alertengine [2008/06/19 08:38] (current) – added comment aboud where lookup choices can be found thomaska | ||
---|---|---|---|
Line 9: | Line 9: | ||
Understanding how we check a filtergroup against an alert is where most of the complexity of the system comes into light. Each filtergroup has filtergroupcontents which designate how the set of filters the contents specify should be combined. The filtergroupcontents is where ' | Understanding how we check a filtergroup against an alert is where most of the complexity of the system comes into light. Each filtergroup has filtergroupcontents which designate how the set of filters the contents specify should be combined. The filtergroupcontents is where ' | ||
- | To actually see if an alert matches we simply compile all the expressions in a filter into a Django-ORM lookup and do a ' | + | To actually see if an alert matches we simply compile all the expressions in a filter into a Django-ORM lookup and do a ' |
| | ||
Line 159: | Line 159: | ||
| | ||
| | ||
- | |||
- | The following Python code was used to compute the mapping overview in this wiki: | ||
- | |||
- | <code python> | ||
- | for key,value in MatchField.VALUE_MAP.items(): | ||
- | a = MatchField.FOREIGN_MAP[key.split(' | ||
- | if a: a += ' | ||
- | print '%30s: %s%s\n' | ||
- | </ | ||
- |
devel/alertengine.1213863398.txt.gz · Last modified: by thomaska