influxdata / influxdata/kapacitor

Generating random uuid/id for each alert

Open
#2,163 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

I was wondering if it's possible to generate a random id or uuid in Tickscript for each alert in the alert node. For example in the alert node something like this
```
|alert()
.info(lambda: var < threshold)
.id('{{Generate Random Id/uuid}}')
.message('message')
.details('details')
.post('api')
.captureResponse()
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The request concerns generating a random identifier for each alert in the Tickscript alert node. Start by locating the alert node's handling of .id and determine whether per-alert generation is supported; done would be a documented, usable way to assign a distinct random ID to each alert.

Written by the indexing model from the issue text.

Assessment

Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.