OrganizationUsageQuery

data class OrganizationUsageQuery(val startTime: Long, val endTime: Long? = null, val bucketWidth: String? = null, val limit: Int? = null, val page: String? = null, val projectIds: List<String>? = null, val apiKeyIds: List<String>? = null, val userIds: List<String>? = null, val models: List<String>? = null, val groupBy: List<String>? = null, val batch: Boolean? = null, val sizes: List<String>? = null, val sources: List<String>? = null, val vectorStoreIds: List<String>? = null, val contextLevels: List<String>? = null, val lineItems: List<String>? = null)

Filters for organization reporting. Unsupported endpoint-specific filters are rejected before sending.

Constructors

Link copied to clipboard
constructor(startTime: Long, endTime: Long? = null, bucketWidth: String? = null, limit: Int? = null, page: String? = null, projectIds: List<String>? = null, apiKeyIds: List<String>? = null, userIds: List<String>? = null, models: List<String>? = null, groupBy: List<String>? = null, batch: Boolean? = null, sizes: List<String>? = null, sources: List<String>? = null, vectorStoreIds: List<String>? = null, contextLevels: List<String>? = null, lineItems: List<String>? = null)

Properties

Link copied to clipboard
val apiKeyIds: List<String>? = null

Restrict results to these API keys, where supported.

Link copied to clipboard
val batch: Boolean? = null

Batch filter for completions and Decisions.

Link copied to clipboard
val bucketWidth: String? = null

Time bucket width: 1m, 1h or 1d; costs supports only 1d.

Link copied to clipboard
val contextLevels: List<String>? = null

Context levels for web search usage.

Link copied to clipboard
val endTime: Long? = null

Exclusive query end in Unix seconds.

Link copied to clipboard
val groupBy: List<String>? = null

Grouping dimensions accepted by the selected endpoint.

Link copied to clipboard
val limit: Int? = null

Maximum number of buckets.

Link copied to clipboard
val lineItems: List<String>? = null

Exact line item names for cost queries.

Link copied to clipboard
val models: List<String>? = null

Restrict model-based usage to these models.

Link copied to clipboard
val page: String? = null

Opaque cursor from the previous nextPage.

Link copied to clipboard
val projectIds: List<String>? = null

Restrict results to these projects.

Link copied to clipboard
val sizes: List<String>? = null

Image sizes for image usage.

Link copied to clipboard
val sources: List<String>? = null

Generation/edit/variation sources for image usage.

Link copied to clipboard

Inclusive query start in Unix seconds.

Link copied to clipboard
val userIds: List<String>? = null

Restrict results to these users, where supported.

Link copied to clipboard
val vectorStoreIds: List<String>? = null

Vector store IDs for file search usage.