Method: properties.customMetrics.get
1 つの CustomMetric のルックアップ。
HTTP リクエスト
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。取得する CustomMetric の名前。形式の例: properties/1234/customMetrics/5678
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には CustomMetric
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-05-06 UTC。
[null,null,["最終更新日 2024-05-06 UTC。"],[[["Retrieves a single, specified CustomMetric using its resource name."],["Requires providing the CustomMetric's name in the request URL path."],["An empty request body is necessary, and a successful response returns a CustomMetric object."],["Authorization is required with specific OAuth scopes for either read-only or edit access to Analytics data."]]],["A `GET` request to `https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/customMetrics/*}` retrieves a single CustomMetric. The `name` path parameter, formatted as `properties/*/customMetrics/*`, is required. The request body must be empty. A successful response returns a `CustomMetric` instance. Authorization requires either `https://www.googleapis.com/auth/analytics.readonly` or `https://www.googleapis.com/auth/analytics.edit` OAuth scopes.\n"]]