def query(self, node, field, aggf, span, end, interval):
        r = requests.post(self.query_uri, data=json.dumps({
            'start': end - span,
            'end': end,
            'cf': aggf,
            'endpoint_counters': [{
                'endpoint': self.prefix,
                'counter': field + '/service=redisctl&addr=' + node,
            }],
        })).json()[0]['Values']
        if r is None:
            return []
        if len(r) > POINT_LIMIT:
            r = r[::len(r) / POINT_LIMIT + 1]
        return [[x['timestamp'], x['value']]
                for x in r if x['value'] is not None]
dataset/ETHPy150Open HunanTV/redis-ctl/stats/db.py/Client.query/original