我有如下数据: -
data = [
{
"name": "test4",
"datapoints": [
[currentTimestamp, count]
],
"tags": {
"name" : "MyName",
"dept" : "Engineering",
"city" : "Delhi",
"state": "Delhi",
"country" : "India"
}
}
]
我正在使用这样的python脚本将数据发送到KairosDB服务器 -
response = requests.post("http://localhost:8080" + "/api/v1/datapoints", json.dumps(data))
我知道这些数据将存储在三个不同的表中:-
1. string_index
2. row_keys
3. data_points
我的查询是:-
{
"metrics": [
{
"tags": {},
"name": "test4",
"aggregators": [
{
"name": "sum",
"sampling": {
"value": "1",
"unit": "milliseconds"
}
}
]
}
],
"plugins": [],
"cache_time": 0,
"start_absolute": 1529346600000
}
现在我想知道如何从这三个表中获取数据,我的意思是从 Cassandra 检索数据的流程是什么。
提前致谢。