במאמר הזה מפורטות השיטות שנבדקו ב-Business AI Code.שירותי Google Cloud יוצרים יומני ביקורת שבהם מתועדים אירועי גישה למשאבי Google Cloud והפעולות שהאדמינים עשו בהם. אתם יכולים לקרוא מידע נוסף על יומני הביקורת של Cloud במאמרים האלה:
- הסוגים של יומני הביקורת
- המבנה של רשומות ביומני הביקורת
- שמירה וניתוב של יומני ביקורת
- מחירון מקוצר של Cloud Logging
- הפעלת יומני ביקורת של גישה לנתונים
שם השירות
כדי לראות את יומני הביקורת של Business AI Code:
נכנסים לדף Logs Explorer במסוף Google Cloud :
מעתיקים את השאילתה הבאה לשדה 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 |
|---|---|
DATA_READ |
google.cloud.businessaicode.v1alpha.PredictionService.GenerateContentgoogle.cloud.businessaicode.v1alpha.PredictionService.QueryConfiggoogle.cloud.businessaicode.v1beta.PredictionService.GenerateContentgoogle.cloud.businessaicode.v1beta.PredictionService.QueryConfig |
DATA_WRITE |
google.cloud.businessaicode.v1alpha.PredictionService.SendTelemetrygoogle.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"