试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
AccessMetric
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
报告的量化衡量标准。例如,accessCount
指标表示数据访问记录的总数。
JSON 表示法 |
{
"metricName": string
} |
字段 |
metricName |
string
指标的 API 名称。如需查看此 API 支持的指标列表,请参阅数据访问架构。 指标在 metricFilter 中按名称引用,orderBys 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis documentation details the JSON representation of quantitative measurements, like "accessCount," within a report.\u003c/p\u003e\n"],["\u003cp\u003eYou can find the API name of each metric within the "metricName" field, allowing you to use it in filters and ordering.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the Data Access Schema for a complete list of supported metrics you can use within this API.\u003c/p\u003e\n"]]],["The content defines a JSON structure for representing quantitative report metrics. The core element is `metricName`, a string denoting the API name of a specific metric. This name corresponds to a supported metric listed in the Data Access Schema. `metricName` is crucial for filtering and ordering data, utilizing `metricFilter` and `orderBys`. The `accessCount` example illustrates a metric that measures the total data access records.\n"],null,["# AccessMetric\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe quantitative measurements of a report. For example, the metric `accessCount` is the total number of data access records.\n\n| JSON representation |\n|----------------------------------|\n| ``` { \"metricName\": string } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metricName` | `string` The API name of the metric. See [Data Access Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) for the list of metrics supported in this API. Metrics are referenced by name in `metricFilter` \\& `orderBys`. |"]]