Files
sdk/docs/UsageCategorySpend.md

3.2 KiB

UsageCategorySpend

Properties

Name Type Description Notes
Category Pointer to string Category is what the lines metered, as it reads on a bill: "Desktop sandbox", "Agent sessions", or an AI model's own id. It is the same name /v1/billing/usage gives each row. A line that recorded nothing is "Uncategorized". [optional]
Cents Pointer to int64 Cents is what the org spent in that bucket over the window, in US cents. [optional]
Count Pointer to int64 Count is how many ledger lines rolled up into it. [optional]

Methods

NewUsageCategorySpend

func NewUsageCategorySpend() *UsageCategorySpend

NewUsageCategorySpend instantiates a new UsageCategorySpend 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

NewUsageCategorySpendWithDefaults

func NewUsageCategorySpendWithDefaults() *UsageCategorySpend

NewUsageCategorySpendWithDefaults instantiates a new UsageCategorySpend 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

GetCategory

func (o *UsageCategorySpend) GetCategory() string

GetCategory returns the Category field if non-nil, zero value otherwise.

GetCategoryOk

func (o *UsageCategorySpend) GetCategoryOk() (*string, bool)

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

SetCategory

func (o *UsageCategorySpend) SetCategory(v string)

SetCategory sets Category field to given value.

HasCategory

func (o *UsageCategorySpend) HasCategory() bool

HasCategory returns a boolean if a field has been set.

GetCents

func (o *UsageCategorySpend) GetCents() int64

GetCents returns the Cents field if non-nil, zero value otherwise.

GetCentsOk

func (o *UsageCategorySpend) GetCentsOk() (*int64, bool)

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

SetCents

func (o *UsageCategorySpend) SetCents(v int64)

SetCents sets Cents field to given value.

HasCents

func (o *UsageCategorySpend) HasCents() bool

HasCents returns a boolean if a field has been set.

GetCount

func (o *UsageCategorySpend) GetCount() int64

GetCount returns the Count field if non-nil, zero value otherwise.

GetCountOk

func (o *UsageCategorySpend) GetCountOk() (*int64, bool)

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

SetCount

func (o *UsageCategorySpend) SetCount(v int64)

SetCount sets Count field to given value.

HasCount

func (o *UsageCategorySpend) HasCount() bool

HasCount returns a boolean if a field has been set.

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