15 KiB
UsageUsageWindowView
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Account | Pointer to string | Account is the linked provider account the window belongs to. | [optional] |
| CachedInputTokens | Pointer to int64 | CachedInputTokens is the prompt tokens served from the provider's cache; omitted when unknown. | [optional] |
| Confidence | Pointer to string | Confidence says how much the counters beside it mean — a meter that reported only a percentage leaves them at zero, and this is how a reader tells that from a true zero. | [optional] |
| CostCents | Pointer to int64 | CostCents is what the window cost on the PROVIDER's own plan, in US cents. It is not a Hanzo charge. | [optional] |
| CostLimitCents | Pointer to int64 | CostLimitCents is the plan's spend ceiling for the window, in US cents. | [optional] |
| Currency | Pointer to string | Currency is the provider's currency when it is not US cents. | [optional] |
| InputTokens | Pointer to int64 | InputTokens is prompt tokens consumed in the window; omitted when unknown. | [optional] |
| Lane | Pointer to string | Lane is the meter lane this instance belongs to, e.g. a provider's own rolling-window meter. | [optional] |
| Machine | Pointer to string | Machine is the host whose meter reported the window. | [optional] |
| OutputTokens | Pointer to int64 | OutputTokens is completion tokens produced in the window; omitted when unknown. | [optional] |
| Plan | Pointer to string | Plan is the subscription plan the account is on, as the provider names it. | [optional] |
| Requests | Pointer to int64 | Requests is how many requests were made in the window; omitted when the meter did not report it. | [optional] |
| ResetsAt | Pointer to string | ResetsAt is when this window rolls over, RFC3339 UTC; omitted when unknown. | [optional] |
| Synthetic | Pointer to bool | Synthetic marks an instance the meter inferred rather than read. | [optional] |
| TotalTokens | Pointer to int64 | TotalTokens is the window's total tokens; omitted when unknown. | [optional] |
| UsedPct | Pointer to float64 | UsedPct is how much of the window's allowance is consumed, 0–100. | [optional] |
| Window | Pointer to string | Window is the window class: 6h, day, week or month. | [optional] |
| WindowMinutes | Pointer to int32 | WindowMinutes is the window's real length in minutes when the meter reported one; omitted when it did not. | [optional] |
| WindowStart | Pointer to string | WindowStart is when this window opened, RFC3339 UTC; omitted when unknown. | [optional] |
Methods
NewUsageUsageWindowView
func NewUsageUsageWindowView() *UsageUsageWindowView
NewUsageUsageWindowView instantiates a new UsageUsageWindowView 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
NewUsageUsageWindowViewWithDefaults
func NewUsageUsageWindowViewWithDefaults() *UsageUsageWindowView
NewUsageUsageWindowViewWithDefaults instantiates a new UsageUsageWindowView 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 *UsageUsageWindowView) GetAccount() string
GetAccount returns the Account field if non-nil, zero value otherwise.
GetAccountOk
func (o *UsageUsageWindowView) 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 *UsageUsageWindowView) SetAccount(v string)
SetAccount sets Account field to given value.
HasAccount
func (o *UsageUsageWindowView) HasAccount() bool
HasAccount returns a boolean if a field has been set.
GetCachedInputTokens
func (o *UsageUsageWindowView) GetCachedInputTokens() int64
GetCachedInputTokens returns the CachedInputTokens field if non-nil, zero value otherwise.
GetCachedInputTokensOk
func (o *UsageUsageWindowView) GetCachedInputTokensOk() (*int64, bool)
GetCachedInputTokensOk returns a tuple with the CachedInputTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCachedInputTokens
func (o *UsageUsageWindowView) SetCachedInputTokens(v int64)
SetCachedInputTokens sets CachedInputTokens field to given value.
HasCachedInputTokens
func (o *UsageUsageWindowView) HasCachedInputTokens() bool
HasCachedInputTokens returns a boolean if a field has been set.
GetConfidence
func (o *UsageUsageWindowView) GetConfidence() string
GetConfidence returns the Confidence field if non-nil, zero value otherwise.
GetConfidenceOk
func (o *UsageUsageWindowView) GetConfidenceOk() (*string, bool)
GetConfidenceOk returns a tuple with the Confidence field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetConfidence
func (o *UsageUsageWindowView) SetConfidence(v string)
SetConfidence sets Confidence field to given value.
HasConfidence
func (o *UsageUsageWindowView) HasConfidence() bool
HasConfidence returns a boolean if a field has been set.
GetCostCents
func (o *UsageUsageWindowView) GetCostCents() int64
GetCostCents returns the CostCents field if non-nil, zero value otherwise.
GetCostCentsOk
func (o *UsageUsageWindowView) 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 *UsageUsageWindowView) SetCostCents(v int64)
SetCostCents sets CostCents field to given value.
HasCostCents
func (o *UsageUsageWindowView) HasCostCents() bool
HasCostCents returns a boolean if a field has been set.
GetCostLimitCents
func (o *UsageUsageWindowView) GetCostLimitCents() int64
GetCostLimitCents returns the CostLimitCents field if non-nil, zero value otherwise.
GetCostLimitCentsOk
func (o *UsageUsageWindowView) GetCostLimitCentsOk() (*int64, bool)
GetCostLimitCentsOk returns a tuple with the CostLimitCents field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCostLimitCents
func (o *UsageUsageWindowView) SetCostLimitCents(v int64)
SetCostLimitCents sets CostLimitCents field to given value.
HasCostLimitCents
func (o *UsageUsageWindowView) HasCostLimitCents() bool
HasCostLimitCents returns a boolean if a field has been set.
GetCurrency
func (o *UsageUsageWindowView) GetCurrency() string
GetCurrency returns the Currency field if non-nil, zero value otherwise.
GetCurrencyOk
func (o *UsageUsageWindowView) GetCurrencyOk() (*string, bool)
GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCurrency
func (o *UsageUsageWindowView) SetCurrency(v string)
SetCurrency sets Currency field to given value.
HasCurrency
func (o *UsageUsageWindowView) HasCurrency() bool
HasCurrency returns a boolean if a field has been set.
GetInputTokens
func (o *UsageUsageWindowView) GetInputTokens() int64
GetInputTokens returns the InputTokens field if non-nil, zero value otherwise.
GetInputTokensOk
func (o *UsageUsageWindowView) GetInputTokensOk() (*int64, bool)
GetInputTokensOk returns a tuple with the InputTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetInputTokens
func (o *UsageUsageWindowView) SetInputTokens(v int64)
SetInputTokens sets InputTokens field to given value.
HasInputTokens
func (o *UsageUsageWindowView) HasInputTokens() bool
HasInputTokens returns a boolean if a field has been set.
GetLane
func (o *UsageUsageWindowView) GetLane() string
GetLane returns the Lane field if non-nil, zero value otherwise.
GetLaneOk
func (o *UsageUsageWindowView) GetLaneOk() (*string, bool)
GetLaneOk returns a tuple with the Lane field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLane
func (o *UsageUsageWindowView) SetLane(v string)
SetLane sets Lane field to given value.
HasLane
func (o *UsageUsageWindowView) HasLane() bool
HasLane returns a boolean if a field has been set.
GetMachine
func (o *UsageUsageWindowView) GetMachine() string
GetMachine returns the Machine field if non-nil, zero value otherwise.
GetMachineOk
func (o *UsageUsageWindowView) GetMachineOk() (*string, bool)
GetMachineOk returns a tuple with the Machine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMachine
func (o *UsageUsageWindowView) SetMachine(v string)
SetMachine sets Machine field to given value.
HasMachine
func (o *UsageUsageWindowView) HasMachine() bool
HasMachine returns a boolean if a field has been set.
GetOutputTokens
func (o *UsageUsageWindowView) GetOutputTokens() int64
GetOutputTokens returns the OutputTokens field if non-nil, zero value otherwise.
GetOutputTokensOk
func (o *UsageUsageWindowView) GetOutputTokensOk() (*int64, bool)
GetOutputTokensOk returns a tuple with the OutputTokens field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetOutputTokens
func (o *UsageUsageWindowView) SetOutputTokens(v int64)
SetOutputTokens sets OutputTokens field to given value.
HasOutputTokens
func (o *UsageUsageWindowView) HasOutputTokens() bool
HasOutputTokens returns a boolean if a field has been set.
GetPlan
func (o *UsageUsageWindowView) GetPlan() string
GetPlan returns the Plan field if non-nil, zero value otherwise.
GetPlanOk
func (o *UsageUsageWindowView) GetPlanOk() (*string, bool)
GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPlan
func (o *UsageUsageWindowView) SetPlan(v string)
SetPlan sets Plan field to given value.
HasPlan
func (o *UsageUsageWindowView) HasPlan() bool
HasPlan returns a boolean if a field has been set.
GetRequests
func (o *UsageUsageWindowView) GetRequests() int64
GetRequests returns the Requests field if non-nil, zero value otherwise.
GetRequestsOk
func (o *UsageUsageWindowView) 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 *UsageUsageWindowView) SetRequests(v int64)
SetRequests sets Requests field to given value.
HasRequests
func (o *UsageUsageWindowView) HasRequests() bool
HasRequests returns a boolean if a field has been set.
GetResetsAt
func (o *UsageUsageWindowView) GetResetsAt() string
GetResetsAt returns the ResetsAt field if non-nil, zero value otherwise.
GetResetsAtOk
func (o *UsageUsageWindowView) GetResetsAtOk() (*string, bool)
GetResetsAtOk returns a tuple with the ResetsAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetResetsAt
func (o *UsageUsageWindowView) SetResetsAt(v string)
SetResetsAt sets ResetsAt field to given value.
HasResetsAt
func (o *UsageUsageWindowView) HasResetsAt() bool
HasResetsAt returns a boolean if a field has been set.
GetSynthetic
func (o *UsageUsageWindowView) GetSynthetic() bool
GetSynthetic returns the Synthetic field if non-nil, zero value otherwise.
GetSyntheticOk
func (o *UsageUsageWindowView) GetSyntheticOk() (*bool, bool)
GetSyntheticOk returns a tuple with the Synthetic field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSynthetic
func (o *UsageUsageWindowView) SetSynthetic(v bool)
SetSynthetic sets Synthetic field to given value.
HasSynthetic
func (o *UsageUsageWindowView) HasSynthetic() bool
HasSynthetic returns a boolean if a field has been set.
GetTotalTokens
func (o *UsageUsageWindowView) GetTotalTokens() int64
GetTotalTokens returns the TotalTokens field if non-nil, zero value otherwise.
GetTotalTokensOk
func (o *UsageUsageWindowView) 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 *UsageUsageWindowView) SetTotalTokens(v int64)
SetTotalTokens sets TotalTokens field to given value.
HasTotalTokens
func (o *UsageUsageWindowView) HasTotalTokens() bool
HasTotalTokens returns a boolean if a field has been set.
GetUsedPct
func (o *UsageUsageWindowView) GetUsedPct() float64
GetUsedPct returns the UsedPct field if non-nil, zero value otherwise.
GetUsedPctOk
func (o *UsageUsageWindowView) GetUsedPctOk() (*float64, bool)
GetUsedPctOk returns a tuple with the UsedPct field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetUsedPct
func (o *UsageUsageWindowView) SetUsedPct(v float64)
SetUsedPct sets UsedPct field to given value.
HasUsedPct
func (o *UsageUsageWindowView) HasUsedPct() bool
HasUsedPct returns a boolean if a field has been set.
GetWindow
func (o *UsageUsageWindowView) GetWindow() string
GetWindow returns the Window field if non-nil, zero value otherwise.
GetWindowOk
func (o *UsageUsageWindowView) GetWindowOk() (*string, bool)
GetWindowOk returns a tuple with the Window field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWindow
func (o *UsageUsageWindowView) SetWindow(v string)
SetWindow sets Window field to given value.
HasWindow
func (o *UsageUsageWindowView) HasWindow() bool
HasWindow returns a boolean if a field has been set.
GetWindowMinutes
func (o *UsageUsageWindowView) GetWindowMinutes() int32
GetWindowMinutes returns the WindowMinutes field if non-nil, zero value otherwise.
GetWindowMinutesOk
func (o *UsageUsageWindowView) GetWindowMinutesOk() (*int32, bool)
GetWindowMinutesOk returns a tuple with the WindowMinutes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWindowMinutes
func (o *UsageUsageWindowView) SetWindowMinutes(v int32)
SetWindowMinutes sets WindowMinutes field to given value.
HasWindowMinutes
func (o *UsageUsageWindowView) HasWindowMinutes() bool
HasWindowMinutes returns a boolean if a field has been set.
GetWindowStart
func (o *UsageUsageWindowView) GetWindowStart() string
GetWindowStart returns the WindowStart field if non-nil, zero value otherwise.
GetWindowStartOk
func (o *UsageUsageWindowView) GetWindowStartOk() (*string, bool)
GetWindowStartOk returns a tuple with the WindowStart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWindowStart
func (o *UsageUsageWindowView) SetWindowStart(v string)
SetWindowStart sets WindowStart field to given value.
HasWindowStart
func (o *UsageUsageWindowView) HasWindowStart() bool
HasWindowStart returns a boolean if a field has been set.