/**
* Sets the user-specified configuration for the given audit rule. This will
* vary in structure from rule to rule; see individual rules for
* configuration options.
* @param {string} auditRuleName
* @param {Object} config
*/
setRuleConfig: function(auditRuleName, config) {
if (!(auditRuleName in this.rules_))
this.rules_[auditRuleName] = {};
this.rules_[auditRuleName].config = config;
},
Looks like I can pass any string for auditRuleName. Is that correct?
What does config look like? structure / schema of config?
// This will vary in structure from rule to rule; see individual rules for configuration options.
I am sorry I don't follow this, could you please educate me on this?
Is
AuditConfiguration.prototype.setRuleConfig()
for user defined rules?Looks like I can pass any
string
forauditRuleName
. Is that correct?What does
config
look like?structure
/schema
ofconfig
?I am sorry I don't follow this, could you please educate me on this?
Thanks!