Files
sdk/docs/BillingRoutedUsage.md

7.5 KiB

BillingRoutedUsage

Properties

Name Type Description Notes
Account Pointer to string Account is the provider-side account identifier. [optional]
Billing Pointer to string Billing is how the routed inference bills: plan or commerce. [optional]
CompletionTokens Pointer to int64 CompletionTokens is the routed completion-token count. [optional]
CostCents Pointer to int64 CostCents is the routed cost in cents. [optional]
Kind Pointer to string Kind is how the account authenticates: subscription or apikey. [optional]
PromptTokens Pointer to int64 PromptTokens is the routed prompt-token count. [optional]
Provider Pointer to string Provider is the AI provider the row's account belongs to. [optional]
Requests Pointer to int64 Requests is how many requests the gateway routed through this account. [optional]
TotalTokens Pointer to int64 TotalTokens is the routed total token count. [optional]

Methods

NewBillingRoutedUsage

func NewBillingRoutedUsage() *BillingRoutedUsage

NewBillingRoutedUsage instantiates a new BillingRoutedUsage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewBillingRoutedUsageWithDefaults

func NewBillingRoutedUsageWithDefaults() *BillingRoutedUsage

NewBillingRoutedUsageWithDefaults instantiates a new BillingRoutedUsage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetAccount

func (o *BillingRoutedUsage) GetAccount() string

GetAccount returns the Account field if non-nil, zero value otherwise.

GetAccountOk

func (o *BillingRoutedUsage) GetAccountOk() (*string, bool)

GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAccount

func (o *BillingRoutedUsage) SetAccount(v string)

SetAccount sets Account field to given value.

HasAccount

func (o *BillingRoutedUsage) HasAccount() bool

HasAccount returns a boolean if a field has been set.

GetBilling

func (o *BillingRoutedUsage) GetBilling() string

GetBilling returns the Billing field if non-nil, zero value otherwise.

GetBillingOk

func (o *BillingRoutedUsage) GetBillingOk() (*string, bool)

GetBillingOk returns a tuple with the Billing field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBilling

func (o *BillingRoutedUsage) SetBilling(v string)

SetBilling sets Billing field to given value.

HasBilling

func (o *BillingRoutedUsage) HasBilling() bool

HasBilling returns a boolean if a field has been set.

GetCompletionTokens

func (o *BillingRoutedUsage) GetCompletionTokens() int64

GetCompletionTokens returns the CompletionTokens field if non-nil, zero value otherwise.

GetCompletionTokensOk

func (o *BillingRoutedUsage) GetCompletionTokensOk() (*int64, bool)

GetCompletionTokensOk returns a tuple with the CompletionTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCompletionTokens

func (o *BillingRoutedUsage) SetCompletionTokens(v int64)

SetCompletionTokens sets CompletionTokens field to given value.

HasCompletionTokens

func (o *BillingRoutedUsage) HasCompletionTokens() bool

HasCompletionTokens returns a boolean if a field has been set.

GetCostCents

func (o *BillingRoutedUsage) GetCostCents() int64

GetCostCents returns the CostCents field if non-nil, zero value otherwise.

GetCostCentsOk

func (o *BillingRoutedUsage) GetCostCentsOk() (*int64, bool)

GetCostCentsOk returns a tuple with the CostCents field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCostCents

func (o *BillingRoutedUsage) SetCostCents(v int64)

SetCostCents sets CostCents field to given value.

HasCostCents

func (o *BillingRoutedUsage) HasCostCents() bool

HasCostCents returns a boolean if a field has been set.

GetKind

func (o *BillingRoutedUsage) GetKind() string

GetKind returns the Kind field if non-nil, zero value otherwise.

GetKindOk

func (o *BillingRoutedUsage) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKind

func (o *BillingRoutedUsage) SetKind(v string)

SetKind sets Kind field to given value.

HasKind

func (o *BillingRoutedUsage) HasKind() bool

HasKind returns a boolean if a field has been set.

GetPromptTokens

func (o *BillingRoutedUsage) GetPromptTokens() int64

GetPromptTokens returns the PromptTokens field if non-nil, zero value otherwise.

GetPromptTokensOk

func (o *BillingRoutedUsage) GetPromptTokensOk() (*int64, bool)

GetPromptTokensOk returns a tuple with the PromptTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPromptTokens

func (o *BillingRoutedUsage) SetPromptTokens(v int64)

SetPromptTokens sets PromptTokens field to given value.

HasPromptTokens

func (o *BillingRoutedUsage) HasPromptTokens() bool

HasPromptTokens returns a boolean if a field has been set.

GetProvider

func (o *BillingRoutedUsage) GetProvider() string

GetProvider returns the Provider field if non-nil, zero value otherwise.

GetProviderOk

func (o *BillingRoutedUsage) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProvider

func (o *BillingRoutedUsage) SetProvider(v string)

SetProvider sets Provider field to given value.

HasProvider

func (o *BillingRoutedUsage) HasProvider() bool

HasProvider returns a boolean if a field has been set.

GetRequests

func (o *BillingRoutedUsage) GetRequests() int64

GetRequests returns the Requests field if non-nil, zero value otherwise.

GetRequestsOk

func (o *BillingRoutedUsage) GetRequestsOk() (*int64, bool)

GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRequests

func (o *BillingRoutedUsage) SetRequests(v int64)

SetRequests sets Requests field to given value.

HasRequests

func (o *BillingRoutedUsage) HasRequests() bool

HasRequests returns a boolean if a field has been set.

GetTotalTokens

func (o *BillingRoutedUsage) GetTotalTokens() int64

GetTotalTokens returns the TotalTokens field if non-nil, zero value otherwise.

GetTotalTokensOk

func (o *BillingRoutedUsage) GetTotalTokensOk() (*int64, bool)

GetTotalTokensOk returns a tuple with the TotalTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTotalTokens

func (o *BillingRoutedUsage) SetTotalTokens(v int64)

SetTotalTokens sets TotalTokens field to given value.

HasTotalTokens

func (o *BillingRoutedUsage) HasTotalTokens() bool

HasTotalTokens returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]