การบันทึกการตรวจสอบสำหรับ Firebase Cloud Messaging

เอกสารนี้แสดงรายการเมธอดที่ตรวจสอบแล้วสำหรับคอนโซลการแจ้งเตือนของ Firebase Google Cloud บริการ จะสร้างบันทึกการตรวจสอบที่บันทึกกิจกรรมการดูแลระบบและการเข้าถึงภายในทรัพยากรGoogle Cloud ดูข้อมูลเพิ่มเติมเกี่ยวกับบันทึกการตรวจสอบ Cloud ได้ที่หัวข้อต่อไปนี้

ชื่อบริการ

หากต้องการดูบันทึกการตรวจสอบของคอนโซลการแจ้งเตือนของ Firebase ให้ทำดังนี้

  1. ในคอนโซล Google Cloud ให้ไปที่หน้า Logs Explorer

    ไปที่ Logs Explorer

  2. คัดลอกและวางคำค้นหาต่อไปนี้ลงในช่องคำค้นหาของ 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 จะสร้าง บันทึกการตรวจสอบกิจกรรมของผู้ดูแลระบบ

เมธอด API ในรายการต่อไปนี้ที่มีเครื่องหมาย (LRO) คือการดำเนินการที่ใช้เวลานาน (LRO) โดยปกติแล้วเมธอดเหล่านี้จะสร้างรายการบันทึกการตรวจสอบ 2 รายการ ได้แก่ รายการหนึ่งเมื่อการดำเนินการเริ่มต้น และอีกรายการหนึ่งเมื่อการดำเนินการสิ้นสุด ดูข้อมูลเพิ่มเติมได้ที่ บันทึกการตรวจสอบสำหรับการดำเนินการที่ใช้เวลานาน
ประเภทสิทธิ์ เมธอด
DATA_READ google.internal.gcm.contextual.campaign.v1.CampaignService.GetAnalytics
google.internal.gcm.contextual.campaign.v1.CampaignService.GetAudiences
google.internal.gcm.contextual.campaign.v1.CampaignService.GetFcmStats
google.internal.gcm.contextual.campaign.v1.CampaignService.GetProjectTrackingInfo
google.internal.gcm.contextual.campaign.v1.CampaignService.GetTopicList
google.internal.gcm.contextual.campaign.v2.FirebaseNotificationApiService.GetAnalyticsLabelList
google.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"