Method: properties.calculatedMetrics.get
جستجو برای یک CalculatedMetric واحد.
درخواست HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
name | string ضروری. نام CalculatedMetric را دریافت کنید. قالب: properties/{property_id}/calculatedMetrics/{calculatedMetricId} مثال: properties/1234/calculatedMetrics/Metric01 |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه از CalculatedMetric
است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/analytics.readonly
-
https://www.googleapis.com/auth/analytics.edit
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی."],[[["This document outlines how to retrieve a single CalculatedMetric using the Google Analytics Admin API."],["The request involves sending an HTTP GET request to the specified URL with necessary path parameters."],["No request body is needed for the lookup."],["Successful requests will return a CalculatedMetric object in the response body."],["Proper authorization with the specified scopes is required to access this functionality."]]],["This document outlines how to retrieve a single CalculatedMetric using the Google Analytics Admin API. The `GET` request targets a specific URL structure: `https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}`. The `name` path parameter, which contains the property and metric IDs, is mandatory. The request body must be empty. Upon success, the API returns a `CalculatedMetric` instance. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]