Method: properties.customMetrics.get
חיפוש מדד מותאם אישית יחיד.
בקשת HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. השם של המדד המותאם אישית שמקבלים. פורמט לדוגמה: properties/1234/customMetrics/5678
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה מכיל מופע של CustomMetric
.
היקפי הרשאות
נדרש אחד מהיקפי ההרשאות הבאים של 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)."],[[["Retrieves a single, specified CustomMetric using its resource name."],["Requires providing the CustomMetric's name in the request URL path."],["An empty request body is necessary, and a successful response returns a CustomMetric object."],["Authorization is required with specific OAuth scopes for either read-only or edit access to Analytics data."]]],["A `GET` request to `https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}` retrieves a single CustomMetric. The `name` path parameter, formatted as `properties/*/customMetrics/*`, is required. The request body must be empty. A successful response returns a `CustomMetric` instance. Authorization requires either `https://www.googleapis.com/auth/analytics.readonly` or `https://www.googleapis.com/auth/analytics.edit` OAuth scopes.\n"]]