On 03/13/2013 05:25 PM, Boyles, Gary P wrote: > Risto, > Yes, I'm specifying integers through a web interface. At this point though, > it is through > a list of integers rather than free-form integers. > > I'm trying to minimize the number of rules written, by utilizing hash-tables > to decide on whether > a particular node or group will use a particular rule (via context). > > The problem with just writing out rules is that you might have a rule for a > window of 1 second, > one for 2 seconds, one for 30 seconds, etc. And since there are a lot of > users that might use > this interface, I'd rather have one rule that looks at values in a hash for > context to determine > whether to use a particular rule or not. > > I have implemented a form of suppression (aka duplicate-detection) with what > you describe below > (i.e. two "Single" rules with context set via hash-variable). > > This way... I only need two rules to implement "SingleWithSuppress" for any > time-window. > > I will look at doing the same thing and replicating PairWithWindow. > > Thanks for your help. > Gary >
I see your point now -- since essentially you would like to store part of the rule definition in some external storage, a rule would actually become a kind of a skeleton/template which evaluates to a different rule definition at each event match. I have to admit I haven't thought about such feature before, and I think it hasn't been discussed before in the mailing list either. kind regards, risto ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users