Method: properties.customMetrics.archive
Bir mülkte özel metriği arşivler.
HTTP isteği
POST https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}:archive
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
name |
string
Zorunlu. Arşivlenecek CustomMetric'in adı. Örnek biçim: properties/1234/customMetrics/5678
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt metni boş bir JSON nesnesi olur.
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: 2025-01-14 UTC.
[null,null,["Son güncelleme tarihi: 2025-01-14 UTC."],[[["Archives a specified CustomMetric associated with a Google Analytics 4 property."],["Requires an HTTP POST request to a specific endpoint with the CustomMetric's resource name."],["The request body should be empty, and upon success, the response body will also be empty."],["To authorize, you need the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["The core action is archiving a CustomMetric, specified by its `name` via a `POST` request to a URL using gRPC Transcoding. The `name`, a string representing the CustomMetric's identifier, is required as a path parameter. The request body must be empty. A successful response returns an empty JSON object. Authorization for this action requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The action uses `POST` HTTP request.\n"]]