Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# データの生成
ar_data = generate(1.4, -0.48, 5, 0.5, 100)
# データをアップロードしやすい形式に変換
timestamps = sorted(range(0, 100))
contents = []
for timestamp in timestamps:
("timestamp", str(timestamp)), # 必ず文字列に変換すること
("value", str(ar_data[timestamp]))
# upload
put_logs(client, project, logstore, contents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment