Skip to content

Commit

Permalink
Add Cloud Cost And Container Excl Agent Usage Fields (#1869)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Feb 13, 2023
1 parent 549f106 commit 805bcaa
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-13 19:39:13.775300",
"spec_repo_commit": "e92a3dde"
"regenerated": "2023-02-13 20:03:53.095048",
"spec_repo_commit": "ca2fb7b8"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-13 19:39:13.787445",
"spec_repo_commit": "e92a3dde"
"regenerated": "2023-02-13 20:03:53.113924",
"spec_repo_commit": "ca2fb7b8"
}
}
}
20 changes: 20 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16683,11 +16683,21 @@ components:
over all hours in the current month for all organizations.
format: int64
type: integer
cloud_cost_management_host_count_avg:
description: Host count average of Cloud Cost Management for the given date
and given organization.
format: int64
type: integer
container_avg:
description: Shows the average of all distinct containers over all hours
in the current date for all organizations.
format: int64
type: integer
container_excl_agent_avg:
description: Shows the average of containers without the Datadog Agent over
all hours in the current date for all organizations.
format: int64
type: integer
container_hwm:
description: Shows the high-water mark of all distinct containers over all
hours in the current date for all organizations.
Expand Down Expand Up @@ -17064,6 +17074,11 @@ components:
in the current date for the given org.
format: int64
type: integer
container_excl_agent_avg:
description: Shows the average of containers without the Datadog Agent over
all hours in the current date for the given organization.
format: int64
type: integer
container_hwm:
description: Shows the high-water mark of all distinct containers over all
hours in the current date for the given org.
Expand Down Expand Up @@ -17448,6 +17463,11 @@ components:
in the current months for all organizations.
format: int64
type: integer
container_excl_agent_avg_sum:
description: Shows the average of the containers without the Datadog Agent
over all hours in the current month for all organizations.
format: int64
type: integer
container_hwm_sum:
description: Shows the sum of the high-water marks of all distinct containers
over all hours in the current months for all organizations.
Expand Down
70 changes: 70 additions & 0 deletions api/datadogV1/model_usage_summary_date.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ type UsageSummaryDate struct {
CiVisibilityPipelineCommittersHwm *int64 `json:"ci_visibility_pipeline_committers_hwm,omitempty"`
// Shows the high-water mark of all CI visibility test committers over all hours in the current month for all organizations.
CiVisibilityTestCommittersHwm *int64 `json:"ci_visibility_test_committers_hwm,omitempty"`
// Host count average of Cloud Cost Management for the given date and given organization.
CloudCostManagementHostCountAvg *int64 `json:"cloud_cost_management_host_count_avg,omitempty"`
// Shows the average of all distinct containers over all hours in the current date for all organizations.
ContainerAvg *int64 `json:"container_avg,omitempty"`
// Shows the average of containers without the Datadog Agent over all hours in the current date for all organizations.
ContainerExclAgentAvg *int64 `json:"container_excl_agent_avg,omitempty"`
// Shows the high-water mark of all distinct containers over all hours in the current date for all organizations.
ContainerHwm *int64 `json:"container_hwm,omitempty"`
// Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for all organizations.
Expand Down Expand Up @@ -711,6 +715,34 @@ func (o *UsageSummaryDate) SetCiVisibilityTestCommittersHwm(v int64) {
o.CiVisibilityTestCommittersHwm = &v
}

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

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

// HasCloudCostManagementHostCountAvg returns a boolean if a field has been set.
func (o *UsageSummaryDate) HasCloudCostManagementHostCountAvg() bool {
return o != nil && o.CloudCostManagementHostCountAvg != nil
}

// SetCloudCostManagementHostCountAvg gets a reference to the given int64 and assigns it to the CloudCostManagementHostCountAvg field.
func (o *UsageSummaryDate) SetCloudCostManagementHostCountAvg(v int64) {
o.CloudCostManagementHostCountAvg = &v
}

// GetContainerAvg returns the ContainerAvg field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetContainerAvg() int64 {
if o == nil || o.ContainerAvg == nil {
Expand Down Expand Up @@ -739,6 +771,34 @@ func (o *UsageSummaryDate) SetContainerAvg(v int64) {
o.ContainerAvg = &v
}

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

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

// HasContainerExclAgentAvg returns a boolean if a field has been set.
func (o *UsageSummaryDate) HasContainerExclAgentAvg() bool {
return o != nil && o.ContainerExclAgentAvg != nil
}

// SetContainerExclAgentAvg gets a reference to the given int64 and assigns it to the ContainerExclAgentAvg field.
func (o *UsageSummaryDate) SetContainerExclAgentAvg(v int64) {
o.ContainerExclAgentAvg = &v
}

// GetContainerHwm returns the ContainerHwm field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetContainerHwm() int64 {
if o == nil || o.ContainerHwm == nil {
Expand Down Expand Up @@ -2286,9 +2346,15 @@ func (o UsageSummaryDate) MarshalJSON() ([]byte, error) {
if o.CiVisibilityTestCommittersHwm != nil {
toSerialize["ci_visibility_test_committers_hwm"] = o.CiVisibilityTestCommittersHwm
}
if o.CloudCostManagementHostCountAvg != nil {
toSerialize["cloud_cost_management_host_count_avg"] = o.CloudCostManagementHostCountAvg
}
if o.ContainerAvg != nil {
toSerialize["container_avg"] = o.ContainerAvg
}
if o.ContainerExclAgentAvg != nil {
toSerialize["container_excl_agent_avg"] = o.ContainerExclAgentAvg
}
if o.ContainerHwm != nil {
toSerialize["container_hwm"] = o.ContainerHwm
}
Expand Down Expand Up @@ -2482,7 +2548,9 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
CiTestIndexedSpansSum *int64 `json:"ci_test_indexed_spans_sum,omitempty"`
CiVisibilityPipelineCommittersHwm *int64 `json:"ci_visibility_pipeline_committers_hwm,omitempty"`
CiVisibilityTestCommittersHwm *int64 `json:"ci_visibility_test_committers_hwm,omitempty"`
CloudCostManagementHostCountAvg *int64 `json:"cloud_cost_management_host_count_avg,omitempty"`
ContainerAvg *int64 `json:"container_avg,omitempty"`
ContainerExclAgentAvg *int64 `json:"container_excl_agent_avg,omitempty"`
ContainerHwm *int64 `json:"container_hwm,omitempty"`
CspmAasHostTop99p *int64 `json:"cspm_aas_host_top99p,omitempty"`
CspmAwsHostTop99p *int64 `json:"cspm_aws_host_top99p,omitempty"`
Expand Down Expand Up @@ -2565,7 +2633,9 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
o.CiTestIndexedSpansSum = all.CiTestIndexedSpansSum
o.CiVisibilityPipelineCommittersHwm = all.CiVisibilityPipelineCommittersHwm
o.CiVisibilityTestCommittersHwm = all.CiVisibilityTestCommittersHwm
o.CloudCostManagementHostCountAvg = all.CloudCostManagementHostCountAvg
o.ContainerAvg = all.ContainerAvg
o.ContainerExclAgentAvg = all.ContainerExclAgentAvg
o.ContainerHwm = all.ContainerHwm
o.CspmAasHostTop99p = all.CspmAasHostTop99p
o.CspmAwsHostTop99p = all.CspmAwsHostTop99p
Expand Down
35 changes: 35 additions & 0 deletions api/datadogV1/model_usage_summary_date_org.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ type UsageSummaryDateOrg struct {
CloudCostManagementHostCountAvg *int64 `json:"cloud_cost_management_host_count_avg,omitempty"`
// Shows the average of all distinct containers over all hours in the current date for the given org.
ContainerAvg *int64 `json:"container_avg,omitempty"`
// Shows the average of containers without the Datadog Agent over all hours in the current date for the given organization.
ContainerExclAgentAvg *int64 `json:"container_excl_agent_avg,omitempty"`
// Shows the high-water mark of all distinct containers over all hours in the current date for the given org.
ContainerHwm *int64 `json:"container_hwm,omitempty"`
// Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current date for the given org.
Expand Down Expand Up @@ -772,6 +774,34 @@ func (o *UsageSummaryDateOrg) SetContainerAvg(v int64) {
o.ContainerAvg = &v
}

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

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

// HasContainerExclAgentAvg returns a boolean if a field has been set.
func (o *UsageSummaryDateOrg) HasContainerExclAgentAvg() bool {
return o != nil && o.ContainerExclAgentAvg != nil
}

// SetContainerExclAgentAvg gets a reference to the given int64 and assigns it to the ContainerExclAgentAvg field.
func (o *UsageSummaryDateOrg) SetContainerExclAgentAvg(v int64) {
o.ContainerExclAgentAvg = &v
}

// GetContainerHwm returns the ContainerHwm field value if set, zero value otherwise.
func (o *UsageSummaryDateOrg) GetContainerHwm() int64 {
if o == nil || o.ContainerHwm == nil {
Expand Down Expand Up @@ -2381,6 +2411,9 @@ func (o UsageSummaryDateOrg) MarshalJSON() ([]byte, error) {
if o.ContainerAvg != nil {
toSerialize["container_avg"] = o.ContainerAvg
}
if o.ContainerExclAgentAvg != nil {
toSerialize["container_excl_agent_avg"] = o.ContainerExclAgentAvg
}
if o.ContainerHwm != nil {
toSerialize["container_hwm"] = o.ContainerHwm
}
Expand Down Expand Up @@ -2578,6 +2611,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
CiVisibilityTestCommittersHwm *int64 `json:"ci_visibility_test_committers_hwm,omitempty"`
CloudCostManagementHostCountAvg *int64 `json:"cloud_cost_management_host_count_avg,omitempty"`
ContainerAvg *int64 `json:"container_avg,omitempty"`
ContainerExclAgentAvg *int64 `json:"container_excl_agent_avg,omitempty"`
ContainerHwm *int64 `json:"container_hwm,omitempty"`
CspmAasHostTop99p *int64 `json:"cspm_aas_host_top99p,omitempty"`
CspmAwsHostTop99p *int64 `json:"cspm_aws_host_top99p,omitempty"`
Expand Down Expand Up @@ -2664,6 +2698,7 @@ func (o *UsageSummaryDateOrg) UnmarshalJSON(bytes []byte) (err error) {
o.CiVisibilityTestCommittersHwm = all.CiVisibilityTestCommittersHwm
o.CloudCostManagementHostCountAvg = all.CloudCostManagementHostCountAvg
o.ContainerAvg = all.ContainerAvg
o.ContainerExclAgentAvg = all.ContainerExclAgentAvg
o.ContainerHwm = all.ContainerHwm
o.CspmAasHostTop99p = all.CspmAasHostTop99p
o.CspmAwsHostTop99p = all.CspmAwsHostTop99p
Expand Down
35 changes: 35 additions & 0 deletions api/datadogV1/model_usage_summary_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ type UsageSummaryResponse struct {
CloudCostManagementHostCountAvgSum *int64 `json:"cloud_cost_management_host_count_avg_sum,omitempty"`
// Shows the average of all distinct containers over all hours in the current months for all organizations.
ContainerAvgSum *int64 `json:"container_avg_sum,omitempty"`
// Shows the average of the containers without the Datadog Agent over all hours in the current month for all organizations.
ContainerExclAgentAvgSum *int64 `json:"container_excl_agent_avg_sum,omitempty"`
// Shows the sum of the high-water marks of all distinct containers over all hours in the current months for all organizations.
ContainerHwmSum *int64 `json:"container_hwm_sum,omitempty"`
// Shows the 99th percentile of all Cloud Security Posture Management Azure app services hosts over all hours in the current months for all organizations.
Expand Down Expand Up @@ -815,6 +817,34 @@ func (o *UsageSummaryResponse) SetContainerAvgSum(v int64) {
o.ContainerAvgSum = &v
}

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

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

// HasContainerExclAgentAvgSum returns a boolean if a field has been set.
func (o *UsageSummaryResponse) HasContainerExclAgentAvgSum() bool {
return o != nil && o.ContainerExclAgentAvgSum != nil
}

// SetContainerExclAgentAvgSum gets a reference to the given int64 and assigns it to the ContainerExclAgentAvgSum field.
func (o *UsageSummaryResponse) SetContainerExclAgentAvgSum(v int64) {
o.ContainerExclAgentAvgSum = &v
}

// GetContainerHwmSum returns the ContainerHwmSum field value if set, zero value otherwise.
func (o *UsageSummaryResponse) GetContainerHwmSum() int64 {
if o == nil || o.ContainerHwmSum == nil {
Expand Down Expand Up @@ -2595,6 +2625,9 @@ func (o UsageSummaryResponse) MarshalJSON() ([]byte, error) {
if o.ContainerAvgSum != nil {
toSerialize["container_avg_sum"] = o.ContainerAvgSum
}
if o.ContainerExclAgentAvgSum != nil {
toSerialize["container_excl_agent_avg_sum"] = o.ContainerExclAgentAvgSum
}
if o.ContainerHwmSum != nil {
toSerialize["container_hwm_sum"] = o.ContainerHwmSum
}
Expand Down Expand Up @@ -2823,6 +2856,7 @@ func (o *UsageSummaryResponse) UnmarshalJSON(bytes []byte) (err error) {
CiVisibilityTestCommittersHwmSum *int64 `json:"ci_visibility_test_committers_hwm_sum,omitempty"`
CloudCostManagementHostCountAvgSum *int64 `json:"cloud_cost_management_host_count_avg_sum,omitempty"`
ContainerAvgSum *int64 `json:"container_avg_sum,omitempty"`
ContainerExclAgentAvgSum *int64 `json:"container_excl_agent_avg_sum,omitempty"`
ContainerHwmSum *int64 `json:"container_hwm_sum,omitempty"`
CspmAasHostTop99pSum *int64 `json:"cspm_aas_host_top99p_sum,omitempty"`
CspmAwsHostTop99pSum *int64 `json:"cspm_aws_host_top99p_sum,omitempty"`
Expand Down Expand Up @@ -2916,6 +2950,7 @@ func (o *UsageSummaryResponse) UnmarshalJSON(bytes []byte) (err error) {
o.CiVisibilityTestCommittersHwmSum = all.CiVisibilityTestCommittersHwmSum
o.CloudCostManagementHostCountAvgSum = all.CloudCostManagementHostCountAvgSum
o.ContainerAvgSum = all.ContainerAvgSum
o.ContainerExclAgentAvgSum = all.ContainerExclAgentAvgSum
o.ContainerHwmSum = all.ContainerHwmSum
o.CspmAasHostTop99pSum = all.CspmAasHostTop99pSum
o.CspmAwsHostTop99pSum = all.CspmAwsHostTop99pSum
Expand Down

0 comments on commit 805bcaa

Please sign in to comment.