Table of Contents

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

Series string

Same series key as the corresponding Series from GetDiskFreeAsync(IApplicationInsightsContext, TimeSpan, CancellationToken) — typically {host} {device}.

FreeGb double

Average free space over the queried window, in GB.

UsedGb double

Average used space over the queried window, in GB.

ReservedGb double

Average reserved (e.g. filesystem-reserved blocks not counted as used or free) space over the window, in GB. Often zero on Windows filesystems.

TotalGb double

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.

Properties

FreeGb

Average free space over the queried window, in GB.

public double FreeGb { get; init; }

Property Value

double

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

double

Series

Same series key as the corresponding Series from GetDiskFreeAsync(IApplicationInsightsContext, TimeSpan, CancellationToken) — typically {host} {device}.

public string Series { get; init; }

Property Value

string

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

double

UsedGb

Average used space over the queried window, in GB.

public double UsedGb { get; init; }

Property Value

double