Logging audit Kode AI Bisnis

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

Nama layanan

Untuk melihat log audit Kode AI Bisnis, lakukan hal berikut:

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

    Buka Logs Explorer

  2. Salin dan tempel kueri berikut ke dalam kolom Query di 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 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.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

Log audit antarmuka API

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

google.cloud.businessaicode.v1alpha.ManagementService

Log audit berikut dikaitkan dengan metode yang termasuk dalam google.cloud.businessaicode.v1alpha.ManagementService.

FetchConfig

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

SelfAssignLicense

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

google.cloud.businessaicode.v1alpha.PredictionService

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

FetchQuotaStatus

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

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 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 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 metode ini: protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry"

StreamGenerateContent

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

google.cloud.businessaicode.v1alpha.TelemetryService

Log audit berikut dikaitkan dengan metode yang termasuk dalam google.cloud.businessaicode.v1alpha.TelemetryService.

SendTelemetry

  • Metode: google.cloud.businessaicode.v1alpha.TelemetryService.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.TelemetryService.SendTelemetry"

google.cloud.businessaicode.v1beta.ManagementService

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

FetchConfig

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

SelfAssignLicense

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

google.cloud.businessaicode.v1beta.PredictionService

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

FetchQuotaStatus

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

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 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 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 metode ini: protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry"

StreamGenerateContent

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

google.cloud.businessaicode.v1beta.TelemetryService

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

SendTelemetry

  • Metode: google.cloud.businessaicode.v1beta.TelemetryService.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.TelemetryService.SendTelemetry"

google.cloud.businessaicode.v1main.PredictionService

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

QueryConfig

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

SendTelemetry

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

Metode yang tidak menghasilkan log audit

Metode mungkin tidak menghasilkan log audit karena satu atau beberapa alasan berikut:

  • Ini adalah metode bervolume tinggi yang melibatkan biaya pembuatan dan penyimpanan log yang signifikan.
  • Nilai auditnya rendah.
  • Audit atau log platform lain sudah menyediakan cakupan metode.

Metode berikut tidak menghasilkan log audit:

  • google.cloud.businessaicode.v1alpha.ManagementService.FetchLicenses
  • google.cloud.businessaicode.v1beta.ManagementService.FetchLicenses