试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
MetricType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
METRIC_TYPE_UNSPECIFIED |
未指定类型。 |
TYPE_INTEGER |
整数类型。 |
TYPE_FLOAT |
浮点类型。 |
TYPE_SECONDS |
以秒为单位的持续时间;一种特殊的浮点类型。 |
TYPE_MILLISECONDS |
持续时间(以毫秒为单位);一种特殊的浮点类型。 |
TYPE_MINUTES |
持续时间(以分钟为单位);一种特殊的浮点类型。 |
TYPE_HOURS |
持续时间(以小时为单位);一种特殊的浮点类型。 |
TYPE_STANDARD |
标准类型的自定义指标;一种特殊的浮点类型。 |
TYPE_CURRENCY |
金额;一种特殊的浮点类型。 |
TYPE_FEET |
长度(以英尺为单位);一种特殊的浮点类型。 |
TYPE_MILES |
长度(以英里为单位);一种特殊的浮点类型。 |
TYPE_METERS |
长度(以米为单位);一种特殊的浮点类型。 |
TYPE_KILOMETERS |
长度(以公里为单位);一种特殊的浮点类型。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eA metric's value can be an integer, floating point number, or a special floating point type representing durations, standard metrics, currency, or length.\u003c/p\u003e\n"],["\u003cp\u003eSpecial floating point types include durations (seconds, milliseconds, minutes, hours), standard metrics, currency, and lengths (feet, miles, meters, kilometers).\u003c/p\u003e\n"],["\u003cp\u003eUnspecified type is available but should be avoided when defining a metric.\u003c/p\u003e\n"]]],["The provided information details the various value types for a metric. These include `METRIC_TYPE_UNSPECIFIED`, `TYPE_INTEGER`, and `TYPE_FLOAT`. Special floating-point types are defined for durations like `TYPE_SECONDS`, `TYPE_MILLISECONDS`, `TYPE_MINUTES`, and `TYPE_HOURS`. Other special floating-point types represent custom metrics (`TYPE_STANDARD`), currency (`TYPE_CURRENCY`), and lengths in `TYPE_FEET`, `TYPE_MILES`, `TYPE_METERS`, and `TYPE_KILOMETERS`.\n"],null,["# MetricType\n\nA metric's value type.\n\n| Enums ||\n|---------------------------|------------------------------------------------------------------|\n| `METRIC_TYPE_UNSPECIFIED` | Unspecified type. |\n| `TYPE_INTEGER` | Integer type. |\n| `TYPE_FLOAT` | Floating point type. |\n| `TYPE_SECONDS` | A duration of seconds; a special floating point type. |\n| `TYPE_MILLISECONDS` | A duration in milliseconds; a special floating point type. |\n| `TYPE_MINUTES` | A duration in minutes; a special floating point type. |\n| `TYPE_HOURS` | A duration in hours; a special floating point type. |\n| `TYPE_STANDARD` | A custom metric of standard type; a special floating point type. |\n| `TYPE_CURRENCY` | An amount of money; a special floating point type. |\n| `TYPE_FEET` | A length in feet; a special floating point type. |\n| `TYPE_MILES` | A length in miles; a special floating point type. |\n| `TYPE_METERS` | A length in meters; a special floating point type. |\n| `TYPE_KILOMETERS` | A length in kilometers; a special floating point type. |"]]