Method: properties.customMetrics.create
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customMetrics
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. פורמט לדוגמה: properties/1234
|
גוף הבקשה
גוף הבקשה מכיל מופע של CustomMetric
.
גוף התשובה
אם הפעולה בוצעה בהצלחה, גוף התגובה מכיל מופע חדש של CustomMetric
שנוצר.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
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)."],[[["Creates a CustomMetric using an HTTP POST request to a specified endpoint."],["Requires specifying a parent property in the path parameter and providing a CustomMetric object in the request body."],["Upon successful execution, returns a newly created CustomMetric object in the response body."],["Needs authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["A `CustomMetric` is created via a `POST` request to the specified URL, using gRPC Transcoding. The URL requires a `parent` path parameter, formatted as `properties/1234`. The request body includes a `CustomMetric` instance. A successful response returns the newly created `CustomMetric`. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The provided elements are the HTTP request, path parameters, and request/response body.\n"]]