Exemple #1
0
 def __init__(self, metric_type, infile_list, hostname, outdir, resource_path, label, ts_start, ts_end, rule_strings,
              important_sub_metrics, **other_options):
   metric_type = self.extract_metric_name(metric_type)
   Metric.__init__(self, metric_type, infile_list,  hostname, outdir, resource_path, label, ts_start, ts_end, rule_strings,
                   important_sub_metrics)
   if not self.important_sub_metrics and self.metric_type in important_sub_metrics_import.keys():
     self.important_sub_metrics = important_sub_metrics_import[self.metric_type]
   self.options = None
   self.devices = None
   for (key, val) in other_options.iteritems():
     setattr(self, key, val.split())
  def __init__(self, metric_type, infile_list, hostname, aggr_metrics, outdir, resource_path, label, ts_start, ts_end, rule_strings,
               important_sub_metrics, anomaly_detection_metrics, **other_options):
    Metric.__init__(self, metric_type, infile_list,  hostname, aggr_metrics, outdir, resource_path, label, ts_start, ts_end, rule_strings,
                    important_sub_metrics, anomaly_detection_metrics)
    if not self.important_sub_metrics and self.metric_type in important_sub_metrics_import.keys():
      self.important_sub_metrics = important_sub_metrics_import[self.metric_type]
    self.options = None

    self.CPUS = None
    for (key, val) in other_options.iteritems():
      setattr(self, key, val.split())
Exemple #3
0
 def __init__(self, metric_type, infile_list, hostname, outdir, resource_path, label, ts_start, ts_end, rule_strings,
              important_sub_metrics, **other_options):
   metric_type = self.extract_metric_name(metric_type)
   Metric.__init__(self, metric_type, infile_list,  hostname, outdir, resource_path, label, ts_start, ts_end, rule_strings,
                   important_sub_metrics)
   if not self.important_sub_metrics and self.metric_type in important_sub_metrics_import.keys():
     self.important_sub_metrics = important_sub_metrics_import[self.metric_type]
   self.options = None
   self.devices = None
   for (key, val) in other_options.iteritems():
     setattr(self, key, val.split())
Exemple #4
0
    def __init__(self, metric_type, infile_list, hostname, aggr_metrics,
                 outdir, resource_path, label, ts_start, ts_end, rule_strings,
                 important_sub_metrics, anomaly_detection_metrics,
                 **other_options):
        Metric.__init__(self, metric_type, infile_list, hostname, aggr_metrics,
                        outdir, resource_path, label, ts_start, ts_end,
                        rule_strings, important_sub_metrics,
                        anomaly_detection_metrics)
        if not self.important_sub_metrics and self.metric_type in important_sub_metrics_import.keys(
        ):
            self.important_sub_metrics = important_sub_metrics_import[
                self.metric_type]
        self.options = None

        self.CPUS = None
        for (key, val) in other_options.iteritems():
            setattr(self, key, val.split())