ReportRow
JSON 表示法 |
{
"dimensionValues": {
string: {
object (DimensionValue )
},
...
},
"metricValues": {
string: {
object (MetricValue )
},
...
}
} |
字段 |
dimensionValues |
map (key: string, value: object (DimensionValue ))
某一行中维度值的映射,其中键作为维度的枚举名称。 包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
metricValues |
map (key: string, value: object (MetricValue ))
某一行中指标值的映射,其中的键用作指标的枚举名称。如果所请求的指标未返回任何值,则映射不会包含该指标。 包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
DimensionValue
JSON 表示法 |
{
"value": string,
"displayLabel": string
} |
字段 |
value |
string
采用在报告的规范维度枚举中指定的格式的维度值。
|
displayLabel |
string
值的本地化字符串表示。如果未指定,应根据该值获取显示标签。
|
MetricValue
JSON 表示法 |
{
// Union field value can be only one of the following:
"integerValue": string,
"doubleValue": number,
"microsValue": string
// End of list of possible types for union field value .
} |
字段 |
联合字段 value 。指标值,采用报告的规范指标枚举名称中指定的格式。value 只能是下列其中一项: |
integerValue |
string (int64 format)
指标整数值。
|
doubleValue |
number
双精度(近似)十进制值。费率介于 0 到 1 之间。
|
microsValue |
string (int64 format)
金额(以微单位表示)。一百万个单位相当于一个单位。货币值采用请求指定的单位(USD、EUR 或其他)。例如,6.50 美元将表示为 6500000 微单位。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-14。
[null,null,["最后更新时间 (UTC):2024-10-14。"],[[["ReportRow objects represent a single row of data in a report, containing dimension and metric values."],["DimensionValues provide the value and an optional display label for each dimension in the report."],["MetricValues store the metric's numerical value, which can be an integer, double, or amount in micros."],["The structure uses maps to associate dimension and metric names with their corresponding values."]]],["The core content defines structures for report data: `DimensionValue` and `MetricValue`. A report row, structured in JSON, contains two maps: `dimensionValues` and `metricValues`. `dimensionValues` maps dimension names to `DimensionValue` objects, each with a `value` and an optional `displayLabel`. `metricValues` maps metric names to `MetricValue` objects. A `MetricValue` contains a single value among `integerValue`, `doubleValue`, or `microsValue`, representing the metric's numerical data in various formats.\n"]]