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