Zum Hauptinhalt springen

ArchiveCoverage

Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData

The measured time range an archive actually holds data for (AB#5157), read from the storage layer on request: MIN(window_start) / MAX(window_end) for windowed archives (rollup, time-range) and MIN(timestamp) / MAX(timestamp) for raw archives.

public record ArchiveCoverage : IEquatable<ArchiveCoverage>

Inheritance Object → ArchiveCoverage
Implements IEquatable<ArchiveCoverage>

Remarks:

Coverage is archive-wide, not per entity rtId, and is a single from/to pair: gaps inside the range are deliberately not represented. An archive without rows or without a backing table has no coverage — that is expressed as a nullArchiveCoverage, never as a sentinel range and never as an error.

See concept-multi-source-rollups.md §7 for the timestamp convention and the caching rules of IArchiveCoverageProvider.

Properties​

AvailableFrom​

Earliest timestamp the archive holds data for (inclusive).

public DateTime AvailableFrom { get; set; }

Property Value​

DateTime

AvailableTo​

Latest timestamp the archive holds data for.

public DateTime AvailableTo { get; set; }

Property Value​

DateTime

Constructors​

ArchiveCoverage(DateTime, DateTime)​

The measured time range an archive actually holds data for (AB#5157), read from the storage layer on request: MIN(window_start) / MAX(window_end) for windowed archives (rollup, time-range) and MIN(timestamp) / MAX(timestamp) for raw archives.

public ArchiveCoverage(DateTime AvailableFrom, DateTime AvailableTo)

Parameters​

AvailableFrom DateTime
Earliest timestamp the archive holds data for (inclusive).

AvailableTo DateTime
Latest timestamp the archive holds data for.

Remarks:

Coverage is archive-wide, not per entity rtId, and is a single from/to pair: gaps inside the range are deliberately not represented. An archive without rows or without a backing table has no coverage — that is expressed as a nullArchiveCoverage, never as a sentinel range and never as an error.

See concept-multi-source-rollups.md §7 for the timestamp convention and the caching rules of IArchiveCoverageProvider.