Firebase PNV ক্লাউড মনিটরিং এবং ক্লাউড লগিং উভয়ের সাথেই একীভূত হয়।
গুগল ক্লাউড মনিটরিং
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/অ্যাপ | ফোন নম্বর যাচাইকরণের প্রচেষ্টার সংখ্যা।method : যাচাইকরণ পদ্ধতি ব্যবহৃত। সর্বদা API ।outcome : যাচাইকরণ প্রচেষ্টার ফলাফল ( SUCCESS , FAILURE , QUOTA_EXCEEDED , BACKEND_ERROR )।sms_region : যে অঞ্চল থেকে অনুরোধটি এসেছে। |
গুগল ক্লাউড লগিং
নির্দিষ্ট ফোন নম্বর যাচাইকরণের অনুরোধ সম্পর্কে আরও তথ্য পেতে আপনি ক্লাউড লগিং ব্যবহার করতে পারেন। প্রতিটি ফোন নম্বর যাচাইকরণের প্রচেষ্টা একটি কাঠামোগত লগ এন্ট্রি নির্গত করে:
লগ আইডি: 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. */
}
}
উদাহরণস্বরূপ, একটি নির্দিষ্ট অ্যাপ থেকে উদ্ভূত এবং যেকোনো কারণে ব্যর্থ হওয়া API-ভিত্তিক যাচাইকরণ প্রচেষ্টার সমস্ত লগ খুঁজে বের করার জন্য:
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"