Cloud Audit Logs สำหรับคอนโซลการแจ้งเตือนของ Firebase ช่วยให้คุณติดตามการดำเนินการด้านการดูแลระบบและการเข้าถึงข้อมูลในทรัพยากรเพื่อช่วยตรวจสอบการเข้าถึงและการเปลี่ยนแปลงการกำหนดค่า คุณสามารถค้นหาบันทึกเหล่านี้ใน Logs Explorer และตรวจสอบว่าเมธอด Firebase Notifications Console API ใดที่สร้าง Cloud Audit Logs
ดูข้อมูลเพิ่มเติมเกี่ยวกับ Cloud Audit Logs ได้ในเอกสารต่อไปนี้
- ประเภทของบันทึกการตรวจสอบ
- โครงสร้างรายการบันทึกการตรวจสอบ
- การจัดเก็บและการกำหนดเส้นทางบันทึกการตรวจสอบ
- สรุปราคาของ Cloud Logging
- เปิดใช้บันทึกการตรวจสอบการเข้าถึงข้อมูล
ชื่อบริการ
หากต้องการดูบันทึกการตรวจสอบของคอนโซลการแจ้งเตือนของ Firebase ให้ทำดังนี้
ในคอนโซล Google Cloud ให้ไปที่หน้า Logs Explorer ดังนี้
คัดลอกและวางการค้นหาต่อไปนี้ลงในช่องการค้นหาของ Logs Explorer แล้วคลิกเรียกใช้การค้นหา
protoPayload.serviceName="gcmcontextualcampaign-pa.googleapis.com"
วิธีการตามประเภทสิทธิ์
สิทธิ์ IAM แต่ละรายการมีพร็อพเพอร์ตี้ type ซึ่งมีค่าเป็น enum ที่อาจเป็นค่าใดค่าหนึ่งจาก 4 ค่า ได้แก่ ADMIN_READ, ADMIN_WRITE, DATA_READ หรือ DATA_WRITE เมื่อคุณเรียกใช้เมธอด คอนโซลการแจ้งเตือนของ Firebase จะสร้างบันทึกการตรวจสอบซึ่งมีหมวดหมู่ขึ้นอยู่กับพร็อพเพอร์ตี้ type ของสิทธิ์ที่จำเป็นในการดำเนินการเมธอด
เมธอดที่ต้องใช้สิทธิ์ IAM ที่มีค่าพร็อพเพอร์ตี้ type เป็น DATA_READ, DATA_WRITE หรือ ADMIN_READ จะสร้างบันทึกการตรวจสอบการเข้าถึงข้อมูล
เมธอดที่ต้องใช้สิทธิ์ IAM ที่มีค่าพร็อพเพอร์ตี้ type เป็น ADMIN_WRITE จะสร้างบันทึกการตรวจสอบกิจกรรมของผู้ดูแลระบบ
| ประเภทสิทธิ์ | เมธอด |
|---|---|
DATA_READ |
google.internal.gcm.contextual.campaign.v1.CampaignService.GetAnalyticsgoogle.internal.gcm.contextual.campaign.v1.CampaignService.GetAudiencesgoogle.internal.gcm.contextual.campaign.v1.CampaignService.GetFcmStatsgoogle.internal.gcm.contextual.campaign.v1.CampaignService.GetProjectTrackingInfogoogle.internal.gcm.contextual.campaign.v1.CampaignService.GetTopicListgoogle.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.GetAnalyticsLabelListgoogle.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.ListCampaigns |
บันทึกการตรวจสอบอินเทอร์เฟซ API
ดูข้อมูลเกี่ยวกับวิธีและสิทธิ์ที่ได้รับการประเมินสำหรับแต่ละเมธอดได้ที่เอกสารประกอบ Cloud Identity and Access Management สำหรับคอนโซลการแจ้งเตือนของ Firebase
google.internal.gcm.contextual.campaign.v1.CampaignService
บันทึกการตรวจสอบต่อไปนี้เชื่อมโยงกับเมธอดของ google.internal.gcm.contextual.campaign.v1.CampaignService
GetAnalytics
- เมธอด:
google.internal.gcm.contextual.campaign.v1.CampaignService.GetAnalytics - ประเภทบันทึกการตรวจสอบ: การเข้าถึงข้อมูล
- สิทธิ์:
firebasenotifications.messages.list - DATA_READ
- เมธอดเป็นการดำเนินการที่ใช้เวลานานหรือการสตรีม:
ไม่
- ตัวกรองสำหรับเมธอดนี้:
protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetAnalytics"
GetAudiences
- เมธอด:
google.internal.gcm.contextual.campaign.v1.CampaignService.GetAudiences - ประเภทบันทึกการตรวจสอบ: การเข้าถึงข้อมูล
- สิทธิ์:
firebasenotifications.messages.list - DATA_READ
- เมธอดเป็นการดำเนินการที่ใช้เวลานานหรือการสตรีม:
ไม่
- ตัวกรองสำหรับเมธอดนี้:
protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetAudiences"
GetFcmStats
- เมธอด:
google.internal.gcm.contextual.campaign.v1.CampaignService.GetFcmStats - ประเภทบันทึกการตรวจสอบ: การเข้าถึงข้อมูล
- สิทธิ์:
firebasenotifications.messages.list - DATA_READ
- เมธอดเป็นการดำเนินการที่ใช้เวลานานหรือการสตรีม:
ไม่
- ตัวกรองสำหรับเมธอดนี้:
protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetFcmStats"
GetProjectTrackingInfo
- เมธอด:
google.internal.gcm.contextual.campaign.v1.CampaignService.GetProjectTrackingInfo - ประเภทบันทึกการตรวจสอบ: การเข้าถึงข้อมูล
- สิทธิ์:
firebasenotifications.messages.list - DATA_READ
- เมธอดเป็นการดำเนินการที่ใช้เวลานานหรือการสตรีม:
ไม่
- ตัวกรองสำหรับเมธอดนี้:
protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetProjectTrackingInfo"
GetTopicList
- เมธอด:
google.internal.gcm.contextual.campaign.v1.CampaignService.GetTopicList - ประเภทบันทึกการตรวจสอบ: การเข้าถึงข้อมูล
- สิทธิ์:
firebasenotifications.messages.list - DATA_READ
- เมธอดเป็นการดำเนินการที่ใช้เวลานานหรือการสตรีม:
ไม่
- ตัวกรองสำหรับเมธอดนี้:
protoPayload.methodName="google.internal.gcm.contextual.campaign.v1.CampaignService.GetTopicList"
google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService
บันทึกการตรวจสอบต่อไปนี้เชื่อมโยงกับเมธอดของ google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService
GetAnalyticsLabelList
- เมธอด:
google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.GetAnalyticsLabelList - ประเภทบันทึกการตรวจสอบ: การเข้าถึงข้อมูล
- สิทธิ์:
firebasenotifications.messages.list - DATA_READ
- เมธอดเป็นการดำเนินการที่ใช้เวลานานหรือการสตรีม:
ไม่
- ตัวกรองสำหรับเมธอดนี้:
protoPayload.methodName="google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.GetAnalyticsLabelList"
ListCampaigns
- เมธอด:
google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.ListCampaigns - ประเภทบันทึกการตรวจสอบ: การเข้าถึงข้อมูล
- สิทธิ์:
firebasenotifications.messages.list - DATA_READ
- เมธอดเป็นการดำเนินการที่ใช้เวลานานหรือการสตรีม:
ไม่
- ตัวกรองสำหรับเมธอดนี้:
protoPayload.methodName="google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.ListCampaigns"