This commit is contained in:
DingZQ
2025-02-23 10:47:55 +08:00
parent cfa5df6dc4
commit e02e78d2cc

View File

@@ -2154,7 +2154,7 @@ if __name__ == "__main__":
# step3: 查询测试示例
with InfluxDBClient(url=url, token=token, org=org_name, timeout=1000*10000) as client:
create_and_initialize_buckets(client=client, org_name=org_name)
# create_and_initialize_buckets(client=client, org_name=org_name)
# # 示例1query_latest_record_by_ID
# bucket_name = "realtime_simulation_result" # 数据存储的 bucket 名称
# node_id = "ZBBDTZDP000022" # 查询的节点 ID
@@ -2218,8 +2218,8 @@ if __name__ == "__main__":
# print("Node 数据:", node_records)
# print("Link 数据:", link_records)
# results = query_all_record_by_date('2025-02-12', client=client)
results = query_all_record_by_date('2025-02-23', client=client)
# results = query_all_record_by_time('2025-02-12T14:15:00+08:00', client=client)
# print(results)
print(results)