code: def get(method, hmc, uri, uri_parms, logon_required):
          
          try:
              metrics_context = hmc.lookup_by_uri(uri)
          except KeyError:
              raise InvalidResourceError(method, uri)
          result = metrics_context.get_metric_values_response()
          return result
docs: Operation: Get Metrics.