# ChatGptThreadUsage

Provider lifetime consumption for explicit threads, independent of daily-chart date ranges.

Class 

`IntelligenceX.OpenAI.Usage`

**Namespace**

`IntelligenceX.OpenAI.Usage`

**Assembly**

`IntelligenceX`

**Source**

[ChatGptThreadUsage.cs:58](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptThreadUsage.cs#L58)

**Modifiers**

sealed

Provider lifetime consumption for explicit threads, independent of daily-chart date ranges.

## Inheritance

- object
- ChatGptThreadUsage

## Usage

Explore 2 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.

### Returned or exposed by 2

- Method [ChatGptThreadUsage.FromJson](/api/intelligencex-openai-usage-chatgptthreadusage/#method-fromjson-intelligencex-json-jsonobject)
- Method [ChatGptUsageService.QueryThreadUsageAsync](/api/intelligencex-openai-usage-chatgptusageservice/#method-querythreadusageasync-collections-generic-ireadonlylist-intelligencex-openai-usage-chatgptthreadusagerequest-threading-cancellationtoken)

Filter members 

Show inherited

## Methods

`public static ChatGptThreadUsage FromJson(JsonObject obj)` [#](#method-fromjson-intelligencex-json-jsonobject)

[ChatGptThreadUsage.cs:58](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptThreadUsage.cs#L58)

Parses a provider thread usage query response.

Parameters

**obj IntelligenceX.Json.JsonObject required**

Returns

`ChatGptThreadUsage`

`public JsonObject ToJson()` [#](#method-tojson)

[ChatGptThreadUsage.cs:60](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptThreadUsage.cs#L60)

Returns original provider fields, including comparison-plan metadata.

Returns

`JsonObject`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public DateTimeOffset? DataAsOf { get; }` [#](#property-dataasof)

[ChatGptThreadUsage.cs:54](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptThreadUsage.cs#L54)

Provider data freshness timestamp.

`public IReadOnlyList<ChatGptThreadUsageEntry> Threads { get; }` [#](#property-threads)

[ChatGptThreadUsage.cs:56](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptThreadUsage.cs#L56)

Measurements, including partial or unavailable entries.

<!-- PowerForge markdown artifact sha256:5373C3074AD7AF6E7209C7198A548C61300BB00C3B5D41F00869F512ACBD7EAC -->
