def get_iops_or_banwidth(self, req):
     """get_iops_or_banwidth."""
     search_opts = {}
     search_opts.update(req.GET)
     context = req.environ['vsm.context']
     search_opts ['metrics_name'] = 'osd_%s'%search_opts['metrics_name']
     metrics = db.get_sum_performance_metrics(context, search_opts=search_opts)
     LOG.info("CEPH_LOG get performance metrics  iops or banwidth  by search opts: %s" % search_opts)
     return {"metrics": metrics}
 def get_iops_or_banwidth(self, req):
     """get_iops_or_banwidth."""
     search_opts = {}
     search_opts.update(req.GET)
     context = req.environ['vsm.context']
     search_opts['metrics_name'] = 'osd_%s' % search_opts['metrics_name']
     metrics = db.get_sum_performance_metrics(context,
                                              search_opts=search_opts)
     LOG.info(
         "CEPH_LOG get performance metrics  iops or banwidth  by search opts: %s"
         % search_opts)
     return {"metrics": metrics}
 def get_sum_performance_metrics(self, context, search_opts):
     return db.get_sum_performance_metrics(context, search_opts=search_opts)
Exemple #4
0
 def get_sum_performance_metrics(self, context, search_opts):
     return db.get_sum_performance_metrics(context, search_opts=search_opts)