Method: properties.calculatedMetrics.patch
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{calculatedMetric.name=properties/*/calculatedMetrics/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
calculatedMetric.name |
string
פלט בלבד. שם המשאב של המדד המחושב הזה. Format: 'properties/{property_id}/calculatedMetrics/{calculatedMetricId}'
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של CalculatedMetric
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של CalculatedMetric
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-14 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-14 (שעון UTC)."],[[["Updates a CalculatedMetric on a property using an HTTP PATCH request."],["The request should be sent to the URL `https://analyticsadmin.googleapis.com/v1alpha/{calculatedMetric.name=properties/*/calculatedMetrics/*}` with required path and query parameters."],["The request body must contain a `CalculatedMetric` object, and a successful response will also return a `CalculatedMetric` object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This document outlines the process for updating a CalculatedMetric on a property using a PATCH request. The endpoint is `https://analyticsadmin.googleapis.com/v1alpha/{calculatedMetric.name=properties/*/calculatedMetrics/*}`, defined using gRPC Transcoding. The `calculatedMetric.name` path parameter specifies the resource, while `updateMask` in the query parameters dictates which fields to update. The request and response bodies use the `CalculatedMetric` resource. This operation requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]