Logging audit Kode AI Bisnis

Dokumen ini mencantumkan metode yang diaudit untuk Business AI Code. Google Cloud layanan membuat log audit yang mencatat aktivitas administratif dan akses dalam Google Cloud resource Anda. Untuk informasi selengkapnya tentang Cloud Audit Logs, lihat referensi berikut:

Nama layanan

Untuk melihat log audit Business AI Code, lakukan hal berikut:

  1. Di Google Cloud konsol, buka halaman Logs Explorer:

    Buka Logs Explorer

  2. Salin dan tempelkan kueri berikut ke dalam kolom Query Logs Explorer, lalu klik Run query.

        protoPayload.serviceName="businessaicode.googleapis.com"
      

Metode menurut jenis izin

Setiap izin IAM memiliki properti type, yang nilainya adalah enum yang dapat berupa salah satu dari empat nilai: ADMIN_READ, ADMIN_WRITE, DATA_READ, atau DATA_WRITE. Saat Anda memanggil metode, Business AI Code akan membuat log audit yang kategorinya bergantung pada properti type izin yang diperlukan untuk menjalankan metode. Metode yang memerlukan izin IAM dengan nilai properti type dari DATA_READ, DATA_WRITE, atau ADMIN_READ akan menghasilkan log audit Akses Data. Metode yang memerlukan izin IAM dengan nilai properti type dari ADMIN_WRITE akan menghasilkan log audit Aktivitas Admin.

Metode API dalam daftar berikut yang ditandai dengan (LRO) adalah operasi yang berjalan lama (LRO). Metode ini biasanya menghasilkan dua entri log audit: satu saat operasi dimulai dan satu lagi saat operasi berakhir. Untuk mengetahui informasi selengkapnya, lihat Log audit untuk operasi yang berjalan lama.
Jenis izin Metode
DATA_READ google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent
google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig
google.cloud.businessaicode.v1beta.PredictionService.GenerateContent
google.cloud.businessaicode.v1beta.PredictionService.QueryConfig
DATA_WRITE google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry
google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry

Log audit antarmuka API

Untuk mengetahui informasi tentang cara dan izin mana yang dievaluasi untuk setiap metode, lihat dokumentasi Identity and Access Management untuk Business AI Code.

google.cloud.businessaicode.v1alpha.PredictionService

Log audit berikut terkait dengan metode milik google.cloud.businessaicode.v1alpha.PredictionService.

GenerateContent

  • Metode: google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent
  • Jenis log audit: Akses data
  • Izin:
    • businessaicode.locations.generateContent - DATA_READ
  • Metodenya adalah operasi streaming atau yang berjalan lama: Tidak.
  • Filter untuk metode ini: protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent"

QueryConfig

  • Metode: google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig
  • Jenis log audit: Akses data
  • Izin:
    • businessaicode.locations.queryConfiguration - DATA_READ
  • Metodenya adalah operasi streaming atau yang berjalan lama: Tidak.
  • Filter untuk metode ini: protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig"

SendTelemetry

  • Metode: google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry
  • Jenis log audit: Akses data
  • Izin:
    • businessaicode.locations.sendTelemetry - DATA_WRITE
  • Metodenya adalah operasi streaming atau yang berjalan lama: Tidak.
  • Filter untuk metode ini: protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry"

google.cloud.businessaicode.v1beta.PredictionService

Log audit berikut dikaitkan dengan metode yang termasuk dalam google.cloud.businessaicode.v1beta.PredictionService.

GenerateContent

  • Metode: google.cloud.businessaicode.v1beta.PredictionService.GenerateContent
  • Jenis log audit: Akses data
  • Izin:
    • businessaicode.locations.generateContent - DATA_READ
  • Metodenya adalah operasi streaming atau yang berjalan lama: Tidak.
  • Filter untuk metode ini: protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.GenerateContent"

QueryConfig

  • Metode: google.cloud.businessaicode.v1beta.PredictionService.QueryConfig
  • Jenis log audit: Akses data
  • Izin:
    • businessaicode.locations.queryConfiguration - DATA_READ
  • Metodenya adalah operasi streaming atau yang berjalan lama: Tidak.
  • Filter untuk metode ini: protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.QueryConfig"

SendTelemetry

  • Metode: google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry
  • Jenis log audit: Akses data
  • Izin:
    • businessaicode.locations.sendTelemetry - DATA_WRITE
  • Metodenya adalah operasi streaming atau yang berjalan lama: Tidak.
  • Filter untuk metode ini: protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry"