Method: properties.customMetrics.create
تعمل على إنشاء مقياس مخصّص.
طلب HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customMetrics
يستخدم عنوان URL بنية تحويل الترميز gRPC.
معلمات المسار
المَعلمات |
parent |
string
مطلوبة. مثال على التنسيق: properties/1234
|
نص الطلب
يحتوي نص الطلب على مثال CustomMetric
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثيل CustomMetric
تم إنشاؤه حديثًا.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/analytics.edit
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-05-06 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-05-06 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]