AnsweredAssumed Answered

set True For value in analysis

Question asked by mikespath on Dec 16, 2016
Latest reply on Dec 21, 2016 by pmartin


I'm trying to figure out how to set the True For value in an analysis via the SDK

In the help file I found this about Time Rule but not sure if this is correct neighborhood

On my AF server I have an analysis rule that has a number of start triggers, each has there own expression (made up of template attributes) and the True For value is setup for each different values, units (eg. 5 min., 20 sec., etc..). I'm not sure what the "RulePlugins" are..


// Set the Analysis Rule and Time Rule

myAnalysis.AnalysisRulePlugIn = myPISystem.AnalysisRulePlugIns["Imbalance"];

myAnalysis.TimeRulePlugIn = myPISystem.TimeRulePlugIns["Periodic"];

// Configure the Time Rule

string config = "Frequency=3600";

AFTimeRule timeRule;

timeRule = myAnalysis.TimeRule;

timeRule.ConfigString = config;