API Reference
Class
UsageTelemetrySnapshotService
Shared snapshot service for lightweight usage discovery and aggregation.
Inheritance
- Object
- UsageTelemetrySnapshotService
Constructors
public UsageTelemetrySnapshotService(IRawArtifactStore? rawArtifactStore = null) #Initializes a new shared snapshot service.
Parameters
- rawArtifactStore IntelligenceX.Telemetry.Usage.IRawArtifactStore? = null
Methods
public async Task<UsageTelemetrySnapshot> ScanAsync(CancellationToken cancellationToken = default, IProgress<UsageTelemetryScanProgress>? progress = null, Boolean startupWarmup = false) #Returns:
Task<UsageTelemetrySnapshot>Discovers usage roots and returns a provider-grouped quick snapshot.
Parameters
- cancellationToken System.Threading.CancellationToken = default
- Optional cancellation token.
- progress System.IProgress<IntelligenceX.Telemetry.Usage.UsageTelemetryScanProgress>? = null
- Optional progress receiver for staged scan updates.
- startupWarmup System.Boolean = false
- When true, returns a capped recent-artifact startup snapshot before the full scan catches up.
Returns
Usage snapshot with events, timing, and any non-fatal discovery errors.
public UsageTelemetrySnapshot? TryLoadCachedSnapshot() #Returns:
UsageTelemetrySnapshot?Attempts to load a quick startup snapshot directly from cached quick-report artifacts.
Returns
A cached snapshot when quick-report artifact state is available; otherwise null.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?