@@ -14,6 +14,10 @@ import (
1414type UsageBillableSummaryBody struct {
1515 // The total account usage.
1616 AccountBillableUsage * int64 `json:"account_billable_usage,omitempty"`
17+ // The total account committed usage.
18+ AccountCommittedUsage * int64 `json:"account_committed_usage,omitempty"`
19+ // The total account on-demand usage.
20+ AccountOnDemandUsage * int64 `json:"account_on_demand_usage,omitempty"`
1721 // Elapsed usage hours for some billable product.
1822 ElapsedUsageHours * int64 `json:"elapsed_usage_hours,omitempty"`
1923 // The first billable hour for the org.
@@ -76,6 +80,62 @@ func (o *UsageBillableSummaryBody) SetAccountBillableUsage(v int64) {
7680 o .AccountBillableUsage = & v
7781}
7882
83+ // GetAccountCommittedUsage returns the AccountCommittedUsage field value if set, zero value otherwise.
84+ func (o * UsageBillableSummaryBody ) GetAccountCommittedUsage () int64 {
85+ if o == nil || o .AccountCommittedUsage == nil {
86+ var ret int64
87+ return ret
88+ }
89+ return * o .AccountCommittedUsage
90+ }
91+
92+ // GetAccountCommittedUsageOk returns a tuple with the AccountCommittedUsage field value if set, nil otherwise
93+ // and a boolean to check if the value has been set.
94+ func (o * UsageBillableSummaryBody ) GetAccountCommittedUsageOk () (* int64 , bool ) {
95+ if o == nil || o .AccountCommittedUsage == nil {
96+ return nil , false
97+ }
98+ return o .AccountCommittedUsage , true
99+ }
100+
101+ // HasAccountCommittedUsage returns a boolean if a field has been set.
102+ func (o * UsageBillableSummaryBody ) HasAccountCommittedUsage () bool {
103+ return o != nil && o .AccountCommittedUsage != nil
104+ }
105+
106+ // SetAccountCommittedUsage gets a reference to the given int64 and assigns it to the AccountCommittedUsage field.
107+ func (o * UsageBillableSummaryBody ) SetAccountCommittedUsage (v int64 ) {
108+ o .AccountCommittedUsage = & v
109+ }
110+
111+ // GetAccountOnDemandUsage returns the AccountOnDemandUsage field value if set, zero value otherwise.
112+ func (o * UsageBillableSummaryBody ) GetAccountOnDemandUsage () int64 {
113+ if o == nil || o .AccountOnDemandUsage == nil {
114+ var ret int64
115+ return ret
116+ }
117+ return * o .AccountOnDemandUsage
118+ }
119+
120+ // GetAccountOnDemandUsageOk returns a tuple with the AccountOnDemandUsage field value if set, nil otherwise
121+ // and a boolean to check if the value has been set.
122+ func (o * UsageBillableSummaryBody ) GetAccountOnDemandUsageOk () (* int64 , bool ) {
123+ if o == nil || o .AccountOnDemandUsage == nil {
124+ return nil , false
125+ }
126+ return o .AccountOnDemandUsage , true
127+ }
128+
129+ // HasAccountOnDemandUsage returns a boolean if a field has been set.
130+ func (o * UsageBillableSummaryBody ) HasAccountOnDemandUsage () bool {
131+ return o != nil && o .AccountOnDemandUsage != nil
132+ }
133+
134+ // SetAccountOnDemandUsage gets a reference to the given int64 and assigns it to the AccountOnDemandUsage field.
135+ func (o * UsageBillableSummaryBody ) SetAccountOnDemandUsage (v int64 ) {
136+ o .AccountOnDemandUsage = & v
137+ }
138+
79139// GetElapsedUsageHours returns the ElapsedUsageHours field value if set, zero value otherwise.
80140func (o * UsageBillableSummaryBody ) GetElapsedUsageHours () int64 {
81141 if o == nil || o .ElapsedUsageHours == nil {
@@ -253,6 +313,12 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
253313 if o .AccountBillableUsage != nil {
254314 toSerialize ["account_billable_usage" ] = o .AccountBillableUsage
255315 }
316+ if o .AccountCommittedUsage != nil {
317+ toSerialize ["account_committed_usage" ] = o .AccountCommittedUsage
318+ }
319+ if o .AccountOnDemandUsage != nil {
320+ toSerialize ["account_on_demand_usage" ] = o .AccountOnDemandUsage
321+ }
256322 if o .ElapsedUsageHours != nil {
257323 toSerialize ["elapsed_usage_hours" ] = o .ElapsedUsageHours
258324 }
@@ -290,6 +356,8 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
290356func (o * UsageBillableSummaryBody ) UnmarshalJSON (bytes []byte ) (err error ) {
291357 all := struct {
292358 AccountBillableUsage * int64 `json:"account_billable_usage,omitempty"`
359+ AccountCommittedUsage * int64 `json:"account_committed_usage,omitempty"`
360+ AccountOnDemandUsage * int64 `json:"account_on_demand_usage,omitempty"`
293361 ElapsedUsageHours * int64 `json:"elapsed_usage_hours,omitempty"`
294362 FirstBillableUsageHour * time.Time `json:"first_billable_usage_hour,omitempty"`
295363 LastBillableUsageHour * time.Time `json:"last_billable_usage_hour,omitempty"`
@@ -302,11 +370,13 @@ func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) {
302370 }
303371 additionalProperties := make (map [string ]interface {})
304372 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
305- datadog .DeleteKeys (additionalProperties , & []string {"account_billable_usage" , "elapsed_usage_hours" , "first_billable_usage_hour" , "last_billable_usage_hour" , "org_billable_usage" , "percentage_in_account" , "usage_unit" })
373+ datadog .DeleteKeys (additionalProperties , & []string {"account_billable_usage" , "account_committed_usage" , "account_on_demand_usage" , " elapsed_usage_hours" , "first_billable_usage_hour" , "last_billable_usage_hour" , "org_billable_usage" , "percentage_in_account" , "usage_unit" })
306374 } else {
307375 return err
308376 }
309377 o .AccountBillableUsage = all .AccountBillableUsage
378+ o .AccountCommittedUsage = all .AccountCommittedUsage
379+ o .AccountOnDemandUsage = all .AccountOnDemandUsage
310380 o .ElapsedUsageHours = all .ElapsedUsageHours
311381 o .FirstBillableUsageHour = all .FirstBillableUsageHour
312382 o .LastBillableUsageHour = all .LastBillableUsageHour
0 commit comments