Method: properties.customMetrics.create
Bir CustomMetric oluşturur.
HTTP isteği
POST https://analyticsadmin.googleapis.com/v1beta/{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 the specified endpoint."],["Requires `parent` as a path parameter specifying the property (e.g., `properties/1234`)."],["The request body should contain a CustomMetric object, as detailed in the provided link."],["A successful response will return the newly created CustomMetric object."],["Requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["This document details how to create a CustomMetric using a POST request to the specified URL: `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics`. The `parent` path parameter is required, formatted as \"properties/1234\". The request body must include a `CustomMetric` instance, and a successful response will return a newly created `CustomMetric` instance. The request requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]