Пример #1
0
    def findStaticsByProject_id(project_id, counter_name):
        if not MongoEngineUtil.ceilo_collection:
            MongoEngineUtil.__init_mongo_connector()

        modelList = Statistics300.objects(project_id=project_id,
                                          counter_name=counter_name)
        return modelList
Пример #2
0
    def findStaticsByResource_idAndCounter_name(resource_id, counter_name):
        if not MongoEngineUtil.ceilo_collection:
            MongoEngineUtil.__init_mongo_connector()

        modelList = Statistics300.objects(resource_id=resource_id,
                                          counter_name=counter_name)
        return modelList
Пример #3
0
    def findStaticsByProject_id(project_id,counter_name):
        if not MongoEngineUtil.ceilo_collection:
            MongoEngineUtil.__init_mongo_connector()

        modelList=Statistics300.objects(project_id=project_id,counter_name=counter_name);
        return modelList
Пример #4
0
    def findStaticsByResource_idAndCounter_name(resource_id,counter_name):
        if not MongoEngineUtil.ceilo_collection:
            MongoEngineUtil.__init_mongo_connector()

        modelList=Statistics300.objects(resource_id=resource_id,counter_name=counter_name);
        return modelList