Custom Metrics

如需本資源的方法清單,請見本頁結尾。

資源表示法

Analytics (分析) 自訂指標的 JSON 範本。

{
  "kind": "analytics#customMetric",
  "id": string,
  "accountId": string,
  "webPropertyId": string,
  "name": string,
  "index": integer,
  "scope": string,
  "active": boolean,
  "type": string,
  "min_value": string,
  "max_value": string,
  "created": datetime,
  "updated": datetime,
  "selfLink": string,
  "parentLink": {
    "type": "analytics#webproperty",
    "href": string
  }
}
資源名稱 說明 附註
accountId string 帳戶 ID。
active boolean 布林值,表示自訂指標是否已啟用。
created datetime 自訂指標的建立時間。
id string 自訂指標 ID。
index integer 自訂指標的索引。
kind string 自訂指標的種類值。設為「analytics#customMetric」。此為唯讀欄位。
max_value string 自訂指標的最大值。
min_value string 自訂指標的最小值。
name string 自訂指標的名稱。
parentLink.href string 連結至自訂指標所屬的資源。
parentLink.type string 上層連結的類型。設定為「analytics#webproperty」。
scope string 自訂指標的範圍:HIT 或產品。
type string 自訂指標的資料類型。
updated datetime 上次修改自訂指標的時間。
webPropertyId string 資源 ID。

方法

get
取得使用者有權存取的自訂指標。
插入
建立新的自訂指標。
list
列出使用者有權存取的自訂指標。
修補程式
更新現有的自訂指標,這個方法可支援 patch 語意。
更新
更新現有的自訂指標,