TelemetryCollector

Models & Types · AiDotNet.Deployment.Runtime

Collects telemetry data for deployed models.

For Beginners

TelemetryCollector provides AI safety functionality. Default values follow the original paper settings.

Constructors

Constructor Summary
TelemetryCollector(bool enabled)

Methods

Method Summary
List<TelemetryEvent> GetEvents(int limit) Gets the most recent recorded events ordered by timestamp descending.
ModelStatistics GetStatistics(string modelName, string version) Gets statistics for a model.
void Clear() Clears all telemetry data.
void RecordError(string modelName, string version, Exception exception) Records an error.
void RecordEvent(string eventName, Dictionary<string, object> properties) Records a telemetry event.
void RecordInference(string modelName, string version, long latencyMs, bool fromCache) Records an inference execution.