IntelligenceX

API Reference

Class

ChatGptDailyTokenUsageBreakdown

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

Represents daily token usage breakdown grouped by product surface.

Inheritance

  • Object
  • ChatGptDailyTokenUsageBreakdown

Constructors

public ChatGptDailyTokenUsageBreakdown(IReadOnlyList<ChatGptDailyTokenUsageDay> data, String units, JsonObject raw, JsonObject additional) #

Initializes a new daily token usage breakdown payload.

Parameters

data System.Collections.Generic.IReadOnlyList{IntelligenceX.OpenAI.Usage.ChatGptDailyTokenUsageDay} requiredposition: 0
units System.String requiredposition: 1
raw IntelligenceX.Json.JsonObject requiredposition: 2
additional IntelligenceX.Json.JsonObject requiredposition: 3

Methods

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

Parses a daily token usage breakdown payload from JSON.

Parameters

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

Serializes the breakdown to a JSON object.

Properties

public IReadOnlyList<ChatGptDailyTokenUsageDay> Data { get; } #

Gets the daily data points.

public String Units { get; } #

Gets the unit label reported by the API.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject Additional { get; } #

Gets unrecognized fields from the payload.