pagerduty.dedupKey() function

The pagerduty.dedupKey() function uses the group key of an input table to generate and store a deduplication key in the _pagerdutyDedupKey column. The function sorts, newline-concatenates, SHA256-hashes, and hex-encodes the group key to create a unique deduplication key for each input table.

*Function type: Transformation*

  1. import "pagerduty"
  2. pagerduty.dedupKey()

Examples

Add a PagerDuty deduplication key to output data
  1. import "pagerduty"
  2. from(bucket: "default")
  3. |> range(start: -5m)
  4. |> filter(fn: (r) => r._measurement == "mem")
  5. |> pagerduty.dedupKey()