גישה ליומני הביקורת של Cloud ב-Business AI Code

יומני הביקורת של Cloud ל-Business AI Code מאפשרים לעקוב אחרי פעולות ניהול וגישה לנתונים במשאבים, כדי לעזור לכם לעקוב אחרי שינויים בגישה ובהגדרות. אתם יכולים לשלוח שאילתות ליומנים האלה ב-Logs Explorer ולבדוק אילו שיטות של Business AI Code API יוצרות יומני ביקורת ב-Cloud.

במאמרים הבאים אפשר לקרוא מידע נוסף על יומני הביקורת של Cloud:

שם השירות

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

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

    כניסה לדף 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.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

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

google.cloud.businessaicode.v1alpha.ManagementService

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

FetchConfig

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

SelfAssignLicense

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

google.cloud.businessaicode.v1alpha.PredictionService

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

FetchQuotaStatus

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

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"

StreamGenerateContent

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

google.cloud.businessaicode.v1alpha.TelemetryService

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

SendTelemetry

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

google.cloud.businessaicode.v1beta.ManagementService

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

FetchConfig

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

SelfAssignLicense

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

google.cloud.businessaicode.v1beta.PredictionService

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

FetchQuotaStatus

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

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"

StreamGenerateContent

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

google.cloud.businessaicode.v1beta.TelemetryService

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

SendTelemetry

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

google.cloud.businessaicode.v1main.PredictionService

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

QueryConfig

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

SendTelemetry

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

אילו methods לא יוצרות יומני ביקורת

יכולות להיות כמה סיבות שב-method מסוימת לא נוצרים יומני ביקורת:

  • מדובר ב-method שיש בה נפח גבוה של יומנים, שיצירה שלהם עלולה לגרור עלויות גבוהות של אחסון ויצירה.
  • הערך של הביקורת נמוך.
  • כבר יש יומן ביקורת או יומן פלטפורמה אחרים שמכסים את ה-method.

ה-methods הבאות לא יוצרות יומני ביקורת:

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