def METHOD_NAME(
        self, entity_type, entity_name, entity_uuid='', metric_id='',
        step=300, limit=1, start='', stop='', tenant='admin',
        tenant_uuid='', **query_options):
    """
    This is utility method to fetch metrics from the controller.
    Eg.
    1. api_utils.get_metrics('virtualservice', 'vs1',
        metric_id='l4_client.avg_bandwidth')
        This gets 1 vs1's network bandwidth metrics.
    2.
    :param entity_type: 'virtualservice, serviceengine, pool, tenant'
    :param entity_name: string corresponding to the object
    :param entity_uuid: uuid of the entity. If entity_uuid and entity_name
        are blank then it is treated as collection API where metrics
        for all the objects in the tenant would be fetched
    :param metric_id: comma separated string of metrics or list of
        metric_ids
    :param step: granularity of the metrics
    :param limit: number of data points for the metrics
    :param start: ISO8901 compatible start time for the metrics. Controller
        will adjust the start time based on the Stop time if not provided
    :param stop: ISO8901 compatible start time for the metrics. Controller
        sets stop as utc.now if not provided in the API
    :tenant: name of the tenant
    :tenant_uuid: uuid of the tenant
    :query_options: All the query_options are sent as the query parameters
        for the API call as per the Avi API Guide.
    """
    if entity_type == 'controller':
        path = 'analytics/metrics/%s' % entity_type
    else:
        if entity_name and not entity_uuid:
            resp = self.api.get_object_by_name(entity_type, entity_name)
            entity_uuid = self.api.get_obj_uuid(resp)
        path = 'analytics/metrics/%s/%s' % (entity_type, entity_uuid)
    if type(metric_id) == list:
        metric_id = ','.join(metric_id)
    if metric_id:
        query_options['metric_id'] = metric_id
    query_options['step'] = step
    query_options['limit'] = limit
    if start:
        query_options['start'] = start
    if stop:
        query_options['stop'] = stop
    rsp = self.api.get(path, tenant=tenant, tenant_uuid=tenant_uuid,
                       params=query_options)
    return rsp.json()