يتكامل Firebase PNV مع كلّ من Cloud Monitoring وCloud Logging.
Google Cloud Monitoring
تصدِّر Firebase PNV مقياسًا واحدًا، fpnv.googleapis.com/verification_count
، مع التصنيفات method
وoutcome
وsms_region
:
نوع المقياس مرحلة الإطلاق (مستويات التسلسل الهرمي للموارد) اسم العرض |
|
---|---|
النوع والفئة والوحدة الموارد الخاضعة للمراقبة |
الوصف التصنيفات |
fpnv.googleapis.com/verification_count
إصدار تجريبي
(المشروع)
Firebase Phone Number Verification المقاييس |
|
DELTA ، INT64 ، 1
fpnv.googleapis.com/App |
عدد محاولات إثبات ملكية رقم الهاتف:
method :
طريقة التحقّق المستخدَمة API دائمًا
outcome :
نتيجة محاولة إثبات الهوية (SUCCESS ,
FAILURE وQUOTA_EXCEEDED
وBACKEND_ERROR ).
sms_region :
المنطقة التي نشأ منها الطلب.
|
Google Cloud Logging
يمكنك استخدام Cloud Logging للحصول على مزيد من المعلومات حول طلبات تأكيد أرقام هواتف معيّنة. يؤدي كل محاولة لإثبات ملكية رقم هاتف إلى إنشاء إدخال سجل منظَّم:
معرّف السجلّ: fpnv.googleapis.com/verifications
{
"resource": {
"type": "fpnv.googleapis.com/App",
"labels": [
"resource_container": /* Your Firebase / Google Cloud project ID: "project/your-project-id" */,
"app_id": /* The ID of a Firebase app within your project */
]
},
"severity": /* DEBUG (for successful verification) or WARNING (for failed verification) */,
"jsonPayload": {
"method": /* The method used for the verification attempt: METHOD_UNSPECIFIED, API */,
"outcome": /* The final outcome of the verification attempt: OUTCOME_UNSPECIFIED, SUCCESS, FAILURE, QUOTA_EXCEEDED, BACKEND_ERROR, DEVICE_INTEGRITY_FAILURE */,
"nonce": /* Unique ID for the verification attempt, provided to the SDK by the client if using API verification. */,
"response_code": /* The HTTP response code returned to the client, if the interaction was over HTTP. */,
"sms_region_code": /* The region from which the request originated. */,
"error_code": /* A specific error code from the underlying verification service or provider, if available. */,
"error_message": /* A message describing why the verification failed, if applicable. */
}
}
على سبيل المثال، للعثور على جميع السجلات الخاصة بمحاولات إثبات الهوية المستندة إلى واجهة برمجة التطبيقات والتي نشأت من تطبيق معيّن وتعذّر إجراؤها لأي سبب، اتّبِع الخطوات التالية:
log_id("fpnv.googleapis.com/verifications") AND
resource.type="fpnv.googleapis.com/App" AND
resource.labels.app_id="Your Firebase app ID" AND
severity>=WARNING AND
jsonPayload.method:"API"