API Reference
Class
ChatGptUsageSnapshot
Represents a usage snapshot returned by ChatGPT usage endpoints.
Inheritance
- Object
- ChatGptUsageSnapshot
Usage
Explore 7 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 4
- Property ChatGptUsageCacheEntry.Snapshot
- Property ChatGptUsageReport.Snapshot
- Method ChatGptUsageService.GetUsageSnapshotAsync
- Method ChatGptUsageSnapshot.FromJson
Accepted by parameters 3
- Method ChatGptUsageCache.Save
- Constructor ChatGptUsageCacheEntry.ChatGptUsageCacheEntry
- Constructor ChatGptUsageReport.ChatGptUsageReport
Constructors
public ChatGptUsageSnapshot(String? userId, String? accountId, String? email, String? planType, ChatGptRateLimitStatus? rateLimit, IReadOnlyList<ChatGptNamedRateLimit>? additionalRateLimits, ChatGptCreditsSnapshot? credits, JsonObject raw, JsonObject? additional) #Initializes a new usage snapshot.
Parameters
- userId System.String?
- accountId System.String?
- email System.String?
- planType System.String?
- rateLimit IntelligenceX.OpenAI.Usage.ChatGptRateLimitStatus?
- additionalRateLimits System.Collections.Generic.IReadOnlyList<IntelligenceX.OpenAI.Usage.ChatGptNamedRateLimit>?
- credits IntelligenceX.OpenAI.Usage.ChatGptCreditsSnapshot?
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject?
Methods
public static ChatGptUsageSnapshot FromJson(JsonObject obj) #Returns:
ChatGptUsageSnapshotCreates a snapshot from a JSON object.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed snapshot.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public ChatGptRateLimitStatus? RateLimit { get; } #Gets the main rate limit status.
public ChatGptResetCredits? ResetCredits { get; } #Reset grant counts, expiry details, and retained history, when available.
public String? ResetCreditsError { get; } #Safe availability message when optional reset information could not be retrieved.
public ChatGptAccountAnalytics? AccountAnalytics { get; } #Account-wide provider statistics and accounting, independent of machine-local logs.
public IReadOnlyList<ChatGptNamedRateLimit> AdditionalRateLimits { get; } #Gets any additional named rate limits returned by the API.
public JsonObject? Additional { get; } #Gets unrecognized fields from the payload.