v1.measurements() function
Deprecated
v1.measurements()
在 Flux v0.88.0 中已被弃用,建议使用 schema.measurements()
。
v1.measurements()
返回特定 bucket 中的 measurements 列表。
结果包含一个单列表,其中包含一个单列 _value
。
Function type signature
(bucket: string, ?start: A, ?stop: B) => stream[C] where C: Record
有关更多信息,请参见 函数类型签名。
Parameters
bucket
(必需) 要从中检索 measurements 的 Bucket。
start
要包含在结果中的最早时间。 默认为 -30d
。
stop
要包含在结果中的最新时间。 停止时间是排他的,这意味着时间等于停止时间的值将从结果中排除。 默认为 now()
。
Examples
返回 InfluxDB bucket 中的 measurements 列表
import "influxdata/influxdb/schema"
schema.measurements(bucket: "example-bucket")
Flux REPL 中不支持
当在 InfluxDB 的上下文中执行时,v1
函数可以检索模式信息,但不能从 Flux REPL 中检索。
此页是否对您有所帮助?
感谢您的反馈!