Custom Metrics

如需了解此资源的方法列表,请参阅本页结尾部分。

资源表示形式

用于 Google 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 或 PRODUCT。
type string 自定义指标的数据类型。
updated datetime 最近一次修改自定义指标的时间。
webPropertyId string 媒体资源 ID。

方法

get
获取用户有权访问的自定义指标。
insert
创建新的自定义指标。
list
列出用户有权访问的自定义指标。
patch
更新现有自定义指标。此方法支持修补语义。
update
更新现有自定义指标。