Expand description
Trends and gaps: a report’s segments in order, pooled into the bars a terminal has room for, and the time windows a study said to expect checked against the segments a run counted. Built from the measurements a run kept: nothing here reads.
Structs§
- BarChange
- How a bar’s rate stands against another’s.
- GapCheck
- The stated windows, checked against the segments a run counted.
- GapRun
- Consecutive expected windows that share a kind of gap.
- Trend
Bar - One bar: the consecutive segments it pools, and how much of them the run saw.
- Trend
Row - One line of the Trends table: the rows each segment holds, the rows the sample drew, or a column’s measure, pooled into bars of consecutive segments.
- Trend
Slot - One segment in the order Trends draws them: one a run profiled, or one it counted rows in and sampled none of.
- Trend
View - The Trends table for a measure, as wide as it is drawn.
Enums§
- GapKind
- Why an expected window has no rows to show.
- Gaps
- What checking the stated windows came to.
- Trend
Measure - What a Trends line measures.
Constants§
- MAX_
EXPECTED_ WINDOWS - The most windows a stated range is checked over. A daily grain over half a century, or an hourly one over two years; past it, a coarser grain or a shorter range.
- MAX_
GAP_ RUNS - The most runs of gap windows listed; the rest are counted.
Functions§
- bar_
change line’s value inbarbeside its value inother, judged as Segments judges a change: a point or more, past sampling noise unless the counts are exact. A rows line moves by its count, so only rates are judged.- bar_
span - What a bar spans: the calendar range of its windows on a time grain, and its first and last segment otherwise. Rows with no time, which sort last, are said apart from the calendar.
- calendar_
span - A span of windows in calendar terms, inclusive:
2024-01-01 to 2024-01-28for days, weeks and months, to the minute for hours. - compared_
bar - The bar a bar is compared with: the one holding the baseline segment when the plan compares with one, and otherwise the bar before.
- expected_
gaps - The expected windows of
planchecked againstresults, orNonewhen the plan states none. Windows with rows are found among the segments; one the sample missed is told from one with no rows by the exact count the run took, and one outside the time range the scope reads is out of scope, never empty. - floor_
window - The start of the window
timefalls in, cut as a run cuts them: hours on the hour, days at midnight, weeks from Monday, months from the first. - next_
window - The start of the window after the one starting at
start. - segment_
coverage - Whether the segments are a sample’s, then the segments with rows the sample drew
none of and the segments it drew few of: what
TrendView::coveragecounts, without building the view. - trend_
slots - Every segment in order, the ones the sample missed among the ones it drew.
- trend_
view - The Trends table for
metric,barswide: rows per segment first (the exact count, then on a sample the rows it drew), then every column the measure is above zero in somewhere, the one that moves most first. Each bar pools consecutive segments (their counts over their rows), so a daily grain over years reads as years, and a thin day’s sample does not make a bar alone. A segment the sample missed is a slot like any other, so a bar of them says so rather than vanish. - wilson_
interval - The 95% Wilson score interval for
countofn: where the whole’s rate likely sits, given a simple random sample. Unlike the normal interval it stays inside 0 to 1 and does not shrink to nothing at a count of zero, which a thin sample often has. - window_
start - Where window
labelstarts, read back from the label a run gave it: the inverse oftime_window_label.Nonefor the rows with no time, and for a label that is not a window’s.