Method: properties.calculatedMetrics.get
בקשת HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/calculatedMetrics/*}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. השם של המדד המחושב שמקבלים. פורמט: 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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-05-06 (שעון UTC).
[null,null,["עדכון אחרון: 2024-05-06 (שעון UTC)."],[[["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"]]