IntelligenceX

API Reference

Class

UsageEventRecord

Namespace IntelligenceX.Telemetry.Usage
Assembly IntelligenceX
Modifiers sealed

Canonical usage event written to the telemetry ledger.

Inheritance

  • Object
  • UsageEventRecord

Usage

Explore 34 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 20

Constructors

public UsageEventRecord(String eventId, String providerId, String adapterId, String sourceRootId, DateTimeOffset timestampUtc) #

Initializes a new usage event record.

Parameters

eventId System.String requiredposition: 0
providerId System.String requiredposition: 1
adapterId System.String requiredposition: 2
sourceRootId System.String requiredposition: 3
timestampUtc System.DateTimeOffset requiredposition: 4

Methods

public IReadOnlyList<String> GetDeduplicationKeys() #
Returns: IReadOnlyList<String>

Returns dedupe keys in priority order for this event.

Properties

public String EventId { get; } #

Gets the stable event identifier supplied by the importer.

public String ProviderId { get; } #

Gets the stable provider identifier.

public String AdapterId { get; } #

Gets the stable adapter identifier.

public String SourceRootId { get; } #

Gets the source root that produced the event.

public String? ProviderAccountId { get; set; } #

Gets or sets the provider-owned account identifier when available.

public String? AccountLabel { get; set; } #

Gets or sets the provider-specific account label.

public String? PersonLabel { get; set; } #

Gets or sets the optional person-level grouping label used to merge several provider accounts.

public String? MachineId { get; set; } #

Gets or sets the machine identifier or label associated with the event.

public String? SessionId { get; set; } #

Gets or sets the provider session identifier when available.

public String? ThreadId { get; set; } #

Gets or sets the provider thread or conversation identifier when available.

public String? ConversationTitle { get; set; } #

Gets or sets the provider conversation title when available.

public String? WorkspacePath { get; set; } #

Gets or sets the workspace path associated with the conversation when available.

public String? RepositoryName { get; set; } #

Gets or sets the repository name associated with the conversation when available.

public String? TurnId { get; set; } #

Gets or sets the provider turn identifier when available.

public String? ResponseId { get; set; } #

Gets or sets the provider response identifier when available.

public DateTimeOffset TimestampUtc { get; } #

Gets the UTC timestamp associated with the event.

public String? Model { get; set; } #

Gets or sets the model name associated with the event.

public String? Surface { get; set; } #

Gets or sets the provider surface such as CLI, web, or desktop app.

public Int64? InputTokens { get; set; } #

Gets or sets the input token count.

public Int64? CachedInputTokens { get; set; } #

Gets or sets the cached input token count.

public Int64? OutputTokens { get; set; } #

Gets or sets the output token count.

public Int64? ReasoningTokens { get; set; } #

Gets or sets the reasoning token count when exposed by the provider.

public Int64? TotalTokens { get; set; } #

Gets or sets the total token count.

public Int32? CompactCount { get; set; } #

Gets or sets the number of context compactions associated with this event.

public Int64? DurationMs { get; set; } #

Gets or sets the elapsed duration in milliseconds.

public Decimal? CostUsd { get; set; } #

Gets or sets the cost in USD when known.

public UsageTruthLevel TruthLevel { get; set; } #

Gets or sets the confidence level for this event's quantitative values.

public String? RawHash { get; set; } #

Gets or sets the raw artifact hash used as the weakest dedupe fallback.