From 69fb57bc11fc8869cca2f26af51ceb63b15ab98d Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 10 Feb 2023 21:56:54 +0000 Subject: [PATCH] Regenerate client from commit 71732bfc of spec repo --- .apigentools-info | 8 +-- .generator/schemas/v1/openapi.yaml | 53 ++++++++++++++----- .generator/schemas/v2/openapi.yaml | 4 +- .../model_monthly_usage_attribution_values.go | 20 +++---- .../model_usage_attribution_values.go | 20 +++---- api/datadogV1/model_usage_summary_date_org.go | 35 ++++++++++++ api/datadogV1/model_usage_summary_response.go | 35 ++++++++++++ 7 files changed, 137 insertions(+), 38 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index d3d3d54d898..3a808988a35 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-02-10 19:48:01.015695", - "spec_repo_commit": "b3e2c8a4" + "regenerated": "2023-02-10 21:55:42.151949", + "spec_repo_commit": "71732bfc" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-02-10 19:48:01.027678", - "spec_repo_commit": "b3e2c8a4" + "regenerated": "2023-02-10 21:55:42.164293", + "spec_repo_commit": "71732bfc" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 5ac27955cf1..e7aac2fa645 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -7340,42 +7340,52 @@ components: type: number estimated_indexed_logs_percentage: description: The percentage of estimated live indexed logs usage by tag(s). + This field is in private beta. format: double type: number estimated_indexed_logs_usage: - description: The estimated live indexed logs usage by tag(s). + description: The estimated live indexed logs usage by tag(s). This field + is in private beta. format: double type: number estimated_indexed_spans_percentage: description: The percentage of estimated indexed spans usage by tag(s). + This field is in private beta. format: double type: number estimated_indexed_spans_usage: - description: The estimated indexed spans usage by tag(s). + description: The estimated indexed spans usage by tag(s). This field is + in private beta. format: double type: number estimated_ingested_logs_percentage: description: The percentage of estimated live ingested logs usage by tag(s). + This field is in private beta. format: double type: number estimated_ingested_logs_usage: - description: The estimated live ingested logs usage by tag(s). + description: The estimated live ingested logs usage by tag(s). This field + is in private beta. format: double type: number estimated_ingested_spans_percentage: description: The percentage of estimated ingested spans usage by tag(s). + This field is in private beta. format: double type: number estimated_ingested_spans_usage: - description: The estimated ingested spans usage by tag(s). + description: The estimated ingested spans usage by tag(s). This field is + in private beta. format: double type: number estimated_rum_sessions_percentage: - description: The percentage of estimated rum sessions usage by tag(s). + description: The percentage of estimated rum sessions usage by tag(s). This + field is in private beta. format: double type: number estimated_rum_sessions_usage: - description: The estimated rum sessions usage by tag(s). + description: The estimated rum sessions usage by tag(s). This field is in + private beta. format: double type: number fargate_percentage: @@ -15146,42 +15156,52 @@ components: type: number estimated_indexed_logs_percentage: description: The percentage of estimated live indexed logs usage by tag(s). + Note this field is in private beta. format: double type: number estimated_indexed_logs_usage: - description: The estimated live indexed logs usage by tag(s). + description: The estimated live indexed logs usage by tag(s). Note this + field is in private beta. format: double type: number estimated_indexed_spans_percentage: description: The percentage of estimated indexed spans usage by tag(s). + Note this field is in private beta. format: double type: number estimated_indexed_spans_usage: - description: The estimated indexed spans usage by tag(s). + description: The estimated indexed spans usage by tag(s). Note this field + is in private beta. format: double type: number estimated_ingested_logs_percentage: description: The percentage of estimated live ingested logs usage by tag(s). + Note this field is in private beta. format: double type: number estimated_ingested_logs_usage: - description: The estimated live ingested logs usage by tag(s). + description: The estimated live ingested logs usage by tag(s). Note this + field is in private beta. format: double type: number estimated_ingested_spans_percentage: description: The percentage of estimated ingested spans usage by tag(s). + Note this field is in private beta. format: double type: number estimated_ingested_spans_usage: - description: The estimated ingested spans usage by tag(s). + description: The estimated ingested spans usage by tag(s). Note this field + is in private beta. format: double type: number estimated_rum_sessions_percentage: - description: The percentage of estimated rum sessions usage by tag(s). + description: The percentage of estimated rum sessions usage by tag(s). This + field is in private beta. format: double type: number estimated_rum_sessions_usage: - description: The estimated rum sessions usage by tag(s). + description: The estimated rum sessions usage by tag(s). This field is in + private beta. format: double type: number infra_host_percentage: @@ -17054,6 +17074,11 @@ components: over all hours in the current date for the given org. format: int64 type: integer + cloud_cost_management_host_count_avg: + description: Host count average of Cloud Cost Management for the given date + and given org. + format: int64 + type: integer container_avg: description: Shows the average of all distinct containers over all hours in the current date for the given org. @@ -17434,6 +17459,10 @@ components: over all hours in the current months for all organizations. format: int64 type: integer + cloud_cost_management_host_count_avg_sum: + description: Sum of the host count average for Cloud Cost Management. + format: int64 + type: integer container_avg_sum: description: Shows the average of all distinct containers over all hours in the current months for all organizations. diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0a52a78f46f..787db6e45be 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -20037,8 +20037,8 @@ paths: - description: 'Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, - `application_security`, `audit_logs`, `serverless`, `ci_app`, `cspm`, `custom_events`, - `cws`, `dbm`, `fargate`, + `application_security`, `audit_logs`, `serverless`, `ci_app`, `cloud_cost_management`, + `cspm`, `custom_events`, `cws`, `dbm`, `fargate`, `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`, diff --git a/api/datadogV1/model_monthly_usage_attribution_values.go b/api/datadogV1/model_monthly_usage_attribution_values.go index d3775a4508e..6f04813e6f9 100644 --- a/api/datadogV1/model_monthly_usage_attribution_values.go +++ b/api/datadogV1/model_monthly_usage_attribution_values.go @@ -70,25 +70,25 @@ type MonthlyUsageAttributionValues struct { DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"` // The Database Monitoring queries usage by tag(s). DbmQueriesUsage *float64 `json:"dbm_queries_usage,omitempty"` - // The percentage of estimated live indexed logs usage by tag(s). + // The percentage of estimated live indexed logs usage by tag(s). This field is in private beta. EstimatedIndexedLogsPercentage *float64 `json:"estimated_indexed_logs_percentage,omitempty"` - // The estimated live indexed logs usage by tag(s). + // The estimated live indexed logs usage by tag(s). This field is in private beta. EstimatedIndexedLogsUsage *float64 `json:"estimated_indexed_logs_usage,omitempty"` - // The percentage of estimated indexed spans usage by tag(s). + // The percentage of estimated indexed spans usage by tag(s). This field is in private beta. EstimatedIndexedSpansPercentage *float64 `json:"estimated_indexed_spans_percentage,omitempty"` - // The estimated indexed spans usage by tag(s). + // The estimated indexed spans usage by tag(s). This field is in private beta. EstimatedIndexedSpansUsage *float64 `json:"estimated_indexed_spans_usage,omitempty"` - // The percentage of estimated live ingested logs usage by tag(s). + // The percentage of estimated live ingested logs usage by tag(s). This field is in private beta. EstimatedIngestedLogsPercentage *float64 `json:"estimated_ingested_logs_percentage,omitempty"` - // The estimated live ingested logs usage by tag(s). + // The estimated live ingested logs usage by tag(s). This field is in private beta. EstimatedIngestedLogsUsage *float64 `json:"estimated_ingested_logs_usage,omitempty"` - // The percentage of estimated ingested spans usage by tag(s). + // The percentage of estimated ingested spans usage by tag(s). This field is in private beta. EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` - // The estimated ingested spans usage by tag(s). + // The estimated ingested spans usage by tag(s). This field is in private beta. EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` - // The percentage of estimated rum sessions usage by tag(s). + // The percentage of estimated rum sessions usage by tag(s). This field is in private beta. EstimatedRumSessionsPercentage *float64 `json:"estimated_rum_sessions_percentage,omitempty"` - // The estimated rum sessions usage by tag(s). + // The estimated rum sessions usage by tag(s). This field is in private beta. EstimatedRumSessionsUsage *float64 `json:"estimated_rum_sessions_usage,omitempty"` // The percentage of Fargate usage by tags. FargatePercentage *float64 `json:"fargate_percentage,omitempty"` diff --git a/api/datadogV1/model_usage_attribution_values.go b/api/datadogV1/model_usage_attribution_values.go index 629cb676f5f..80a4a8e9531 100644 --- a/api/datadogV1/model_usage_attribution_values.go +++ b/api/datadogV1/model_usage_attribution_values.go @@ -66,25 +66,25 @@ type UsageAttributionValues struct { DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"` // The Database Monitoring normalized queries usage by tag(s). DbmQueriesUsage *float64 `json:"dbm_queries_usage,omitempty"` - // The percentage of estimated live indexed logs usage by tag(s). + // The percentage of estimated live indexed logs usage by tag(s). Note this field is in private beta. EstimatedIndexedLogsPercentage *float64 `json:"estimated_indexed_logs_percentage,omitempty"` - // The estimated live indexed logs usage by tag(s). + // The estimated live indexed logs usage by tag(s). Note this field is in private beta. EstimatedIndexedLogsUsage *float64 `json:"estimated_indexed_logs_usage,omitempty"` - // The percentage of estimated indexed spans usage by tag(s). + // The percentage of estimated indexed spans usage by tag(s). Note this field is in private beta. EstimatedIndexedSpansPercentage *float64 `json:"estimated_indexed_spans_percentage,omitempty"` - // The estimated indexed spans usage by tag(s). + // The estimated indexed spans usage by tag(s). Note this field is in private beta. EstimatedIndexedSpansUsage *float64 `json:"estimated_indexed_spans_usage,omitempty"` - // The percentage of estimated live ingested logs usage by tag(s). + // The percentage of estimated live ingested logs usage by tag(s). Note this field is in private beta. EstimatedIngestedLogsPercentage *float64 `json:"estimated_ingested_logs_percentage,omitempty"` - // The estimated live ingested logs usage by tag(s). + // The estimated live ingested logs usage by tag(s). Note this field is in private beta. EstimatedIngestedLogsUsage *float64 `json:"estimated_ingested_logs_usage,omitempty"` - // The percentage of estimated ingested spans usage by tag(s). + // The percentage of estimated ingested spans usage by tag(s). Note this field is in private beta. EstimatedIngestedSpansPercentage *float64 `json:"estimated_ingested_spans_percentage,omitempty"` - // The estimated ingested spans usage by tag(s). + // The estimated ingested spans usage by tag(s). Note this field is in private beta. EstimatedIngestedSpansUsage *float64 `json:"estimated_ingested_spans_usage,omitempty"` - // The percentage of estimated rum sessions usage by tag(s). + // The percentage of estimated rum sessions usage by tag(s). This field is in private beta. EstimatedRumSessionsPercentage *float64 `json:"estimated_rum_sessions_percentage,omitempty"` - // The estimated rum sessions usage by tag(s). + // The estimated rum sessions usage by tag(s). This field is in private beta. EstimatedRumSessionsUsage *float64 `json:"estimated_rum_sessions_usage,omitempty"` // The percentage of infrastructure host usage by tag(s). InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` diff --git a/api/datadogV1/model_usage_summary_date_org.go b/api/datadogV1/model_usage_summary_date_org.go index 2c02839b1ed..202bfd44801 100644 --- a/api/datadogV1/model_usage_summary_date_org.go +++ b/api/datadogV1/model_usage_summary_date_org.go @@ -48,6 +48,8 @@ type UsageSummaryDateOrg 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 date for the given org. CiVisibilityTestCommittersHwm *int64 `json:"ci_visibility_test_committers_hwm,omitempty"` + // Host count average of Cloud Cost Management for the given date and given org. + 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 high-water mark of all distinct containers over all hours in the current date for the given org. @@ -714,6 +716,34 @@ func (o *UsageSummaryDateOrg) SetCiVisibilityTestCommittersHwm(v int64) { o.CiVisibilityTestCommittersHwm = &v } +// GetCloudCostManagementHostCountAvg returns the CloudCostManagementHostCountAvg field value if set, zero value otherwise. +func (o *UsageSummaryDateOrg) 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 *UsageSummaryDateOrg) 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 *UsageSummaryDateOrg) 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 *UsageSummaryDateOrg) SetCloudCostManagementHostCountAvg(v int64) { + o.CloudCostManagementHostCountAvg = &v +} + // GetContainerAvg returns the ContainerAvg field value if set, zero value otherwise. func (o *UsageSummaryDateOrg) GetContainerAvg() int64 { if o == nil || o.ContainerAvg == nil { @@ -2345,6 +2375,9 @@ func (o UsageSummaryDateOrg) 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 } @@ -2543,6 +2576,7 @@ func (o *UsageSummaryDateOrg) 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"` ContainerHwm *int64 `json:"container_hwm,omitempty"` CspmAasHostTop99p *int64 `json:"cspm_aas_host_top99p,omitempty"` @@ -2628,6 +2662,7 @@ func (o *UsageSummaryDateOrg) 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.ContainerHwm = all.ContainerHwm o.CspmAasHostTop99p = all.CspmAasHostTop99p diff --git a/api/datadogV1/model_usage_summary_response.go b/api/datadogV1/model_usage_summary_response.go index bca1c2e2d64..0694913e37b 100644 --- a/api/datadogV1/model_usage_summary_response.go +++ b/api/datadogV1/model_usage_summary_response.go @@ -51,6 +51,8 @@ type UsageSummaryResponse struct { CiVisibilityPipelineCommittersHwmSum *int64 `json:"ci_visibility_pipeline_committers_hwm_sum,omitempty"` // Shows the high-water mark of all CI visibility test committers over all hours in the current months for all organizations. CiVisibilityTestCommittersHwmSum *int64 `json:"ci_visibility_test_committers_hwm_sum,omitempty"` + // Sum of the host count average for Cloud Cost Management. + 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 sum of the high-water marks of all distinct containers over all hours in the current months for all organizations. @@ -757,6 +759,34 @@ func (o *UsageSummaryResponse) SetCiVisibilityTestCommittersHwmSum(v int64) { o.CiVisibilityTestCommittersHwmSum = &v } +// GetCloudCostManagementHostCountAvgSum returns the CloudCostManagementHostCountAvgSum field value if set, zero value otherwise. +func (o *UsageSummaryResponse) GetCloudCostManagementHostCountAvgSum() int64 { + if o == nil || o.CloudCostManagementHostCountAvgSum == nil { + var ret int64 + return ret + } + return *o.CloudCostManagementHostCountAvgSum +} + +// GetCloudCostManagementHostCountAvgSumOk returns a tuple with the CloudCostManagementHostCountAvgSum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageSummaryResponse) GetCloudCostManagementHostCountAvgSumOk() (*int64, bool) { + if o == nil || o.CloudCostManagementHostCountAvgSum == nil { + return nil, false + } + return o.CloudCostManagementHostCountAvgSum, true +} + +// HasCloudCostManagementHostCountAvgSum returns a boolean if a field has been set. +func (o *UsageSummaryResponse) HasCloudCostManagementHostCountAvgSum() bool { + return o != nil && o.CloudCostManagementHostCountAvgSum != nil +} + +// SetCloudCostManagementHostCountAvgSum gets a reference to the given int64 and assigns it to the CloudCostManagementHostCountAvgSum field. +func (o *UsageSummaryResponse) SetCloudCostManagementHostCountAvgSum(v int64) { + o.CloudCostManagementHostCountAvgSum = &v +} + // GetContainerAvgSum returns the ContainerAvgSum field value if set, zero value otherwise. func (o *UsageSummaryResponse) GetContainerAvgSum() int64 { if o == nil || o.ContainerAvgSum == nil { @@ -2559,6 +2589,9 @@ func (o UsageSummaryResponse) MarshalJSON() ([]byte, error) { if o.CiVisibilityTestCommittersHwmSum != nil { toSerialize["ci_visibility_test_committers_hwm_sum"] = o.CiVisibilityTestCommittersHwmSum } + if o.CloudCostManagementHostCountAvgSum != nil { + toSerialize["cloud_cost_management_host_count_avg_sum"] = o.CloudCostManagementHostCountAvgSum + } if o.ContainerAvgSum != nil { toSerialize["container_avg_sum"] = o.ContainerAvgSum } @@ -2788,6 +2821,7 @@ func (o *UsageSummaryResponse) UnmarshalJSON(bytes []byte) (err error) { CiTestIndexedSpansAggSum *int64 `json:"ci_test_indexed_spans_agg_sum,omitempty"` CiVisibilityPipelineCommittersHwmSum *int64 `json:"ci_visibility_pipeline_committers_hwm_sum,omitempty"` 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"` ContainerHwmSum *int64 `json:"container_hwm_sum,omitempty"` CspmAasHostTop99pSum *int64 `json:"cspm_aas_host_top99p_sum,omitempty"` @@ -2880,6 +2914,7 @@ func (o *UsageSummaryResponse) UnmarshalJSON(bytes []byte) (err error) { o.CiTestIndexedSpansAggSum = all.CiTestIndexedSpansAggSum o.CiVisibilityPipelineCommittersHwmSum = all.CiVisibilityPipelineCommittersHwmSum o.CiVisibilityTestCommittersHwmSum = all.CiVisibilityTestCommittersHwmSum + o.CloudCostManagementHostCountAvgSum = all.CloudCostManagementHostCountAvgSum o.ContainerAvgSum = all.ContainerAvgSum o.ContainerHwmSum = all.ContainerHwmSum o.CspmAasHostTop99pSum = all.CspmAasHostTop99pSum