如需本資源的方法清單,請見本頁結尾。
資源表示法
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 |
object |
自訂指標的上層連結。指向自訂指標所屬的資源。 | |
parentLink.href |
string |
連結至自訂指標所屬的資源。 | |
parentLink.type |
string |
上層連結的類型。設定為「analytics#webproperty」。 | |
scope |
string |
自訂指標的範圍:HIT 或產品。 | |
selfLink |
string |
自訂指標連結 | |
type |
string |
自訂指標的資料類型。 | |
updated |
datetime |
上次修改自訂指標的時間。 | |
webPropertyId |
string |
資源 ID。 |