帮助文档 Logo
平台使用
阿里云
百度云
移动云
智算服务
教育生态
登录 →
帮助文档 Logo
平台使用 阿里云 百度云 移动云 智算服务 教育生态
登录
  1. 首页
  2. 阿里云
  3. 表格存储
  4. 开发参考
  5. API参考(数据管理)
  6. DataType定义
  7. PercentilesAggregation

PercentilesAggregation

  • DataType定义
  • 发布于 2025-04-22
  • 0 次阅读
文档编辑
文档编辑

在多元索引统计聚合中表示百分位统计,百分位统计常用来统计一组数据的百分位分布情况,例如在日常系统运维中统计每次请求访问的耗时情况时,需要关注系统请求耗时的P25、P50、P90、P99值等分布情况。

请求数据结构

message PercentilesAggregation {
    optional string field_name = 1;
    repeated double percentiles = 2;
    optional bytes missing = 3;
}

名称

类型

是否必选

描述

field_name

string

是

用于统计聚合的字段。

percentiles

double

是

百分位分布例如50、90、99,可根据需要设置一个或者多个百分位。多个百分位之间用半角逗号(,)分隔,例如25.0,50.0,99.0。

单个百分位的取值范围为1~100的数字。

missing

bytes

否

当某行数据中的字段为空时字段值的默认值,由Plainbuffer编码,详见Plainbuffer编码。

  • 如果未设置missing值,则在统计聚合时会忽略该行。

  • 如果设置了missing值,则使用missing值作为字段值的默认值参与统计聚合。

响应数据消息

message PercentilesAggregationResult {
    repeated PercentilesAggregationItem percentiles_aggregation_items = 1;
}

名称

类型

是否必选

描述

percentiles_aggregation_items

repeated PercentilesAggregationItem

是

百分位统计中百分位分布信息。

相关文章

ActionType 2025-04-22 14:32

在GetStreamRecord的响应消息中表示操作类型。 枚举取值列表

Aggregation 2025-04-22 14:32

表示单个统计聚合配置。 数据结构 message Aggregation { optional string name = 1; optional AggregationType type = 2;

AggregationResult 2025-04-22 14:32

表示单个统计聚合Aggregation的返回信息。 数据结构 message AggregationResult { optional string name = 1; optional Aggregatio

Aggregations 2025-04-22 14:32

表示统计聚合配置。 数据结构 message Aggregations { repeated Aggregation aggs = 1; }

AggregationsResult 2025-04-22 14:32

表示统计聚合中Aggregation的返回信息。 数据结构 message AggregationsResult { repeated AggregationResult agg_results = 1; }

AggregationType 2025-04-22 14:32

表示统计聚合类型。 枚举取值列表 AGG_AVG表示求平均值。 AGG_DISTINCT_COUNT表示去重统计行数,

目录
Copyright © 2025 your company All Rights Reserved. Powered by 博智数字服务平台.
闽ICP备08105208号-1