promql.changes() 函数
promql.changes()
实现了等同于 PromQL 的 changes()
函数 的功能。
重要提示:internal/promql
包不适合外部使用。
函数类型签名
(<-tables: stream[{A with _value: float}]) => stream[{B with _value: float}]
有关更多信息,请参阅 函数类型签名。
参数
tables
输入数据。默认为管道转发数据 (<-
)。
示例
返回序列中值更改的次数
import "internal/promql"
import "sampledata"
sampledata.float()
|> promql.changes()
此页是否对您有帮助?
感谢您的反馈!