Method: properties.customMetrics.get
Wyszukiwanie pojedynczych danych niestandardowych.
Żądanie HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Wymagane. Nazwa danych niestandardowych, które mają zostać pobrane. Przykładowy format: properties/1234/customMetrics/5678
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu CustomMetric
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/analytics.readonly
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."],[[["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"]]