analyticsadmin.properties.customMetrics.get
Retrieve a single Google Analytics custom metric definition by resource name and return it as JSON.
Instructions
Lookup for a single CustomMetric [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: archive, create, list, patch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | [URL path segment] Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 | |
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| scope | No | ||
| description | No | ||
| displayName | No | ||
| parameterName | No | ||
| measurementUnit | No | ||
| restrictedMetricType | No |