(maas_store, entity)
return {'entity_id': entity.id,
            'entity_label': entity.label,
            'checks': [{'id': check.id,
                        'label': check.label,
                        'type': check.type,
                        'metrics': _metric_list_for_check(maas_store, entity, check)}
                       for check in entity.checks.values()]}
Creates the metrics list for one entity.
Creates the metrics list for one entity.
Creates the metrics list for one entity .
def _metric_list_for_entity(maas_store, entity):
    """
    Creates the metrics list for one entity.
    """
    return {'entity_id': entity.id,
            'entity_label': entity.label,
            'checks': [{'id': check.id,
                        'label': check.label,
                        'type': check.type,
                        'metrics': _metric_list_for_check(maas_store, entity, check)}
                       for check in entity.checks.values()]}
def _metric_list_for_entity ( maas_store , entity ) : return { 'entity_id' : entity . id , 'entity_label' : entity . label , 'checks' : [ { 'id' : check . id , 'label' : check . label , 'type' : check . type , 'metrics' : _metric_list_for_check ( maas_store , entity , check ) } for check in entity . checks . values ( ) ] }