code: def get_metrics(self, from_time=None, to_time=None, metrics=None, view=None):
      
      return self._get_resource_root().get_metrics(self._path() + '/metrics',
          from_time, to_time, metrics, view)
docs: This endpoint is not supported as of v6. Use the timeseries API
      instead. To get all metrics for a role with the timeseries API use
      the query:
  
      'select * where roleName = $ROLE_NAME'.
  
      To get specific metrics for a role use a comma-separated list of
      the metric names as follows:
  
      'select $METRIC_NAME1, $METRIC_NAME2 where roleName = $ROLE_NAME'.
  
      For more information see http://tiny.cloudera.com/tsquery_doc
      @param from_time: A datetime; start of the period to query (optional).
      @param to_time: A datetime; end of the period to query (default = now).
      @param metrics: List of metrics to query (default = all).
      @param view: View to materialize ('full' or 'summary')
      @return: List of metrics and their readings.