class_docstr: DEPRECATED
  Class for creating, modifying different metrics. And keep them in a dictionary
class_docstr_tok: ["DEPRECATED","Class","for","creating",",","modifying","different","metrics",".","And","keep","them","in","a","dictionary"]
docstr: Provide the request id dimension
  
  Parameters
  ----------
  
  idx : int
      request_id index in batch
docstr_tok: ["Provide","the","request","id","dimension","Parameters","--","--","--","--","--","idx",":","int","request_id","index","in","batch"]
code: def _get_req(self, idx):
      """
      Provide the request id dimension
  
      Parameters
      ----------
  
      idx : int
          request_id index in batch
      """
      # check if request id for the metric is given, if so use it else have a list of all.
      req_id = self.request_ids
      if isinstance(req_id, dict):
          req_id = ",".join(self.request_ids.values())
      if (
          idx is not None
          and self.request_ids is not None
          and idx in self.request_ids
      ):
          req_id = self.request_ids[idx]
      return req_id
  
file_path: serve/ts/metrics/metrics_store.py
imports: from builtins import str
  from ts.metrics.dimension import Dimension
  from ts.metrics.metric import Metric
label_desc: Use image node_id 3 for calling the MetricsStore obj's underlying member method code with example usage: obj._get_req(idx) and returns: req_id