Method: properties.customMetrics.get

  • This document provides a lookup for a single CustomMetric.

  • The HTTP request uses the GET method with a specified URL format.

  • A required path parameter named name is used to identify the CustomMetric.

  • The request body must be empty, and the response body contains an instance of CustomMetric if successful.

  • The request requires specific OAuth authorization scopes for access.

Lookup for a single CustomMetric.

HTTP request

GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of CustomMetric.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/analytics.readonly
  • https://www.googleapis.com/auth/analytics.edit