Skip to content

Expose gaps in moving window #558

Closed
Closed
@daniel-zullo-frequenz

Description

@daniel-zullo-frequenz

What's needed?

Implement method to return the maximum data gap in a MovingWindow given timestamp or index ranges representing a window size

Proposed solution

Compute the maximum data gap size iterating through the MovingWindow data gaps (underlying buffer) for the given timestamp or index ranges representing a window size

Use cases

Actors like peak-shaving needs this functionality to avoid implementing it on their ends.

Update

Note the scope of the issue was updated as follows:
The MovingWindow will provide access to a list of all gaps in a defined subset of the moving window. Applications can get the maximum gap or the sum of gaps by using something like max(g.duration for g in gaps) or sum(...), respectively.

Metadata

Metadata

Assignees

Labels

part:data-pipelineAffects the data pipelinepriority:highAddress this as soon as possibletype:enhancementNew feature or enhancement visitble to users

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions