רישום ביומן הביקורת של Business AI Code

במאמר הזה מפורטות השיטות שנבדקו ב-Business AI Code.שירותי Google Cloud יוצרים יומני ביקורת שבהם מתועדים אירועי גישה למשאבי Google Cloud והפעולות שהאדמינים עשו בהם. אתם יכולים לקרוא מידע נוסף על יומני הביקורת של Cloud במאמרים האלה:

שם השירות

כדי לראות את יומני הביקורת של Business AI Code:

  1. נכנסים לדף Logs Explorer במסוף Google Cloud :

    כניסה לדף Logs Explorer

  2. מעתיקים את השאילתה הבאה לשדה Query ב-Logs Explorer ולוחצים על Run query.

        protoPayload.serviceName="businessaicode.googleapis.com"
      

קודי Method לפי סוג ההרשאה

לכל הרשאה ב-IAM יש מאפיין type עם enum שיכול להיות אחד מארבעת הערכים הבאים: ADMIN_READ,‏ ADMIN_WRITE,‏ DATA_READ או DATA_WRITE. כשקוראים ל-method, במסגרת Business AI Code נוצר יומן ביקורת שהקטגוריה שלו תלויה במאפיין type של ההרשאה שנדרשת לביצוע ה-method. ה-methods שבשבילן צריך הרשאה ב-IAM עם הערכים DATA_READ‏, DATA_WRITE או ADMIN_READ במאפיין type יוצרות יומני ביקורת של Data Access. ה-methods שבשבילן צריך הרשאה ב-IAM עם הערכים ADMIN_WRITE במאפיין type יוצרות יומני ביקורת של Admin Activity.

ה-methods של ה-API ברשימה הבאה שמסומנות ב-(LRO) הן פעולות ממושכות. בדרך כלל, ה-methods האלה יוצרות שתי רשומות ביומן הביקורת: אחת כשהפעולה מתחילה ואחת כשהיא מסתיימת. אתם יכולים לקרוא מידע נוסף במאמר בנושא יומני ביקורת של פעולות ממושכות.
סוג ההרשאה Methods
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

יומני ביקורת של ממשק ה-API

במאמר בנושא ניהול הזהויות והרשאות הגישה (IAM) ל-Business AI Code מוסבר איך מתבצעת הבדיקה של ההרשאות לכל method ואילו הרשאות נבדקות.

google.cloud.businessaicode.v1alpha.PredictionService

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.cloud.businessaicode.v1alpha.PredictionService.

GenerateContent

  • Method:‏ google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • businessaicode.locations.generateContent - DATA_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.GenerateContent"

QueryConfig

  • Method:‏ google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • businessaicode.locations.queryConfiguration - DATA_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.QueryConfig"

SendTelemetry

  • Method:‏ google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • businessaicode.locations.sendTelemetry - DATA_WRITE
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetry"

google.cloud.businessaicode.v1beta.PredictionService

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.cloud.businessaicode.v1beta.PredictionService.

GenerateContent

  • Method:‏ google.cloud.businessaicode.v1beta.PredictionService.GenerateContent
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • businessaicode.locations.generateContent - DATA_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.GenerateContent"

QueryConfig

  • Method:‏ google.cloud.businessaicode.v1beta.PredictionService.QueryConfig
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • businessaicode.locations.queryConfiguration - DATA_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.QueryConfig"

SendTelemetry

  • Method:‏ google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • businessaicode.locations.sendTelemetry - DATA_WRITE
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.businessaicode.v1beta.PredictionService.SendTelemetry"