Skip to content

Commit

Permalink
Add usage type breakdown for error tracking billing dimension (#2768)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Nov 7, 2024
1 parent 9992dcc commit 6f77930
Show file tree
Hide file tree
Showing 5 changed files with 247 additions and 7 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.6",
"regenerated": "2024-11-07 20:43:56.127925",
"spec_repo_commit": "efa118f1"
"regenerated": "2024-11-07 21:30:06.583590",
"spec_repo_commit": "66d9d069"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-07 20:43:56.147264",
"spec_repo_commit": "efa118f1"
"regenerated": "2024-11-07 21:30:06.602727",
"spec_repo_commit": "66d9d069"
}
}
}
30 changes: 30 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19932,11 +19932,21 @@ components:
over all hours in the current date for all organizations.
format: int64
type: integer
error_tracking_error_events_sum:
description: Shows the sum of all Error Tracking error events over all hours
in the current date for the given org.
format: int64
type: integer
error_tracking_events_sum:
description: Shows the sum of all Error Tracking events over all hours in
the current date for the given org.
format: int64
type: integer
error_tracking_rum_error_events_sum:
description: Shows the sum of all Error Tracking RUM error events over all
hours in the current date for the given org.
format: int64
type: integer
fargate_tasks_count_avg:
description: Shows the high-watermark of all Fargate tasks over all hours
in the current date for all organizations.
Expand Down Expand Up @@ -20688,11 +20698,21 @@ components:
queries over all hours in the current month for the given org.
format: int64
type: integer
error_tracking_error_events_sum:
description: Shows the sum of all Error Tracking error events over all hours
in the current date for the given org.
format: int64
type: integer
error_tracking_events_sum:
description: Shows the sum of all Error Tracking events over all hours in
the current date for the given org.
format: int64
type: integer
error_tracking_rum_error_events_sum:
description: Shows the sum of all Error Tracking RUM error events over all
hours in the current date for the given org.
format: int64
type: integer
fargate_tasks_count_avg:
description: The average task count for Fargate.
format: int64
Expand Down Expand Up @@ -21451,11 +21471,21 @@ components:
description: Shows the last date of usage in the current month for all organizations.
format: date-time
type: string
error_tracking_error_events_agg_sum:
description: Shows the sum of all Error Tracking error events over all hours
in the current month for all organizations.
format: int64
type: integer
error_tracking_events_agg_sum:
description: Shows the sum of all Error Tracking events over all hours in
the current months for all organizations.
format: int64
type: integer
error_tracking_rum_error_events_agg_sum:
description: Shows the sum of all Error Tracking RUM error events over all
hours in the current month for all organizations.
format: int64
type: integer
fargate_tasks_count_avg_sum:
description: Shows the average of all Fargate tasks over all hours in the
current month for all organizations.
Expand Down
72 changes: 71 additions & 1 deletion api/datadogV1/model_usage_summary_date.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ type UsageSummaryDate struct {
DbmHostTop99p *int64 `json:"dbm_host_top99p,omitempty"`
// Shows the average of all normalized Database Monitoring queries over all hours in the current date for all organizations.
DbmQueriesCountAvg *int64 `json:"dbm_queries_count_avg,omitempty"`
// Shows the sum of all Error Tracking error events over all hours in the current date for the given org.
ErrorTrackingErrorEventsSum *int64 `json:"error_tracking_error_events_sum,omitempty"`
// Shows the sum of all Error Tracking events over all hours in the current date for the given org.
ErrorTrackingEventsSum *int64 `json:"error_tracking_events_sum,omitempty"`
// Shows the sum of all Error Tracking RUM error events over all hours in the current date for the given org.
ErrorTrackingRumErrorEventsSum *int64 `json:"error_tracking_rum_error_events_sum,omitempty"`
// Shows the high-watermark of all Fargate tasks over all hours in the current date for all organizations.
FargateTasksCountAvg *int64 `json:"fargate_tasks_count_avg,omitempty"`
// Shows the average of all Fargate tasks over all hours in the current date for all organizations.
Expand Down Expand Up @@ -1927,6 +1931,34 @@ func (o *UsageSummaryDate) SetDbmQueriesCountAvg(v int64) {
o.DbmQueriesCountAvg = &v
}

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

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

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

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

// GetErrorTrackingEventsSum returns the ErrorTrackingEventsSum field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetErrorTrackingEventsSum() int64 {
if o == nil || o.ErrorTrackingEventsSum == nil {
Expand Down Expand Up @@ -1955,6 +1987,34 @@ func (o *UsageSummaryDate) SetErrorTrackingEventsSum(v int64) {
o.ErrorTrackingEventsSum = &v
}

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

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

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

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

// GetFargateTasksCountAvg returns the FargateTasksCountAvg field value if set, zero value otherwise.
func (o *UsageSummaryDate) GetFargateTasksCountAvg() int64 {
if o == nil || o.FargateTasksCountAvg == nil {
Expand Down Expand Up @@ -4381,9 +4441,15 @@ func (o UsageSummaryDate) MarshalJSON() ([]byte, error) {
if o.DbmQueriesCountAvg != nil {
toSerialize["dbm_queries_count_avg"] = o.DbmQueriesCountAvg
}
if o.ErrorTrackingErrorEventsSum != nil {
toSerialize["error_tracking_error_events_sum"] = o.ErrorTrackingErrorEventsSum
}
if o.ErrorTrackingEventsSum != nil {
toSerialize["error_tracking_events_sum"] = o.ErrorTrackingEventsSum
}
if o.ErrorTrackingRumErrorEventsSum != nil {
toSerialize["error_tracking_rum_error_events_sum"] = o.ErrorTrackingRumErrorEventsSum
}
if o.FargateTasksCountAvg != nil {
toSerialize["fargate_tasks_count_avg"] = o.FargateTasksCountAvg
}
Expand Down Expand Up @@ -4688,7 +4754,9 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
Date *time.Time `json:"date,omitempty"`
DbmHostTop99p *int64 `json:"dbm_host_top99p,omitempty"`
DbmQueriesCountAvg *int64 `json:"dbm_queries_count_avg,omitempty"`
ErrorTrackingErrorEventsSum *int64 `json:"error_tracking_error_events_sum,omitempty"`
ErrorTrackingEventsSum *int64 `json:"error_tracking_events_sum,omitempty"`
ErrorTrackingRumErrorEventsSum *int64 `json:"error_tracking_rum_error_events_sum,omitempty"`
FargateTasksCountAvg *int64 `json:"fargate_tasks_count_avg,omitempty"`
FargateTasksCountHwm *int64 `json:"fargate_tasks_count_hwm,omitempty"`
FlexLogsComputeLargeAvg *int64 `json:"flex_logs_compute_large_avg,omitempty"`
Expand Down Expand Up @@ -4774,7 +4842,7 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"agent_host_top99p", "apm_azure_app_service_host_top99p", "apm_devsecops_host_top99p", "apm_fargate_count_avg", "apm_host_top99p", "appsec_fargate_count_avg", "asm_serverless_sum", "audit_logs_lines_indexed_sum", "audit_trail_enabled_hwm", "avg_profiled_fargate_tasks", "aws_host_top99p", "aws_lambda_func_count", "aws_lambda_invocations_sum", "azure_app_service_top99p", "billable_ingested_bytes_sum", "browser_rum_lite_session_count_sum", "browser_rum_replay_session_count_sum", "browser_rum_units_sum", "ci_pipeline_indexed_spans_sum", "ci_test_indexed_spans_sum", "ci_visibility_itr_committers_hwm", "ci_visibility_pipeline_committers_hwm", "ci_visibility_test_committers_hwm", "cloud_cost_management_aws_host_count_avg", "cloud_cost_management_azure_host_count_avg", "cloud_cost_management_gcp_host_count_avg", "cloud_cost_management_host_count_avg", "cloud_siem_events_sum", "code_analysis_sa_committers_hwm", "code_analysis_sca_committers_hwm", "container_avg", "container_excl_agent_avg", "container_hwm", "csm_container_enterprise_compliance_count_sum", "csm_container_enterprise_cws_count_sum", "csm_container_enterprise_total_count_sum", "csm_host_enterprise_aas_host_count_top99p", "csm_host_enterprise_aws_host_count_top99p", "csm_host_enterprise_azure_host_count_top99p", "csm_host_enterprise_compliance_host_count_top99p", "csm_host_enterprise_cws_host_count_top99p", "csm_host_enterprise_gcp_host_count_top99p", "csm_host_enterprise_total_host_count_top99p", "cspm_aas_host_top99p", "cspm_aws_host_top99p", "cspm_azure_host_top99p", "cspm_container_avg", "cspm_container_hwm", "cspm_gcp_host_top99p", "cspm_host_top99p", "custom_ts_avg", "cws_container_count_avg", "cws_host_top99p", "data_jobs_monitoring_host_hr_sum", "date", "dbm_host_top99p", "dbm_queries_count_avg", "error_tracking_events_sum", "fargate_tasks_count_avg", "fargate_tasks_count_hwm", "flex_logs_compute_large_avg", "flex_logs_compute_medium_avg", "flex_logs_compute_small_avg", "flex_logs_compute_xsmall_avg", "flex_logs_starter_avg", "flex_logs_starter_storage_index_avg", "flex_logs_starter_storage_retention_adjustment_avg", "flex_stored_logs_avg", "forwarding_events_bytes_sum", "gcp_host_top99p", "heroku_host_top99p", "incident_management_monthly_active_users_hwm", "indexed_events_count_sum", "infra_host_top99p", "ingested_events_bytes_sum", "iot_device_sum", "iot_device_top99p", "mobile_rum_lite_session_count_sum", "mobile_rum_session_count_android_sum", "mobile_rum_session_count_flutter_sum", "mobile_rum_session_count_ios_sum", "mobile_rum_session_count_reactnative_sum", "mobile_rum_session_count_roku_sum", "mobile_rum_session_count_sum", "mobile_rum_units_sum", "ndm_netflow_events_sum", "netflow_indexed_events_count_sum", "npm_host_top99p", "observability_pipelines_bytes_processed_sum", "oci_host_sum", "oci_host_top99p", "online_archive_events_count_sum", "opentelemetry_apm_host_top99p", "opentelemetry_host_top99p", "orgs", "profiling_aas_count_top99p", "profiling_host_top99p", "rum_browser_and_mobile_session_count", "rum_browser_legacy_session_count_sum", "rum_browser_lite_session_count_sum", "rum_browser_replay_session_count_sum", "rum_lite_session_count_sum", "rum_mobile_legacy_session_count_android_sum", "rum_mobile_legacy_session_count_flutter_sum", "rum_mobile_legacy_session_count_ios_sum", "rum_mobile_legacy_session_count_reactnative_sum", "rum_mobile_legacy_session_count_roku_sum", "rum_mobile_lite_session_count_android_sum", "rum_mobile_lite_session_count_flutter_sum", "rum_mobile_lite_session_count_ios_sum", "rum_mobile_lite_session_count_reactnative_sum", "rum_mobile_lite_session_count_roku_sum", "rum_replay_session_count_sum", "rum_session_count_sum", "rum_total_session_count_sum", "rum_units_sum", "sca_fargate_count_avg", "sca_fargate_count_hwm", "sds_apm_scanned_bytes_sum", "sds_events_scanned_bytes_sum", "sds_logs_scanned_bytes_sum", "sds_rum_scanned_bytes_sum", "sds_total_scanned_bytes_sum", "serverless_apps_azure_count_avg", "serverless_apps_google_count_avg", "serverless_apps_total_count_avg", "siem_analyzed_logs_add_on_count_sum", "synthetics_browser_check_calls_count_sum", "synthetics_check_calls_count_sum", "synthetics_mobile_test_runs_sum", "synthetics_parallel_testing_max_slots_hwm", "trace_search_indexed_events_count_sum", "twol_ingested_events_bytes_sum", "universal_service_monitoring_host_top99p", "vsphere_host_top99p", "vuln_management_host_count_top99p", "workflow_executions_usage_sum"})
datadog.DeleteKeys(additionalProperties, &[]string{"agent_host_top99p", "apm_azure_app_service_host_top99p", "apm_devsecops_host_top99p", "apm_fargate_count_avg", "apm_host_top99p", "appsec_fargate_count_avg", "asm_serverless_sum", "audit_logs_lines_indexed_sum", "audit_trail_enabled_hwm", "avg_profiled_fargate_tasks", "aws_host_top99p", "aws_lambda_func_count", "aws_lambda_invocations_sum", "azure_app_service_top99p", "billable_ingested_bytes_sum", "browser_rum_lite_session_count_sum", "browser_rum_replay_session_count_sum", "browser_rum_units_sum", "ci_pipeline_indexed_spans_sum", "ci_test_indexed_spans_sum", "ci_visibility_itr_committers_hwm", "ci_visibility_pipeline_committers_hwm", "ci_visibility_test_committers_hwm", "cloud_cost_management_aws_host_count_avg", "cloud_cost_management_azure_host_count_avg", "cloud_cost_management_gcp_host_count_avg", "cloud_cost_management_host_count_avg", "cloud_siem_events_sum", "code_analysis_sa_committers_hwm", "code_analysis_sca_committers_hwm", "container_avg", "container_excl_agent_avg", "container_hwm", "csm_container_enterprise_compliance_count_sum", "csm_container_enterprise_cws_count_sum", "csm_container_enterprise_total_count_sum", "csm_host_enterprise_aas_host_count_top99p", "csm_host_enterprise_aws_host_count_top99p", "csm_host_enterprise_azure_host_count_top99p", "csm_host_enterprise_compliance_host_count_top99p", "csm_host_enterprise_cws_host_count_top99p", "csm_host_enterprise_gcp_host_count_top99p", "csm_host_enterprise_total_host_count_top99p", "cspm_aas_host_top99p", "cspm_aws_host_top99p", "cspm_azure_host_top99p", "cspm_container_avg", "cspm_container_hwm", "cspm_gcp_host_top99p", "cspm_host_top99p", "custom_ts_avg", "cws_container_count_avg", "cws_host_top99p", "data_jobs_monitoring_host_hr_sum", "date", "dbm_host_top99p", "dbm_queries_count_avg", "error_tracking_error_events_sum", "error_tracking_events_sum", "error_tracking_rum_error_events_sum", "fargate_tasks_count_avg", "fargate_tasks_count_hwm", "flex_logs_compute_large_avg", "flex_logs_compute_medium_avg", "flex_logs_compute_small_avg", "flex_logs_compute_xsmall_avg", "flex_logs_starter_avg", "flex_logs_starter_storage_index_avg", "flex_logs_starter_storage_retention_adjustment_avg", "flex_stored_logs_avg", "forwarding_events_bytes_sum", "gcp_host_top99p", "heroku_host_top99p", "incident_management_monthly_active_users_hwm", "indexed_events_count_sum", "infra_host_top99p", "ingested_events_bytes_sum", "iot_device_sum", "iot_device_top99p", "mobile_rum_lite_session_count_sum", "mobile_rum_session_count_android_sum", "mobile_rum_session_count_flutter_sum", "mobile_rum_session_count_ios_sum", "mobile_rum_session_count_reactnative_sum", "mobile_rum_session_count_roku_sum", "mobile_rum_session_count_sum", "mobile_rum_units_sum", "ndm_netflow_events_sum", "netflow_indexed_events_count_sum", "npm_host_top99p", "observability_pipelines_bytes_processed_sum", "oci_host_sum", "oci_host_top99p", "online_archive_events_count_sum", "opentelemetry_apm_host_top99p", "opentelemetry_host_top99p", "orgs", "profiling_aas_count_top99p", "profiling_host_top99p", "rum_browser_and_mobile_session_count", "rum_browser_legacy_session_count_sum", "rum_browser_lite_session_count_sum", "rum_browser_replay_session_count_sum", "rum_lite_session_count_sum", "rum_mobile_legacy_session_count_android_sum", "rum_mobile_legacy_session_count_flutter_sum", "rum_mobile_legacy_session_count_ios_sum", "rum_mobile_legacy_session_count_reactnative_sum", "rum_mobile_legacy_session_count_roku_sum", "rum_mobile_lite_session_count_android_sum", "rum_mobile_lite_session_count_flutter_sum", "rum_mobile_lite_session_count_ios_sum", "rum_mobile_lite_session_count_reactnative_sum", "rum_mobile_lite_session_count_roku_sum", "rum_replay_session_count_sum", "rum_session_count_sum", "rum_total_session_count_sum", "rum_units_sum", "sca_fargate_count_avg", "sca_fargate_count_hwm", "sds_apm_scanned_bytes_sum", "sds_events_scanned_bytes_sum", "sds_logs_scanned_bytes_sum", "sds_rum_scanned_bytes_sum", "sds_total_scanned_bytes_sum", "serverless_apps_azure_count_avg", "serverless_apps_google_count_avg", "serverless_apps_total_count_avg", "siem_analyzed_logs_add_on_count_sum", "synthetics_browser_check_calls_count_sum", "synthetics_check_calls_count_sum", "synthetics_mobile_test_runs_sum", "synthetics_parallel_testing_max_slots_hwm", "trace_search_indexed_events_count_sum", "twol_ingested_events_bytes_sum", "universal_service_monitoring_host_top99p", "vsphere_host_top99p", "vuln_management_host_count_top99p", "workflow_executions_usage_sum"})
} else {
return err
}
Expand Down Expand Up @@ -4835,7 +4903,9 @@ func (o *UsageSummaryDate) UnmarshalJSON(bytes []byte) (err error) {
o.Date = all.Date
o.DbmHostTop99p = all.DbmHostTop99p
o.DbmQueriesCountAvg = all.DbmQueriesCountAvg
o.ErrorTrackingErrorEventsSum = all.ErrorTrackingErrorEventsSum
o.ErrorTrackingEventsSum = all.ErrorTrackingEventsSum
o.ErrorTrackingRumErrorEventsSum = all.ErrorTrackingRumErrorEventsSum
o.FargateTasksCountAvg = all.FargateTasksCountAvg
o.FargateTasksCountHwm = all.FargateTasksCountHwm
o.FlexLogsComputeLargeAvg = all.FlexLogsComputeLargeAvg
Expand Down
Loading

0 comments on commit 6f77930

Please sign in to comment.