IntelligenceX

API Reference

Class

ChatGptDailyTokenUsageDay

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

Represents one day's token usage breakdown by product surface.

Inheritance

  • Object
  • ChatGptDailyTokenUsageDay

Usage

Explore 3 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 1

Constructors

public ChatGptDailyTokenUsageDay(String? date, IReadOnlyDictionary<String, Double> productSurfaceUsageValues, JsonObject raw, JsonObject? additional) #

Initializes a new daily token usage row.

Parameters

date System.String? requiredposition: 0
productSurfaceUsageValues System.Collections.Generic.IReadOnlyDictionary<System.String, System.Double> requiredposition: 1
raw IntelligenceX.Json.JsonObject requiredposition: 2
additional IntelligenceX.Json.JsonObject? requiredposition: 3

Methods

public static ChatGptDailyTokenUsageDay FromJson(JsonObject obj) #
Returns: ChatGptDailyTokenUsageDay

Parses a daily token usage row from JSON.

Parameters

obj IntelligenceX.Json.JsonObject requiredposition: 0
public JsonObject ToJson() #
Returns: JsonObject

Serializes the day to a JSON object.

Properties

public String? Date { get; } #

Gets the bucket date.

public IReadOnlyList<ChatGptDailyUsageAttribution> Attribution { get; } #

Provider attribution in the enclosing breakdown's units.

public IReadOnlyList<ChatGptDailyModelUsage> Models { get; } #

Provider model/speed measurements in the enclosing breakdown's units.

public IReadOnlyDictionary<String, Double> ProductSurfaceUsageValues { get; } #

Gets usage values keyed by product surface.

public Double Total { get; } #

Gets the total across all surfaces for the day.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject? Additional { get; } #

Gets unrecognized fields from the payload.