(self, request, tenant_id)
return json.dumps({'metadata': metadata, 'values': values})
All available metrics.
All available metrics.
All available metrics .
def views_metric_list(self, request, tenant_id):
        """
        All available metrics.
        """
        entities = self._entity_cache_for_tenant(tenant_id).entities
        maas_store = self._entity_cache_for_tenant(tenant_id).maas_store
        values = [_metric_list_for_entity(maas_store, entity)
                  for entity in entities.values()]

        metadata = {'count': len(values),
                    'marker': None,
                    'next_marker': None,
                    'limit': 1000,
                    'next_href': None}

        request.setResponseCode(200)
        return json.dumps({'metadata': metadata, 'values': values})
def views_metric_list ( self , request , tenant_id ) : entities = self . _entity_cache_for_tenant ( tenant_id ) . entities maas_store = self . _entity_cache_for_tenant ( tenant_id ) . maas_store values = [ _metric_list_for_entity ( maas_store , entity ) for entity in entities . values ( ) ] metadata = { 'count' : len ( values ) , 'marker' : None , 'next_marker' : None , 'limit' : 1000 , 'next_href' : None } request . setResponseCode ( 200 ) return json . dumps ( { 'metadata' : metadata , 'values' : values } )