Skip to content

Commit

Permalink
Add UA documentation for new DJM usage_type (#2698)
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 Oct 1, 2024
1 parent 4cd97ae commit da051fa
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 5 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-09-30 19:44:25.864590",
"spec_repo_commit": "909e369c"
"regenerated": "2024-10-01 14:24:25.145296",
"spec_repo_commit": "d90ee2ef"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-30 19:44:25.879560",
"spec_repo_commit": "909e369c"
"regenerated": "2024-10-01 14:24:25.159865",
"spec_repo_commit": "d90ee2ef"
}
}
}
10 changes: 10 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4182,6 +4182,7 @@ components:
- custom_timeseries_usage
- cws_containers_usage
- cws_hosts_usage
- data_jobs_monitoring_usage
- dbm_hosts_usage
- dbm_queries_usage
- error_tracking_usage
Expand Down Expand Up @@ -4255,6 +4256,7 @@ components:
- CUSTOM_TIMESERIES_USAGE
- CWS_CONTAINERS_USAGE
- CWS_HOSTS_USAGE
- DATA_JOBS_MONITORING_USAGE
- DBM_HOSTS_USAGE
- DBM_QUERIES_USAGE
- ERROR_TRACKING_USAGE
Expand Down Expand Up @@ -7935,6 +7937,8 @@ components:
- cws_containers_usage
- cws_hosts_percentage
- cws_hosts_usage
- data_jobs_monitoring_usage
- data_jobs_monitoring_percentage
- dbm_hosts_percentage
- dbm_hosts_usage
- dbm_queries_percentage
Expand Down Expand Up @@ -8076,6 +8080,8 @@ components:
- CWS_CONTAINERS_USAGE
- CWS_HOSTS_PERCENTAGE
- CWS_HOSTS_USAGE
- DATA_JOBS_MONITORING_USAGE
- DATA_JOBS_MONITORING_PERCENTAGE
- DBM_HOSTS_PERCENTAGE
- DBM_HOSTS_USAGE
- DBM_QUERIES_PERCENTAGE
Expand Down Expand Up @@ -8363,6 +8369,10 @@ components:
description: The Cloud Workload Security host usage by tag(s).
format: double
type: number
data_jobs_monitoring_usage:
description: The Data Jobs 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
Expand Down
2 changes: 2 additions & 0 deletions api/datadogV1/model_hourly_usage_attribution_usage_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CUSTOM_TIMESERIES_USAGE HourlyUsageAttributionUsageType = "custom_timeseries_usage"
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_DBM_HOSTS_USAGE HourlyUsageAttributionUsageType = "dbm_hosts_usage"
HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_QUERIES_USAGE HourlyUsageAttributionUsageType = "dbm_queries_usage"
HOURLYUSAGEATTRIBUTIONUSAGETYPE_ERROR_TRACKING_USAGE HourlyUsageAttributionUsageType = "error_tracking_usage"
Expand Down Expand Up @@ -111,6 +112,7 @@ var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionU
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CUSTOM_TIMESERIES_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_CONTAINERS_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CWS_HOSTS_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_DATA_JOBS_MONITORING_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_HOSTS_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_DBM_QUERIES_USAGE,
HOURLYUSAGEATTRIBUTIONUSAGETYPE_ERROR_TRACKING_USAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const (
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_CWS_CONTAINERS_USAGE MonthlyUsageAttributionSupportedMetrics = "cws_containers_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_CWS_HOSTS_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "cws_hosts_percentage"
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_DBM_HOSTS_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "dbm_hosts_percentage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_USAGE MonthlyUsageAttributionSupportedMetrics = "dbm_hosts_usage"
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_PERCENTAGE MonthlyUsageAttributionSupportedMetrics = "dbm_queries_percentage"
Expand Down Expand Up @@ -193,6 +195,8 @@ var allowedMonthlyUsageAttributionSupportedMetricsEnumValues = []MonthlyUsageAtt
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_CWS_CONTAINERS_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_CWS_HOSTS_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_CWS_HOSTS_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_JOBS_MONITORING_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DATA_JOBS_MONITORING_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_PERCENTAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_HOSTS_USAGE,
MONTHLYUSAGEATTRIBUTIONSUPPORTEDMETRICS_DBM_QUERIES_PERCENTAGE,
Expand Down
37 changes: 36 additions & 1 deletion api/datadogV1/model_monthly_usage_attribution_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ type MonthlyUsageAttributionValues struct {
CwsHostsPercentage *float64 `json:"cws_hosts_percentage,omitempty"`
// The Cloud Workload Security host usage by tag(s).
CwsHostsUsage *float64 `json:"cws_hosts_usage,omitempty"`
// The Data Jobs Monitoring usage by tag(s).
DataJobsMonitoringUsage *float64 `json:"data_jobs_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).
Expand Down Expand Up @@ -1484,6 +1486,34 @@ func (o *MonthlyUsageAttributionValues) SetCwsHostsUsage(v float64) {
o.CwsHostsUsage = &v
}

// GetDataJobsMonitoringUsage returns the DataJobsMonitoringUsage field value if set, zero value otherwise.
func (o *MonthlyUsageAttributionValues) GetDataJobsMonitoringUsage() float64 {
if o == nil || o.DataJobsMonitoringUsage == nil {
var ret float64
return ret
}
return *o.DataJobsMonitoringUsage
}

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

// HasDataJobsMonitoringUsage returns a boolean if a field has been set.
func (o *MonthlyUsageAttributionValues) HasDataJobsMonitoringUsage() bool {
return o != nil && o.DataJobsMonitoringUsage != nil
}

// SetDataJobsMonitoringUsage gets a reference to the given float64 and assigns it to the DataJobsMonitoringUsage field.
func (o *MonthlyUsageAttributionValues) SetDataJobsMonitoringUsage(v float64) {
o.DataJobsMonitoringUsage = &v
}

// GetDbmHostsPercentage returns the DbmHostsPercentage field value if set, zero value otherwise.
func (o *MonthlyUsageAttributionValues) GetDbmHostsPercentage() float64 {
if o == nil || o.DbmHostsPercentage == nil {
Expand Down Expand Up @@ -4304,6 +4334,9 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) {
if o.CwsHostsUsage != nil {
toSerialize["cws_hosts_usage"] = o.CwsHostsUsage
}
if o.DataJobsMonitoringUsage != nil {
toSerialize["data_jobs_monitoring_usage"] = o.DataJobsMonitoringUsage
}
if o.DbmHostsPercentage != nil {
toSerialize["dbm_hosts_percentage"] = o.DbmHostsPercentage
}
Expand Down Expand Up @@ -4644,6 +4677,7 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
CwsContainersUsage *float64 `json:"cws_containers_usage,omitempty"`
CwsHostsPercentage *float64 `json:"cws_hosts_percentage,omitempty"`
CwsHostsUsage *float64 `json:"cws_hosts_usage,omitempty"`
DataJobsMonitoringUsage *float64 `json:"data_jobs_monitoring_usage,omitempty"`
DbmHostsPercentage *float64 `json:"dbm_hosts_percentage,omitempty"`
DbmHostsUsage *float64 `json:"dbm_hosts_usage,omitempty"`
DbmQueriesPercentage *float64 `json:"dbm_queries_percentage,omitempty"`
Expand Down Expand Up @@ -4746,7 +4780,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", "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", "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
}
Expand Down Expand Up @@ -4792,6 +4826,7 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
o.CwsContainersUsage = all.CwsContainersUsage
o.CwsHostsPercentage = all.CwsHostsPercentage
o.CwsHostsUsage = all.CwsHostsUsage
o.DataJobsMonitoringUsage = all.DataJobsMonitoringUsage
o.DbmHostsPercentage = all.DbmHostsPercentage
o.DbmHostsUsage = all.DbmHostsUsage
o.DbmQueriesPercentage = all.DbmQueriesPercentage
Expand Down

0 comments on commit da051fa

Please sign in to comment.