以下是我看到的一些选项。
1 - 使用jobReference.jobId作业的属性
您可以对其进行设置,使其包含您在作业 API 调用时可用的任何信息
jobReference.jobId string [Required] The ID of the job. The ID must contain
only letters (a-z, A-Z), numbers (0-9),
underscores (_), or dashes (-).
The maximum length is 1,024 characters.
我认为 1024 个字符足以编码您需要的任何元数据
2 - 另一种选择是使用工作的configuration.labels 属性。
configuration.labels object [Experimental] The labels associated with this job.
You can use these to organize and group your jobs.
Label keys and values can be no longer than 63
characters, can only contain lowercase letters, numeric
characters, underscores and dashes. International
characters are allowed. Label values are optional.
Label keys must start with a letter and each label in
the list must have a different key.
您可以在Labeling Datasets 阅读有关labeling 的更多信息。即使它描述了数据集的标签 - 它与 Jobs 使用的概念完全相同
最后,我建议避免调整用户的查询——尤其是为了插入一些元数据