pagerduty.dedupKey() 函数
pagerduty.dedupKey()
使用输入表的组键在 _pagerdutyDedupKey
列中生成和存储重复数据删除键。此函数对组键进行排序、换行符连接、SHA256 哈希和十六进制编码,为每个输入表创建唯一的重复数据删除键。
函数类型签名
(<-tables: stream[A], ?exclude: [string]) => stream[{A with _pagerdutyDedupKey: string}]
有关更多信息,请参阅 函数类型签名。
参数
exclude
生成重复数据删除键时要排除的组键列。默认为 ["_start", “_stop”, “_level”].
tables
输入数据。默认为管道转发数据 (<-
)。
示例
向输出数据添加 PagerDuty 重复数据删除键
import "pagerduty"
import "sampledata"
sampledata.int()
|> pagerduty.dedupKey()
此页面是否对您有帮助?
感谢您的反馈!