本文档列出了 Business AI Code 的受审核方法。 Google Cloud 服务会生成审核日志,以记录 Google Cloud 资源中的管理和访问活动。如需详细了解 Cloud Audit Logs,请参阅以下内容:
服务名称
如需查看 Business AI 代码审核日志,请执行以下操作:
在 Google Cloud 控制台中,前往 Logs Explorer 页面:
将以下查询复制并粘贴到Logs Explorer的查询字段中,然后点击运行查询。
protoPayload.serviceName="businessaicode.googleapis.com"
方法(按权限类型)
每个 IAM 权限都有一个 type 属性,该属性的值是一个枚举,可以是以下四个值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或 DATA_WRITE。当您调用某个方法时,Business AI Code 会生成一个审核日志,其类别取决于执行该方法所需权限的 type 属性。需要 IAM 权限且 type 属性值为 DATA_READ、DATA_WRITE 或 ADMIN_READ 的方法会生成数据访问审核日志。需要 IAM 权限且 type 属性值为 ADMIN_WRITE 的方法会生成管理员活动审核日志。
| 权限类型 | 方法 |
|---|---|
DATA_READ |
google.cloud.businessaicode.v1alpha.ManagementService.FetchConfiggoogle.cloud.businessaicode.v1alpha.PredictionService.FetchQuotaStatusgoogle.cloud.businessaicode.v1alpha.PredictionService.GenerateContentgoogle.cloud.businessaicode.v1alpha.PredictionService.QueryConfiggoogle.cloud.businessaicode.v1alpha.PredictionService.StreamGenerateContentgoogle.cloud.businessaicode.v1beta.ManagementService.FetchConfiggoogle.cloud.businessaicode.v1beta.PredictionService.FetchQuotaStatusgoogle.cloud.businessaicode.v1beta.PredictionService.GenerateContentgoogle.cloud.businessaicode.v1beta.PredictionService.QueryConfiggoogle.cloud.businessaicode.v1beta.PredictionService.StreamGenerateContentgoogle.cloud.businessaicode.v1main.PredictionService.QueryConfig |
DATA_WRITE |
google.cloud.businessaicode.v1alpha.ManagementService.SelfAssignLicensegoogle.cloud.businessaicode.v1alpha.PredictionService.SendTelemetrygoogle.cloud.businessaicode.v1alpha.TelemetryService.SendTelemetrygoogle.cloud.businessaicode.v1beta.ManagementService.SelfAssignLicensegoogle.cloud.businessaicode.v1beta.PredictionService.SendTelemetrygoogle.cloud.businessaicode.v1beta.TelemetryService.SendTelemetrygoogle.cloud.businessaicode.v1main.PredictionService.SendTelemetry |
API 接口审核日志
如需了解如何评估每种方法的权限以及评估哪些权限,请参阅 Business AI Code 的 Identity and Access Management 文档。
google.cloud.businessaicode.v1alpha.ManagementService
以下审核日志与属于 google.cloud.businessaicode.v1alpha.ManagementService 的方法相关联。
FetchConfig
- 方法:
google.cloud.businessaicode.v1alpha.ManagementService.FetchConfig - 审核日志类型:数据访问
- 权限:
businessaicode.locations.queryConfiguration - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.ManagementService.FetchConfig"
SelfAssignLicense
- 方法:
google.cloud.businessaicode.v1alpha.ManagementService.SelfAssignLicense - 审核日志类型:数据访问
- 权限:
businessaicode.locations.selfAssignLicense - DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.ManagementService.SelfAssignLicense"
google.cloud.businessaicode.v1alpha.PredictionService
以下审核日志与属于 google.cloud.businessaicode.v1alpha.PredictionService 的方法相关联。
FetchQuotaStatus
- 方法:
google.cloud.businessaicode.v1alpha.PredictionService.FetchQuotaStatus - 审核日志类型:数据访问
- 权限:
businessaicode.locations.fetchQuotaStatus - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.FetchQuotaStatus"
GenerateContent
- 方法:
google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent - 审核日志类型:数据访问
- 权限:
businessaicode.locations.generateContent - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent"
QueryConfig
- 方法:
google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig - 审核日志类型:数据访问
- 权限:
businessaicode.locations.queryConfiguration - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig"
SendTelemetry
- 方法:
google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry - 审核日志类型:数据访问
- 权限:
businessaicode.locations.sendTelemetry - DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry"
StreamGenerateContent
- 方法:
google.cloud.businessaicode.v1alpha.PredictionService.StreamGenerateContent - 审核日志类型:数据访问
- 权限:
businessaicode.locations.generateContent - DATA_READ
- 方法是长时间运行的操作或流式传输操作:
流式传输 RPC
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.StreamGenerateContent"
google.cloud.businessaicode.v1alpha.TelemetryService
以下审核日志与属于 google.cloud.businessaicode.v1alpha.TelemetryService 的方法相关联。
SendTelemetry
- 方法:
google.cloud.businessaicode.v1alpha.TelemetryService.SendTelemetry - 审核日志类型:数据访问
- 权限:
businessaicode.locations.sendTelemetry - DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1alpha.TelemetryService.SendTelemetry"
google.cloud.businessaicode.v1beta.ManagementService
以下审核日志与属于 google.cloud.businessaicode.v1beta.ManagementService 的方法相关联。
FetchConfig
- 方法:
google.cloud.businessaicode.v1beta.ManagementService.FetchConfig - 审核日志类型:数据访问
- 权限:
businessaicode.locations.queryConfiguration - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.ManagementService.FetchConfig"
SelfAssignLicense
- 方法:
google.cloud.businessaicode.v1beta.ManagementService.SelfAssignLicense - 审核日志类型:数据访问
- 权限:
businessaicode.locations.selfAssignLicense - DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.ManagementService.SelfAssignLicense"
google.cloud.businessaicode.v1beta.PredictionService
以下审核日志与属于 google.cloud.businessaicode.v1beta.PredictionService 的方法相关联。
FetchQuotaStatus
- 方法:
google.cloud.businessaicode.v1beta.PredictionService.FetchQuotaStatus - 审核日志类型:数据访问
- 权限:
businessaicode.locations.fetchQuotaStatus - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.FetchQuotaStatus"
GenerateContent
- 方法:
google.cloud.businessaicode.v1beta.PredictionService.GenerateContent - 审核日志类型:数据访问
- 权限:
businessaicode.locations.generateContent - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.GenerateContent"
QueryConfig
- 方法:
google.cloud.businessaicode.v1beta.PredictionService.QueryConfig - 审核日志类型:数据访问
- 权限:
businessaicode.locations.queryConfiguration - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.QueryConfig"
SendTelemetry
- 方法:
google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry - 审核日志类型:数据访问
- 权限:
businessaicode.locations.sendTelemetry - DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry"
StreamGenerateContent
- 方法:
google.cloud.businessaicode.v1beta.PredictionService.StreamGenerateContent - 审核日志类型:数据访问
- 权限:
businessaicode.locations.generateContent - DATA_READ
- 方法是长时间运行的操作或流式传输操作:
流式传输 RPC
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.StreamGenerateContent"
google.cloud.businessaicode.v1beta.TelemetryService
以下审核日志与属于 google.cloud.businessaicode.v1beta.TelemetryService 的方法相关联。
SendTelemetry
- 方法:
google.cloud.businessaicode.v1beta.TelemetryService.SendTelemetry - 审核日志类型:数据访问
- 权限:
businessaicode.locations.sendTelemetry - DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1beta.TelemetryService.SendTelemetry"
google.cloud.businessaicode.v1main.PredictionService
以下审核日志与属于 google.cloud.businessaicode.v1main.PredictionService 的方法相关联。
QueryConfig
- 方法:
google.cloud.businessaicode.v1main.PredictionService.QueryConfig - 审核日志类型:数据访问
- 权限:
businessaicode.locations.queryConfiguration - DATA_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1main.PredictionService.QueryConfig"
SendTelemetry
- 方法:
google.cloud.businessaicode.v1main.PredictionService.SendTelemetry - 审核日志类型:数据访问
- 权限:
businessaicode.locations.sendTelemetry - DATA_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.businessaicode.v1main.PredictionService.SendTelemetry"
不会生成审核日志的方法
由于以下一个或多个原因,方法可能不会生成审核日志:
- 这是一种会产生大量日志的方法,日志生成和存储的费用高昂。
- 它的审核价值较低。
- 其他审核或平台日志已提供方法覆盖功能。
以下方法不会生成审核日志:
google.cloud.businessaicode.v1alpha.ManagementService.FetchLicensesgoogle.cloud.businessaicode.v1beta.ManagementService.FetchLicenses