Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "0f24b8e",
"generated": "2025-07-18 16:54:43.860"
"spec_repo_commit": "06ccc32",
"generated": "2025-07-21 13:56:48.290"
}
8 changes: 8 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18895,6 +18895,14 @@ components:
description: The total account usage.
format: int64
type: integer
account_committed_usage:
description: The total account committed usage.
format: int64
type: integer
account_on_demand_usage:
description: The total account on-demand usage.
format: int64
type: integer
elapsed_usage_hours:
description: Elapsed usage hours for some billable product.
format: int64
Expand Down
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55235,6 +55235,7 @@ paths:
default: navy.oncall.datadoghq.com
description: The globally available endpoint for On-Call.
enum:
- lava.oncall.datadoghq.com
- saffron.oncall.datadoghq.com
- navy.oncall.datadoghq.com
- coral.oncall.datadoghq.com
Expand Down Expand Up @@ -55290,6 +55291,7 @@ paths:
default: navy.oncall.datadoghq.com
description: The globally available endpoint for On-Call.
enum:
- lava.oncall.datadoghq.com
- saffron.oncall.datadoghq.com
- navy.oncall.datadoghq.com
- coral.oncall.datadoghq.com
Expand Down Expand Up @@ -55345,6 +55347,7 @@ paths:
default: navy.oncall.datadoghq.com
description: The globally available endpoint for On-Call.
enum:
- lava.oncall.datadoghq.com
- saffron.oncall.datadoghq.com
- navy.oncall.datadoghq.com
- coral.oncall.datadoghq.com
Expand Down Expand Up @@ -55400,6 +55403,7 @@ paths:
default: navy.oncall.datadoghq.com
description: The globally available endpoint for On-Call.
enum:
- lava.oncall.datadoghq.com
- saffron.oncall.datadoghq.com
- navy.oncall.datadoghq.com
- coral.oncall.datadoghq.com
Expand Down
4 changes: 4 additions & 0 deletions api/datadog/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ func NewConfiguration() *Configuration {
Description: "The globally available endpoint for On-Call.",
DefaultValue: "navy.oncall.datadoghq.com",
EnumValues: []string{
"lava.oncall.datadoghq.com",
"saffron.oncall.datadoghq.com",
"navy.oncall.datadoghq.com",
"coral.oncall.datadoghq.com",
Expand Down Expand Up @@ -462,6 +463,7 @@ func NewConfiguration() *Configuration {
Description: "The globally available endpoint for On-Call.",
DefaultValue: "navy.oncall.datadoghq.com",
EnumValues: []string{
"lava.oncall.datadoghq.com",
"saffron.oncall.datadoghq.com",
"navy.oncall.datadoghq.com",
"coral.oncall.datadoghq.com",
Expand Down Expand Up @@ -509,6 +511,7 @@ func NewConfiguration() *Configuration {
Description: "The globally available endpoint for On-Call.",
DefaultValue: "navy.oncall.datadoghq.com",
EnumValues: []string{
"lava.oncall.datadoghq.com",
"saffron.oncall.datadoghq.com",
"navy.oncall.datadoghq.com",
"coral.oncall.datadoghq.com",
Expand Down Expand Up @@ -556,6 +559,7 @@ func NewConfiguration() *Configuration {
Description: "The globally available endpoint for On-Call.",
DefaultValue: "navy.oncall.datadoghq.com",
EnumValues: []string{
"lava.oncall.datadoghq.com",
"saffron.oncall.datadoghq.com",
"navy.oncall.datadoghq.com",
"coral.oncall.datadoghq.com",
Expand Down
72 changes: 71 additions & 1 deletion api/datadogV1/model_usage_billable_summary_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import (
type UsageBillableSummaryBody struct {
// The total account usage.
AccountBillableUsage *int64 `json:"account_billable_usage,omitempty"`
// The total account committed usage.
AccountCommittedUsage *int64 `json:"account_committed_usage,omitempty"`
// The total account on-demand usage.
AccountOnDemandUsage *int64 `json:"account_on_demand_usage,omitempty"`
// Elapsed usage hours for some billable product.
ElapsedUsageHours *int64 `json:"elapsed_usage_hours,omitempty"`
// The first billable hour for the org.
Expand Down Expand Up @@ -76,6 +80,62 @@ func (o *UsageBillableSummaryBody) SetAccountBillableUsage(v int64) {
o.AccountBillableUsage = &v
}

// GetAccountCommittedUsage returns the AccountCommittedUsage field value if set, zero value otherwise.
func (o *UsageBillableSummaryBody) GetAccountCommittedUsage() int64 {
if o == nil || o.AccountCommittedUsage == nil {
var ret int64
return ret
}
return *o.AccountCommittedUsage
}

// GetAccountCommittedUsageOk returns a tuple with the AccountCommittedUsage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageBillableSummaryBody) GetAccountCommittedUsageOk() (*int64, bool) {
if o == nil || o.AccountCommittedUsage == nil {
return nil, false
}
return o.AccountCommittedUsage, true
}

// HasAccountCommittedUsage returns a boolean if a field has been set.
func (o *UsageBillableSummaryBody) HasAccountCommittedUsage() bool {
return o != nil && o.AccountCommittedUsage != nil
}

// SetAccountCommittedUsage gets a reference to the given int64 and assigns it to the AccountCommittedUsage field.
func (o *UsageBillableSummaryBody) SetAccountCommittedUsage(v int64) {
o.AccountCommittedUsage = &v
}

// GetAccountOnDemandUsage returns the AccountOnDemandUsage field value if set, zero value otherwise.
func (o *UsageBillableSummaryBody) GetAccountOnDemandUsage() int64 {
if o == nil || o.AccountOnDemandUsage == nil {
var ret int64
return ret
}
return *o.AccountOnDemandUsage
}

// GetAccountOnDemandUsageOk returns a tuple with the AccountOnDemandUsage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageBillableSummaryBody) GetAccountOnDemandUsageOk() (*int64, bool) {
if o == nil || o.AccountOnDemandUsage == nil {
return nil, false
}
return o.AccountOnDemandUsage, true
}

// HasAccountOnDemandUsage returns a boolean if a field has been set.
func (o *UsageBillableSummaryBody) HasAccountOnDemandUsage() bool {
return o != nil && o.AccountOnDemandUsage != nil
}

// SetAccountOnDemandUsage gets a reference to the given int64 and assigns it to the AccountOnDemandUsage field.
func (o *UsageBillableSummaryBody) SetAccountOnDemandUsage(v int64) {
o.AccountOnDemandUsage = &v
}

// GetElapsedUsageHours returns the ElapsedUsageHours field value if set, zero value otherwise.
func (o *UsageBillableSummaryBody) GetElapsedUsageHours() int64 {
if o == nil || o.ElapsedUsageHours == nil {
Expand Down Expand Up @@ -253,6 +313,12 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
if o.AccountBillableUsage != nil {
toSerialize["account_billable_usage"] = o.AccountBillableUsage
}
if o.AccountCommittedUsage != nil {
toSerialize["account_committed_usage"] = o.AccountCommittedUsage
}
if o.AccountOnDemandUsage != nil {
toSerialize["account_on_demand_usage"] = o.AccountOnDemandUsage
}
if o.ElapsedUsageHours != nil {
toSerialize["elapsed_usage_hours"] = o.ElapsedUsageHours
}
Expand Down Expand Up @@ -290,6 +356,8 @@ func (o UsageBillableSummaryBody) MarshalJSON() ([]byte, error) {
func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) {
all := struct {
AccountBillableUsage *int64 `json:"account_billable_usage,omitempty"`
AccountCommittedUsage *int64 `json:"account_committed_usage,omitempty"`
AccountOnDemandUsage *int64 `json:"account_on_demand_usage,omitempty"`
ElapsedUsageHours *int64 `json:"elapsed_usage_hours,omitempty"`
FirstBillableUsageHour *time.Time `json:"first_billable_usage_hour,omitempty"`
LastBillableUsageHour *time.Time `json:"last_billable_usage_hour,omitempty"`
Expand All @@ -302,11 +370,13 @@ func (o *UsageBillableSummaryBody) UnmarshalJSON(bytes []byte) (err error) {
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
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"})
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"})
} else {
return err
}
o.AccountBillableUsage = all.AccountBillableUsage
o.AccountCommittedUsage = all.AccountCommittedUsage
o.AccountOnDemandUsage = all.AccountOnDemandUsage
o.ElapsedUsageHours = all.ElapsedUsageHours
o.FirstBillableUsageHour = all.FirstBillableUsageHour
o.LastBillableUsageHour = all.LastBillableUsageHour
Expand Down
Loading