From 58de76ed920c5b1e03eedc6d17678f03f9afe355 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Fri, 6 Jan 2023 10:34:06 +0000 Subject: [PATCH] Remove indexed logs from Usage Attribution (#1814) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 +-- .generator/schemas/v1/openapi.yaml | 14 ---- ...del_hourly_usage_attribution_usage_type.go | 2 - ...hly_usage_attribution_supported_metrics.go | 4 -- .../model_monthly_usage_attribution_values.go | 70 ------------------- 5 files changed, 4 insertions(+), 94 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index c4ce8732e61..8932777ef57 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-01-06 07:37:08.151362", - "spec_repo_commit": "fe3267e8" + "regenerated": "2023-01-06 10:15:20.283199", + "spec_repo_commit": "03622159" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-01-06 07:37:08.173359", - "spec_repo_commit": "fe3267e8" + "regenerated": "2023-01-06 10:15:20.294953", + "spec_repo_commit": "03622159" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 77515f5bb57..2829cc6deda 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3662,7 +3662,6 @@ components: - estimated_ingested_spans_usage - fargate_usage - functions_usage - - indexed_logs_usage - infra_host_usage - invocations_usage - npm_host_usage @@ -3693,7 +3692,6 @@ components: - ESTIMATED_INGESTED_SPANS_USAGE - FARGATE_USAGE - FUNCTIONS_USAGE - - INDEXED_LOGS_USAGE - INFRA_HOST_USAGE - INVOCATIONS_USAGE - NPM_HOST_USAGE @@ -7014,8 +7012,6 @@ components: - fargate_percentage - functions_usage - functions_percentage - - indexed_logs_usage - - indexed_logs_percentage - infra_host_usage - infra_host_percentage - invocations_usage @@ -7075,8 +7071,6 @@ components: - FARGATE_PERCENTAGE - FUNCTIONS_USAGE - FUNCTIONS_PERCENTAGE - - INDEXED_LOGS_USAGE - - INDEXED_LOGS_PERCENTAGE - INFRA_HOST_USAGE - INFRA_HOST_PERCENTAGE - INVOCATIONS_USAGE @@ -7288,14 +7282,6 @@ components: description: The Lambda function usage by tag(s). format: double type: number - indexed_logs_percentage: - description: The percentage of indexed logs usage by tags. - format: double - type: number - indexed_logs_usage: - description: The indexed logs usage by tags. - format: double - type: number infra_host_percentage: description: The percentage of infrastructure host usage by tag(s). format: double diff --git a/api/datadogV1/model_hourly_usage_attribution_usage_type.go b/api/datadogV1/model_hourly_usage_attribution_usage_type.go index a92123da534..65844dd520f 100644 --- a/api/datadogV1/model_hourly_usage_attribution_usage_type.go +++ b/api/datadogV1/model_hourly_usage_attribution_usage_type.go @@ -34,7 +34,6 @@ const ( HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INGESTED_SPANS_USAGE HourlyUsageAttributionUsageType = "estimated_ingested_spans_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_FARGATE_USAGE HourlyUsageAttributionUsageType = "fargate_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_FUNCTIONS_USAGE HourlyUsageAttributionUsageType = "functions_usage" - HOURLYUSAGEATTRIBUTIONUSAGETYPE_INDEXED_LOGS_USAGE HourlyUsageAttributionUsageType = "indexed_logs_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_INFRA_HOST_USAGE HourlyUsageAttributionUsageType = "infra_host_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_INVOCATIONS_USAGE HourlyUsageAttributionUsageType = "invocations_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_NPM_HOST_USAGE HourlyUsageAttributionUsageType = "npm_host_usage" @@ -66,7 +65,6 @@ var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionU HOURLYUSAGEATTRIBUTIONUSAGETYPE_ESTIMATED_INGESTED_SPANS_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_FARGATE_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_FUNCTIONS_USAGE, - HOURLYUSAGEATTRIBUTIONUSAGETYPE_INDEXED_LOGS_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_INFRA_HOST_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_INVOCATIONS_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_NPM_HOST_USAGE, diff --git a/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go b/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go index 7d2a7c3679c..6d6e018556a 100644 --- a/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go +++ b/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go @@ -54,8 +54,6 @@ const ( MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_FARGATE_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "fargate_percentage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_FUNCTIONS_USAGE MonthlyUsageAttributionSupportedMetrics = "functions_usage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_FUNCTIONS_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "functions_percentage" - MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INDEXED_LOGS_USAGE MonthlyUsageAttributionSupportedMetrics = "indexed_logs_usage" - MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INDEXED_LOGS_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "indexed_logs_percentage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_USAGE MonthlyUsageAttributionSupportedMetrics = "infra_host_usage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "infra_host_percentage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INVOCATIONS_USAGE MonthlyUsageAttributionSupportedMetrics = "invocations_usage" @@ -116,8 +114,6 @@ var allowedMonthlyUsageAttributionSupportedMetricsEnumValues = []MonthlyUsageAtt MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_FARGATE_PERCENTAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_FUNCTIONS_USAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_FUNCTIONS_PERCENTAGE, - MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INDEXED_LOGS_USAGE, - MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INDEXED_LOGS_PERCENTAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_USAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INFRA_HOST_PERCENTAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_INVOCATIONS_USAGE, diff --git a/api/datadogV1/model_monthly_usage_attribution_values.go b/api/datadogV1/model_monthly_usage_attribution_values.go index 7dea35127e1..e93b0f1c3a0 100644 --- a/api/datadogV1/model_monthly_usage_attribution_values.go +++ b/api/datadogV1/model_monthly_usage_attribution_values.go @@ -98,10 +98,6 @@ type MonthlyUsageAttributionValues struct { FunctionsPercentage *float64 `json:"functions_percentage,omitempty"` // The Lambda function usage by tag(s). FunctionsUsage *float64 `json:"functions_usage,omitempty"` - // The percentage of indexed logs usage by tags. - IndexedLogsPercentage *float64 `json:"indexed_logs_percentage,omitempty"` - // The indexed logs usage by tags. - IndexedLogsUsage *float64 `json:"indexed_logs_usage,omitempty"` // The percentage of infrastructure host usage by tag(s). InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` // The infrastructure host usage by tag(s). @@ -1380,62 +1376,6 @@ func (o *MonthlyUsageAttributionValues) SetFunctionsUsage(v float64) { o.FunctionsUsage = &v } -// GetIndexedLogsPercentage returns the IndexedLogsPercentage field value if set, zero value otherwise. -func (o *MonthlyUsageAttributionValues) GetIndexedLogsPercentage() float64 { - if o == nil || o.IndexedLogsPercentage == nil { - var ret float64 - return ret - } - return *o.IndexedLogsPercentage -} - -// GetIndexedLogsPercentageOk returns a tuple with the IndexedLogsPercentage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MonthlyUsageAttributionValues) GetIndexedLogsPercentageOk() (*float64, bool) { - if o == nil || o.IndexedLogsPercentage == nil { - return nil, false - } - return o.IndexedLogsPercentage, true -} - -// HasIndexedLogsPercentage returns a boolean if a field has been set. -func (o *MonthlyUsageAttributionValues) HasIndexedLogsPercentage() bool { - return o != nil && o.IndexedLogsPercentage != nil -} - -// SetIndexedLogsPercentage gets a reference to the given float64 and assigns it to the IndexedLogsPercentage field. -func (o *MonthlyUsageAttributionValues) SetIndexedLogsPercentage(v float64) { - o.IndexedLogsPercentage = &v -} - -// GetIndexedLogsUsage returns the IndexedLogsUsage field value if set, zero value otherwise. -func (o *MonthlyUsageAttributionValues) GetIndexedLogsUsage() float64 { - if o == nil || o.IndexedLogsUsage == nil { - var ret float64 - return ret - } - return *o.IndexedLogsUsage -} - -// GetIndexedLogsUsageOk returns a tuple with the IndexedLogsUsage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MonthlyUsageAttributionValues) GetIndexedLogsUsageOk() (*float64, bool) { - if o == nil || o.IndexedLogsUsage == nil { - return nil, false - } - return o.IndexedLogsUsage, true -} - -// HasIndexedLogsUsage returns a boolean if a field has been set. -func (o *MonthlyUsageAttributionValues) HasIndexedLogsUsage() bool { - return o != nil && o.IndexedLogsUsage != nil -} - -// SetIndexedLogsUsage gets a reference to the given float64 and assigns it to the IndexedLogsUsage field. -func (o *MonthlyUsageAttributionValues) SetIndexedLogsUsage(v float64) { - o.IndexedLogsUsage = &v -} - // GetInfraHostPercentage returns the InfraHostPercentage field value if set, zero value otherwise. func (o *MonthlyUsageAttributionValues) GetInfraHostPercentage() float64 { if o == nil || o.InfraHostPercentage == nil { @@ -1910,12 +1850,6 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) { if o.FunctionsUsage != nil { toSerialize["functions_usage"] = o.FunctionsUsage } - if o.IndexedLogsPercentage != nil { - toSerialize["indexed_logs_percentage"] = o.IndexedLogsPercentage - } - if o.IndexedLogsUsage != nil { - toSerialize["indexed_logs_usage"] = o.IndexedLogsUsage - } if o.InfraHostPercentage != nil { toSerialize["infra_host_percentage"] = o.InfraHostPercentage } @@ -2007,8 +1941,6 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) FargateUsage *float64 `json:"fargate_usage,omitempty"` FunctionsPercentage *float64 `json:"functions_percentage,omitempty"` FunctionsUsage *float64 `json:"functions_usage,omitempty"` - IndexedLogsPercentage *float64 `json:"indexed_logs_percentage,omitempty"` - IndexedLogsUsage *float64 `json:"indexed_logs_usage,omitempty"` InfraHostPercentage *float64 `json:"infra_host_percentage,omitempty"` InfraHostUsage *float64 `json:"infra_host_usage,omitempty"` InvocationsPercentage *float64 `json:"invocations_percentage,omitempty"` @@ -2075,8 +2007,6 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) o.FargateUsage = all.FargateUsage o.FunctionsPercentage = all.FunctionsPercentage o.FunctionsUsage = all.FunctionsUsage - o.IndexedLogsPercentage = all.IndexedLogsPercentage - o.IndexedLogsUsage = all.IndexedLogsUsage o.InfraHostPercentage = all.InfraHostPercentage o.InfraHostUsage = all.InfraHostUsage o.InvocationsPercentage = all.InvocationsPercentage