def createThresholdInstance(self, context):
     """Return the config used by the collector to process point
     thresholds. (id, escalateCount)
     """
     mmt = StatusThresholdInstance(self.id, ThresholdContext(context),
                                   self.dsnames, self.eventClass,
                                   self.escalateCount, context.statusmap,
                                   context.meta_type)
     return mmt
 def createThresholdInstance(self, context):
     """Return the config used by the collector to process point
     thresholds. (id, pointval, severity, escalateCount)
     """
     mmt = PointThresholdInstance(self.id,
                                  ThresholdContext(context),
                                  self.dsnames,
                                  pointval=self.getPointval(context),
                                  eventClass=self.eventClass,
                                  severity=self.severity,
                                  SeverityString=self.getSeverityString(),
                                  escalateCount=self.escalateCount)
     return mmt
示例#3
0
 def createThresholdInstance(self, context):
     """Return the config used by the collector to process min/max
     thresholds. (id, minval, maxval, severity, escalateCount)
     """
     mmt = HystThresholdInstance(self.id,
                                 ThresholdContext(context),
                                 self.dsnames,
                                 minval=self.getMinval(context),
                                 maxval=self.getMaxval(context),
                                 badCount=self.getHystN(context),
                                 queueSize=self.getHystM(context),
                                 goodCount=self.getHystK(context),
                                 eventClass=self.eventClass,
                                 severity=self.severity,
                                 escalateCount=self.escalateCount)
     return mmt
示例#4
0
 def createThresholdInstance(self, context):
     """Return the config used by the collector to process point
     thresholds. (id, pointval, severity, escalateCount)
     """
     pti = PredictiveThresholdInstance(self.id,
                                       ThresholdContext(context),
                                       self.dsnames,
                                       eventClass=self.eventClass,
                                       severity=self.severity,
                                       escalateCount=self.escalateCount,
                                       alpha=self.alpha,
                                       beta=self.beta,
                                       gamma=self.gamma,
                                       rows=self.rows,
                                       season=self.season,
                                       window=self.window,
                                       threshold=self.threshold,
                                       delta=self.delta,
                                       predcolor=self.predcolor,
                                       cbcolor=self.cbcolor,
                                       tkcolor=self.tkcolor)
     return pti