promql.quantile() 函数
promql.quantile() 账户检查超出范围的分位值,超出 1.0 或低于 0.0,分别在 _value 列中返回正无穷大或负无穷大。 q 必须是一个浮点数。
重要:internal/promql 包不适用于外部使用。
函数类型签名
(<-tables: stream[A], q: float, ?method: string) => stream[A] where A: Record
有关更多信息,请参见 Function type signatures。
参数
表格
输入数据。默认是管道转发数据 (<-).
q
(必需)
要计算的分位数 ([0.0 - 1.0]).
方法
使用的分位数方法。