Method: properties.customMetrics.create
Erstellt einen CustomMetric.
HTTP-Anfrage
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/customMetrics
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Erforderlich. Beispielformat: Properties/1234
|
Anfragetext
Der Anfragetext enthält eine Instanz von CustomMetric
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von CustomMetric
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/analytics.edit
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-05-06 (UTC).
[null,null,["Zuletzt aktualisiert: 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."]]],[]]