(maas_store, entity, check)
return [{'name': metric.name,
             'type': metric.type,
             'unit': metric.unit}
            for metric in maas_store.check_types[check.type].metrics]
Computes the metrics list for a given check.

    Remote checks return a metric for each monitoring zone and
    each type of metric for the check type. Agent checks return
    a metric for each metric type on the check type. Check types
    that Mimic doesn't know about generate an empty list.
Computes the metrics list for a given check.
Computes the metrics list for a given check .
def _metric_list_for_check(maas_store, entity, check):
    """
    Computes the metrics list for a given check.

    Remote checks return a metric for each monitoring zone and
    each type of metric for the check type. Agent checks return
    a metric for each metric type on the check type. Check types
    that Mimic doesn't know about generate an empty list.
    """
    if check.type not in maas_store.check_types:
        return []

    if REMOTE_CHECK_TYPE_REGEX.match(check.type):
        return [{'name': '{0}.{1}'.format(mz, metric.name),
                 'type': metric.type,
                 'unit': metric.unit}
                for metric in maas_store.check_types[check.type].metrics
                for mz in check.monitoring_zones_poll]

    return [{'name': metric.name,
             'type': metric.type,
             'unit': metric.unit}
            for metric in maas_store.check_types[check.type].metrics]
def _metric_list_for_check ( maas_store , entity , check ) : if check . type not in maas_store . check_types : return [ ] if REMOTE_CHECK_TYPE_REGEX . match ( check . type ) : return [ { 'name' : '{0}.{1}' . format ( mz , metric . name ) , 'type' : metric . type , 'unit' : metric . unit } for metric in maas_store . check_types [ check . type ] . metrics for mz in check . monitoring_zones_poll ] return [ { 'name' : metric . name , 'type' : metric . type , 'unit' : metric . unit } for metric in maas_store . check_types [ check . type ] . metrics ]