Class DiskCapacity
- Namespace
- Quilt4Net.Toolkit.Features.ApplicationInsights
- Assembly
- Quilt4Net.Toolkit.dll
Per-volume disk capacity snapshot derived from system.filesystem.usage AppMetrics. The
free/used/reserved time-series is exposed separately via
GetDiskFreeAsync(IApplicationInsightsContext, TimeSpan, CancellationToken); this record carries the constant
"how big is this filesystem" context that lets a UI render free space as a percentage of
capacity instead of scaling bars relative to whichever host happens to have the most space.
public record DiskCapacity : IEquatable<DiskCapacity>
- Inheritance
-
DiskCapacity
- Implements
- Inherited Members
Constructors
DiskCapacity(string, double, double, double, double)
Per-volume disk capacity snapshot derived from system.filesystem.usage AppMetrics. The
free/used/reserved time-series is exposed separately via
GetDiskFreeAsync(IApplicationInsightsContext, TimeSpan, CancellationToken); this record carries the constant
"how big is this filesystem" context that lets a UI render free space as a percentage of
capacity instead of scaling bars relative to whichever host happens to have the most space.
public DiskCapacity(string Series, double FreeGb, double UsedGb, double ReservedGb, double TotalGb)
Parameters
SeriesstringSame series key as the corresponding Series from GetDiskFreeAsync(IApplicationInsightsContext, TimeSpan, CancellationToken) — typically
{host} {device}.FreeGbdoubleAverage free space over the queried window, in GB.
UsedGbdoubleAverage used space over the queried window, in GB.
ReservedGbdoubleAverage reserved (e.g. filesystem-reserved blocks not counted as used or free) space over the window, in GB. Often zero on Windows filesystems.
TotalGbdoubleFreeGb + UsedGb + ReservedGb — the volume's total capacity as observed by the OS. Computed server-side so the consumer doesn't need to re-sum and can rely on whatever rounding the KQL emits.
Properties
FreeGb
Average free space over the queried window, in GB.
public double FreeGb { get; init; }
Property Value
ReservedGb
Average reserved (e.g. filesystem-reserved blocks not counted as used or free) space over the window, in GB. Often zero on Windows filesystems.
public double ReservedGb { get; init; }
Property Value
Series
Same series key as the corresponding Series from
GetDiskFreeAsync(IApplicationInsightsContext, TimeSpan, CancellationToken) — typically {host} {device}.
public string Series { get; init; }
Property Value
TotalGb
FreeGb + UsedGb + ReservedGb — the volume's total capacity as observed by the OS. Computed server-side so the consumer doesn't need to re-sum and can rely on whatever rounding the KQL emits.
public double TotalGb { get; init; }
Property Value
UsedGb
Average used space over the queried window, in GB.
public double UsedGb { get; init; }