Method: properties.customMetrics.create
Bir CustomMetric oluşturur.
HTTP isteği
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customMetrics
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Örnek biçim: özellikler/1234
|
İstek içeriği
İstek metni, CustomMetric
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulan CustomMetric
örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/analytics.edit
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-05-06 UTC.
[null,null,["Son güncelleme tarihi: 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"]]