Method: properties.calculatedMetrics.patch
Aktualizuje obliczony typ danych w usłudze.
Żądanie HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{calculatedMetric.name=properties/*/calculatedMetrics/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
calculatedMetric.name |
string
Tylko dane wyjściowe. Nazwa zasobu dla obliczonych danych. Format: 'properties/{property_id}/calculatedMetrics/{calculatedMetricId}'
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Wymagane. Lista pól do zaktualizowania. Pominięte pola nie zostaną zaktualizowane. Aby zastąpić cały element, użyj jednej ścieżki z ciągiem znaków „*”, aby dopasować wszystkie pola. Jest to lista pełnych nazw pól rozdzielona przecinkami. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu CalculatedMetric
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu CalculatedMetric
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/analytics.edit
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-14 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]