influxdata / influxdata/kapacitor

How to calculate the total duration of a state during an interval

Open
#2,459 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

For each consecutive point for which the expression evaluates as true, the state duration ist incremented by the duration between points.
When a point evaluates as false, the state duration is reset.
My problem is that i want to get the total duration of a state without reseting it for each batch.
Any simple solutions for that ?

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reading Kapacitor's state-duration and batch-processing documentation or implementation to determine whether duration can persist across batches; done should be a documented, supported way to calculate the total duration without resetting it.

Written by the indexing model from the issue text.

Assessment

Domain
stream-processing
Issue type
Documentation
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.