def get_caches_dict(args): """ DEPRECATED use get_caches instead get name of all index keys found in one specific TimeseriesArray parameters: /<str>project/<str>tablename/<str>datestring returns: <json><list> of all index combinations """ # the same for all vicenter data project, tablename, datestring = args[:3] datalogger = DataLogger(basedir, project, tablename) keys = [] for cache in datalogger.list_ts_caches(datestring): key = dict(zip(datalogger.index_keynames, cache[1][1])) keys.append(key) return json.dumps(keys)
def get_ts_caches(args): """ DEPRECATED use get_caches instead get name of all index keys found in one specific TimeseriesArray useful to build autofill input fields attention: there are only ts caches if the raw data is already converted ex: Datalogger/get_ts_caches/{projectname}/{tablename}/{datestring} datstring has to be in format YYYY-MM-DD returns: json(list of all index keys) """ project, tablename, datestring = args[:3] datalogger = DataLogger(basedir, project, tablename) keys = [] for cache in datalogger.list_ts_caches(datestring): keys.append(cache[1]) return json.dumps(keys)