gpt4 book ai didi

python - 通过 Python API 提交的 BigQuery 作业历史记录

转载 作者:行者123 更新时间:2023-12-01 02:24:02 30 4
gpt4 key购买 nike

我正在使用 Python API 提交 BigQuery 查询,但是当我访问 bigquery.cloud.google.com 并在查询历史记录中时,我无法找到通过 API 提交的查询。在我的用例中,我试图跟踪每个查询中正在处理的数据量以及整个 BigQuery 帐户中处理的数据总量。有关如何查找上述内容的任何信息都会有所帮助。

谢谢。

最佳答案

在 BQ UI 中,您只能查看由您登录的帐户发出的作业。这就是为什么当您使用个人帐户登录时看不到服务帐户发布的职位的原因

要获取您的服务帐户发布的作业 - 您可以使用 Jobs.list API

Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property.

关于python - 通过 Python API 提交的 BigQuery 作业历史记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47583485/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com