class_docstr: Class for generating metrics and printing it to stdout of the worker
class_docstr_tok: ["Class","for","generating","metrics","and","printing","it","to","stdout","of","the","worker"]
docstr: Update function for Metric class
  
  Parameters
  ----------
  value : int, float
      metric to be updated
docstr_tok: ["Update","function","for","Metric","class","Parameters","--","--","--","--","--","value",":","int",",","float","metric","to","be","updated"]
code: def update(self, value):
      """
      Update function for Metric class
  
      Parameters
      ----------
      value : int, float
          metric to be updated
      """
      self._caching_metric.add_or_update(
          value, self.dimension_values, request_id=self.request_id
      )
  
file_path: serve/ts/metrics/metric.py
imports: import socket
  import time
  from builtins import str
  from collections import OrderedDict
  from ts.metrics.caching_metric import CachingMetric
  from ts.metrics.metric_type_enum import MetricTypes
  from ts.metrics.unit import Units
label_desc: Use image node_id 2 for calling the Metric obj's underlying member method code with example usage: obj.update(value) without return types