influxdata / influxdata/kapacitor
Generating random uuid/id for each alert
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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