API Reference
Class
ChatGptCreditUsageEvent
Represents a single credit usage event.
Inheritance
- Object
- ChatGptCreditUsageEvent
Usage
Explore 4 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 3
Accepted by parameters 1
- Constructor ChatGptUsageReport.ChatGptUsageReport
Constructors
public ChatGptCreditUsageEvent(String? date, String? productSurface, Double? creditAmount, String? usageId, JsonObject raw, JsonObject? additional, String? processingTier = null, String? model = null) #Initializes a new credit usage event.
Parameters
- date System.String?
- productSurface System.String?
- creditAmount System.Double?
- usageId System.String?
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject?
- processingTier System.String? = null
- model System.String? = null
Methods
public static ChatGptCreditUsageEvent FromJson(JsonObject obj) #Returns:
ChatGptCreditUsageEventParses a credit usage event from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed credit usage event.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public String? ProductSurface { get; } #Gets the product surface identifier.
public Double? CreditAmount { get; } #Gets the credit amount for the event.
public String? ProcessingTier { get; } #Gets the processing tier when present (for example priority/fast).
public JsonObject? Additional { get; } #Gets unrecognized fields from the payload.