From 230c5c5c2af47a3e7a9b5b959c69e11f44b5cbbe Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 10 Oct 2024 19:47:41 +0000 Subject: [PATCH] Regenerate client from commit 049920eb of spec repo --- .apigentools-info | 8 ++-- .generator/schemas/v1/openapi.yaml | 10 +++++ ...del_hourly_usage_attribution_usage_type.go | 2 + ...hly_usage_attribution_supported_metrics.go | 4 ++ .../model_monthly_usage_attribution_values.go | 37 ++++++++++++++++++- 5 files changed, 56 insertions(+), 5 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 552954a24bd..59823ef0932 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-10 18:55:02.877582", - "spec_repo_commit": "1bd8568a" + "regenerated": "2024-10-10 19:46:01.049645", + "spec_repo_commit": "049920eb" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-10 18:55:02.896093", - "spec_repo_commit": "1bd8568a" + "regenerated": "2024-10-10 19:46:01.068188", + "spec_repo_commit": "049920eb" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 7c78aee7fd4..e2eb404ab43 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4189,6 +4189,7 @@ components: - cws_containers_usage - cws_hosts_usage - data_jobs_monitoring_usage + - data_stream_monitoring_usage - dbm_hosts_usage - dbm_queries_usage - error_tracking_usage @@ -4263,6 +4264,7 @@ components: - CWS_CONTAINERS_USAGE - CWS_HOSTS_USAGE - DATA_JOBS_MONITORING_USAGE + - DATA_STREAM_MONITORING_USAGE - DBM_HOSTS_USAGE - DBM_QUERIES_USAGE - ERROR_TRACKING_USAGE @@ -7945,6 +7947,8 @@ components: - cws_hosts_usage - data_jobs_monitoring_usage - data_jobs_monitoring_percentage + - data_stream_monitoring_usage + - data_stream_monitoring_percentage - dbm_hosts_percentage - dbm_hosts_usage - dbm_queries_percentage @@ -8088,6 +8092,8 @@ components: - CWS_HOSTS_USAGE - DATA_JOBS_MONITORING_USAGE - DATA_JOBS_MONITORING_PERCENTAGE + - DATA_STREAM_MONITORING_USAGE + - DATA_STREAM_MONITORING_PERCENTAGE - DBM_HOSTS_PERCENTAGE - DBM_HOSTS_USAGE - DBM_QUERIES_PERCENTAGE @@ -8379,6 +8385,10 @@ components: description: The Data Jobs Monitoring usage by tag(s). format: double type: number + data_stream_monitoring_usage: + description: The Data Stream Monitoring usage by tag(s). + format: double + type: number dbm_hosts_percentage: description: The percentage of Database Monitoring 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 2b86287a36f..a4d2de64900 100644 --- a/api/datadogV1/model_hourly_usage_attribution_usage_type.go +++ b/api/datadogV1/model_hourly_usage_attribution_usage_type.go @@ -38,6 +38,7 @@ const ( HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_CONTAINERS_USAGE HourlyUsageAttributionUsageType = "cws_containers_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_HOSTS_USAGE HourlyUsageAttributionUsageType = "cws_hosts_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_DATA_JOBS_MONITORING_USAGE HourlyUsageAttributionUsageType = "data_jobs_monitoring_usage" + HOURLYUSAGEATTRIBUTIONUSAGETYPE_DATA_STREAM_MONITORING_USAGE HourlyUsageAttributionUsageType = "data_stream_monitoring_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_HOSTS_USAGE HourlyUsageAttributionUsageType = "dbm_hosts_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_QUERIES_USAGE HourlyUsageAttributionUsageType = "dbm_queries_usage" HOURLYUSAGEATTRIBUTIONUSAGETYPE_ERROR_TRACKING_USAGE HourlyUsageAttributionUsageType = "error_tracking_usage" @@ -113,6 +114,7 @@ var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionU HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_CONTAINERS_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_HOSTS_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_DATA_JOBS_MONITORING_USAGE, + HOURLYUSAGEATTRIBUTIONUSAGETYPE_DATA_STREAM_MONITORING_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_HOSTS_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_QUERIES_USAGE, HOURLYUSAGEATTRIBUTIONUSAGETYPE_ERROR_TRACKING_USAGE, diff --git a/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go b/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go index e337904009a..a399e9cb31e 100644 --- a/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go +++ b/api/datadogV1/model_monthly_usage_attribution_supported_metrics.go @@ -53,6 +53,8 @@ const ( MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_CWS_HOSTS_USAGE MonthlyUsageAttributionSupportedMetrics = "cws_hosts_usage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_JOBS_MONITORING_USAGE MonthlyUsageAttributionSupportedMetrics = "data_jobs_monitoring_usage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_JOBS_MONITORING_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "data_jobs_monitoring_percentage" + MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_STREAM_MONITORING_USAGE MonthlyUsageAttributionSupportedMetrics = "data_stream_monitoring_usage" + MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_STREAM_MONITORING_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "data_stream_monitoring_percentage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "dbm_hosts_percentage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_USAGE MonthlyUsageAttributionSupportedMetrics = "dbm_hosts_usage" MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "dbm_queries_percentage" @@ -197,6 +199,8 @@ var allowedMonthlyUsageAttributionSupportedMetricsEnumValues = []MonthlyUsageAtt MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_CWS_HOSTS_USAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_JOBS_MONITORING_USAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_JOBS_MONITORING_PERCENTAGE, + MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_STREAM_MONITORING_USAGE, + MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_STREAM_MONITORING_PERCENTAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_PERCENTAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_USAGE, MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_PERCENTAGE, diff --git a/api/datadogV1/model_monthly_usage_attribution_values.go b/api/datadogV1/model_monthly_usage_attribution_values.go index d93bea90d54..75c7bcb3b26 100644 --- a/api/datadogV1/model_monthly_usage_attribution_values.go +++ b/api/datadogV1/model_monthly_usage_attribution_values.go @@ -96,6 +96,8 @@ type MonthlyUsageAttributionValues struct { CwsHostsUsage *float64 `json:"cws_hosts_usage,omitempty"` // The Data Jobs Monitoring usage by tag(s). DataJobsMonitoringUsage *float64 `json:"data_jobs_monitoring_usage,omitempty"` + // The Data Stream Monitoring usage by tag(s). + DataStreamMonitoringUsage *float64 `json:"data_stream_monitoring_usage,omitempty"` // The percentage of Database Monitoring host usage by tag(s). DbmHostsPercentage *float64 `json:"dbm_hosts_percentage,omitempty"` // The Database Monitoring host usage by tag(s). @@ -1514,6 +1516,34 @@ func (o *MonthlyUsageAttributionValues) SetDataJobsMonitoringUsage(v float64) { o.DataJobsMonitoringUsage = &v } +// GetDataStreamMonitoringUsage returns the DataStreamMonitoringUsage field value if set, zero value otherwise. +func (o *MonthlyUsageAttributionValues) GetDataStreamMonitoringUsage() float64 { + if o == nil || o.DataStreamMonitoringUsage == nil { + var ret float64 + return ret + } + return *o.DataStreamMonitoringUsage +} + +// GetDataStreamMonitoringUsageOk returns a tuple with the DataStreamMonitoringUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MonthlyUsageAttributionValues) GetDataStreamMonitoringUsageOk() (*float64, bool) { + if o == nil || o.DataStreamMonitoringUsage == nil { + return nil, false + } + return o.DataStreamMonitoringUsage, true +} + +// HasDataStreamMonitoringUsage returns a boolean if a field has been set. +func (o *MonthlyUsageAttributionValues) HasDataStreamMonitoringUsage() bool { + return o != nil && o.DataStreamMonitoringUsage != nil +} + +// SetDataStreamMonitoringUsage gets a reference to the given float64 and assigns it to the DataStreamMonitoringUsage field. +func (o *MonthlyUsageAttributionValues) SetDataStreamMonitoringUsage(v float64) { + o.DataStreamMonitoringUsage = &v +} + // GetDbmHostsPercentage returns the DbmHostsPercentage field value if set, zero value otherwise. func (o *MonthlyUsageAttributionValues) GetDbmHostsPercentage() float64 { if o == nil || o.DbmHostsPercentage == nil { @@ -4337,6 +4367,9 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) { if o.DataJobsMonitoringUsage != nil { toSerialize["data_jobs_monitoring_usage"] = o.DataJobsMonitoringUsage } + if o.DataStreamMonitoringUsage != nil { + toSerialize["data_stream_monitoring_usage"] = o.DataStreamMonitoringUsage + } if o.DbmHostsPercentage != nil { toSerialize["dbm_hosts_percentage"] = o.DbmHostsPercentage } @@ -4678,6 +4711,7 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) CwsHostsPercentage *float64 `json:"cws_hosts_percentage,omitempty"` CwsHostsUsage *float64 `json:"cws_hosts_usage,omitempty"` DataJobsMonitoringUsage *float64 `json:"data_jobs_monitoring_usage,omitempty"` + DataStreamMonitoringUsage *float64 `json:"data_stream_monitoring_usage,omitempty"` DbmHostsPercentage *float64 `json:"dbm_hosts_percentage,omitempty"` DbmHostsUsage *float64 `json:"dbm_hosts_usage,omitempty"` DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"` @@ -4780,7 +4814,7 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) } additionalProperties := make(map[string]interface{}) if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil { - datadog.DeleteKeys(additionalProperties, &[]string{"api_percentage", "api_usage", "apm_fargate_percentage", "apm_fargate_usage", "apm_host_percentage", "apm_host_usage", "apm_usm_percentage", "apm_usm_usage", "appsec_fargate_percentage", "appsec_fargate_usage", "appsec_percentage", "appsec_usage", "asm_serverless_traced_invocations_percentage", "asm_serverless_traced_invocations_usage", "browser_percentage", "browser_usage", "ci_pipeline_indexed_spans_percentage", "ci_pipeline_indexed_spans_usage", "ci_test_indexed_spans_percentage", "ci_test_indexed_spans_usage", "ci_visibility_itr_percentage", "ci_visibility_itr_usage", "cloud_siem_percentage", "cloud_siem_usage", "container_excl_agent_percentage", "container_excl_agent_usage", "container_percentage", "container_usage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_event_percentage", "custom_event_usage", "custom_ingested_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_timeseries_percentage", "custom_timeseries_usage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "data_jobs_monitoring_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "error_tracking_percentage", "error_tracking_usage", "estimated_indexed_logs_percentage", "estimated_indexed_logs_usage", "estimated_indexed_spans_percentage", "estimated_indexed_spans_usage", "estimated_ingested_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_spans_percentage", "estimated_ingested_spans_usage", "estimated_rum_sessions_percentage", "estimated_rum_sessions_usage", "fargate_percentage", "fargate_usage", "functions_percentage", "functions_usage", "incident_management_monthly_active_users_percentage", "incident_management_monthly_active_users_usage", "indexed_spans_percentage", "indexed_spans_usage", "infra_host_percentage", "infra_host_usage", "ingested_logs_bytes_percentage", "ingested_logs_bytes_usage", "ingested_spans_bytes_percentage", "ingested_spans_bytes_usage", "invocations_percentage", "invocations_usage", "lambda_traced_invocations_percentage", "lambda_traced_invocations_usage", "logs_indexed_15day_percentage", "logs_indexed_15day_usage", "logs_indexed_180day_percentage", "logs_indexed_180day_usage", "logs_indexed_1day_percentage", "logs_indexed_1day_usage", "logs_indexed_30day_percentage", "logs_indexed_30day_usage", "logs_indexed_360day_percentage", "logs_indexed_360day_usage", "logs_indexed_3day_percentage", "logs_indexed_3day_usage", "logs_indexed_45day_percentage", "logs_indexed_45day_usage", "logs_indexed_60day_percentage", "logs_indexed_60day_usage", "logs_indexed_7day_percentage", "logs_indexed_7day_usage", "logs_indexed_90day_percentage", "logs_indexed_90day_usage", "logs_indexed_custom_retention_percentage", "logs_indexed_custom_retention_usage", "mobile_app_testing_percentage", "mobile_app_testing_usage", "ndm_netflow_percentage", "ndm_netflow_usage", "npm_host_percentage", "npm_host_usage", "obs_pipeline_bytes_percentage", "obs_pipeline_bytes_usage", "obs_pipelines_vcpu_percentage", "obs_pipelines_vcpu_usage", "online_archive_percentage", "online_archive_usage", "profiled_container_percentage", "profiled_container_usage", "profiled_fargate_percentage", "profiled_fargate_usage", "profiled_host_percentage", "profiled_host_usage", "rum_browser_mobile_sessions_percentage", "rum_browser_mobile_sessions_usage", "rum_replay_sessions_percentage", "rum_replay_sessions_usage", "sca_fargate_percentage", "sca_fargate_usage", "sds_scanned_bytes_percentage", "sds_scanned_bytes_usage", "serverless_apps_percentage", "serverless_apps_usage", "siem_analyzed_logs_add_on_percentage", "siem_analyzed_logs_add_on_usage", "siem_ingested_bytes_percentage", "siem_ingested_bytes_usage", "snmp_percentage", "snmp_usage", "universal_service_monitoring_percentage", "universal_service_monitoring_usage", "vuln_management_hosts_percentage", "vuln_management_hosts_usage", "workflow_executions_percentage", "workflow_executions_usage"}) + datadog.DeleteKeys(additionalProperties, &[]string{"api_percentage", "api_usage", "apm_fargate_percentage", "apm_fargate_usage", "apm_host_percentage", "apm_host_usage", "apm_usm_percentage", "apm_usm_usage", "appsec_fargate_percentage", "appsec_fargate_usage", "appsec_percentage", "appsec_usage", "asm_serverless_traced_invocations_percentage", "asm_serverless_traced_invocations_usage", "browser_percentage", "browser_usage", "ci_pipeline_indexed_spans_percentage", "ci_pipeline_indexed_spans_usage", "ci_test_indexed_spans_percentage", "ci_test_indexed_spans_usage", "ci_visibility_itr_percentage", "ci_visibility_itr_usage", "cloud_siem_percentage", "cloud_siem_usage", "container_excl_agent_percentage", "container_excl_agent_usage", "container_percentage", "container_usage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_event_percentage", "custom_event_usage", "custom_ingested_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_timeseries_percentage", "custom_timeseries_usage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "data_jobs_monitoring_usage", "data_stream_monitoring_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "error_tracking_percentage", "error_tracking_usage", "estimated_indexed_logs_percentage", "estimated_indexed_logs_usage", "estimated_indexed_spans_percentage", "estimated_indexed_spans_usage", "estimated_ingested_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_spans_percentage", "estimated_ingested_spans_usage", "estimated_rum_sessions_percentage", "estimated_rum_sessions_usage", "fargate_percentage", "fargate_usage", "functions_percentage", "functions_usage", "incident_management_monthly_active_users_percentage", "incident_management_monthly_active_users_usage", "indexed_spans_percentage", "indexed_spans_usage", "infra_host_percentage", "infra_host_usage", "ingested_logs_bytes_percentage", "ingested_logs_bytes_usage", "ingested_spans_bytes_percentage", "ingested_spans_bytes_usage", "invocations_percentage", "invocations_usage", "lambda_traced_invocations_percentage", "lambda_traced_invocations_usage", "logs_indexed_15day_percentage", "logs_indexed_15day_usage", "logs_indexed_180day_percentage", "logs_indexed_180day_usage", "logs_indexed_1day_percentage", "logs_indexed_1day_usage", "logs_indexed_30day_percentage", "logs_indexed_30day_usage", "logs_indexed_360day_percentage", "logs_indexed_360day_usage", "logs_indexed_3day_percentage", "logs_indexed_3day_usage", "logs_indexed_45day_percentage", "logs_indexed_45day_usage", "logs_indexed_60day_percentage", "logs_indexed_60day_usage", "logs_indexed_7day_percentage", "logs_indexed_7day_usage", "logs_indexed_90day_percentage", "logs_indexed_90day_usage", "logs_indexed_custom_retention_percentage", "logs_indexed_custom_retention_usage", "mobile_app_testing_percentage", "mobile_app_testing_usage", "ndm_netflow_percentage", "ndm_netflow_usage", "npm_host_percentage", "npm_host_usage", "obs_pipeline_bytes_percentage", "obs_pipeline_bytes_usage", "obs_pipelines_vcpu_percentage", "obs_pipelines_vcpu_usage", "online_archive_percentage", "online_archive_usage", "profiled_container_percentage", "profiled_container_usage", "profiled_fargate_percentage", "profiled_fargate_usage", "profiled_host_percentage", "profiled_host_usage", "rum_browser_mobile_sessions_percentage", "rum_browser_mobile_sessions_usage", "rum_replay_sessions_percentage", "rum_replay_sessions_usage", "sca_fargate_percentage", "sca_fargate_usage", "sds_scanned_bytes_percentage", "sds_scanned_bytes_usage", "serverless_apps_percentage", "serverless_apps_usage", "siem_analyzed_logs_add_on_percentage", "siem_analyzed_logs_add_on_usage", "siem_ingested_bytes_percentage", "siem_ingested_bytes_usage", "snmp_percentage", "snmp_usage", "universal_service_monitoring_percentage", "universal_service_monitoring_usage", "vuln_management_hosts_percentage", "vuln_management_hosts_usage", "workflow_executions_percentage", "workflow_executions_usage"}) } else { return err } @@ -4827,6 +4861,7 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error) o.CwsHostsPercentage = all.CwsHostsPercentage o.CwsHostsUsage = all.CwsHostsUsage o.DataJobsMonitoringUsage = all.DataJobsMonitoringUsage + o.DataStreamMonitoringUsage = all.DataStreamMonitoringUsage o.DbmHostsPercentage = all.DbmHostsPercentage o.DbmHostsUsage = all.DbmHostsUsage o.DbmQueriesPercentage = all.DbmQueriesPercentage