Method: properties.customMetrics.create
Tworzy dane niestandardowe.
Żądanie HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customMetrics
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Przykładowy format: właściwość/1234
|
Treść żądania
Treść żądania zawiera wystąpienie elementu CustomMetric
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję CustomMetric
.
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: 2024-05-06 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]