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

Usage

Explore 5 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 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 String? GroupBy { get; } #

Provider grouping, such as day.

public DateTimeOffset? DataFreshness { get; } #

Provider freshness timestamp, when supplied.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject? Additional { get; } #

Gets unrecognized fields from the payload.