Business AI Code 稽核記錄

本文列出 Business AI Code 的稽核方法。 Google Cloud 服務會產生稽核記錄,用以記錄 Google Cloud 資源中的管理和存取活動。如要進一步瞭解 Cloud 稽核記錄,請參閱以下內容:

服務名稱

如要查看 Business AI 程式碼稽核記錄,請按照下列步驟操作:

  1. 前往 Google Cloud 控制台的「Logs Explorer」頁面:

    前往 Logs Explorer

  2. 複製下列查詢並貼到「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,則會產生管理員活動稽核記錄。

下表列出的 API 方法中,如標有 (LRO) 字樣,表示為長時間執行的作業。這類方法通常會產生兩個稽核記錄項目,作業開始和結束時各一個。詳情請參閱「長時間執行的作業稽核記錄」。
權限類型 方法
DATA_READ google.cloud.businessaicode.v1alpha.ManagementService.FetchConfig
google.cloud.businessaicode.v1alpha.PredictionService.FetchQuotaStatus
google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent
google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig
google.cloud.businessaicode.v1alpha.PredictionService.StreamGenerateContent
google.cloud.businessaicode.v1beta.ManagementService.FetchConfig
google.cloud.businessaicode.v1beta.PredictionService.FetchQuotaStatus
google.cloud.businessaicode.v1beta.PredictionService.GenerateContent
google.cloud.businessaicode.v1beta.PredictionService.QueryConfig
google.cloud.businessaicode.v1beta.PredictionService.StreamGenerateContent
google.cloud.businessaicode.v1main.PredictionService.QueryConfig
DATA_WRITE google.cloud.businessaicode.v1alpha.ManagementService.SelfAssignLicense
google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry
google.cloud.businessaicode.v1alpha.TelemetryService.SendTelemetry
google.cloud.businessaicode.v1beta.ManagementService.SelfAssignLicense
google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry
google.cloud.businessaicode.v1beta.TelemetryService.SendTelemetry
google.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.FetchLicenses
  • google.cloud.businessaicode.v1beta.ManagementService.FetchLicenses