Skip to content

Commit e4e3af0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add new keys for CWS Fargate Task in summary usage and usage attribution endpoints (#2094)
* Regenerate client from commit ae3b5463 of spec repo * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d862523 commit e4e3af0

File tree

11 files changed

+103
-20
lines changed

11 files changed

+103
-20
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-11-08 14:25:34.119004",
8-
"spec_repo_commit": "d907813e"
7+
"regenerated": "2024-11-08 19:36:37.918834",
8+
"spec_repo_commit": "ae3b5463"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-08 14:25:34.137183",
13-
"spec_repo_commit": "d907813e"
12+
"regenerated": "2024-11-08 19:36:37.937524",
13+
"spec_repo_commit": "ae3b5463"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4187,6 +4187,7 @@ components:
41874187
- custom_ingested_timeseries_usage
41884188
- custom_timeseries_usage
41894189
- cws_containers_usage
4190+
- cws_fargate_task_usage
41904191
- cws_hosts_usage
41914192
- data_jobs_monitoring_usage
41924193
- data_stream_monitoring_usage
@@ -4259,6 +4260,7 @@ components:
42594260
- CUSTOM_INGESTED_TIMESERIES_USAGE
42604261
- CUSTOM_TIMESERIES_USAGE
42614262
- CWS_CONTAINERS_USAGE
4263+
- CWS_FARGATE_TASK_USAGE
42624264
- CWS_HOSTS_USAGE
42634265
- DATA_JOBS_MONITORING_USAGE
42644266
- DATA_STREAM_MONITORING_USAGE
@@ -7939,6 +7941,8 @@ components:
79397941
- custom_ingested_timeseries_percentage
79407942
- cws_containers_percentage
79417943
- cws_containers_usage
7944+
- cws_fargate_task_percentage
7945+
- cws_fargate_task_usage
79427946
- cws_hosts_percentage
79437947
- cws_hosts_usage
79447948
- data_jobs_monitoring_usage
@@ -8078,6 +8082,8 @@ components:
80788082
- CUSTOM_INGESTED_TIMESERIES_PERCENTAGE
80798083
- CWS_CONTAINERS_PERCENTAGE
80808084
- CWS_CONTAINERS_USAGE
8085+
- CWS_FARGATE_TASK_PERCENTAGE
8086+
- CWS_FARGATE_TASK_USAGE
80818087
- CWS_HOSTS_PERCENTAGE
80828088
- CWS_HOSTS_USAGE
80838089
- DATA_JOBS_MONITORING_USAGE
@@ -8357,6 +8363,15 @@ components:
83578363
description: The Cloud Workload Security container usage by tag(s).
83588364
format: double
83598365
type: number
8366+
cws_fargate_task_percentage:
8367+
description: The percentage of Cloud Workload Security Fargate task usage
8368+
by tag(s).
8369+
format: double
8370+
type: number
8371+
cws_fargate_task_usage:
8372+
description: The Cloud Workload Security Fargate task usage by tag(s).
8373+
format: double
8374+
type: number
83608375
cws_hosts_percentage:
83618376
description: The percentage of Cloud Workload Security host usage by tag(s).
83628377
format: double
@@ -19909,6 +19924,11 @@ components:
1990919924
over all hours in the current date for all organizations.
1991019925
format: int64
1991119926
type: integer
19927+
cws_fargate_task_avg:
19928+
description: Shows the average of all distinct Cloud Workload Security Fargate
19929+
tasks over all hours in the current date for all organizations.
19930+
format: int64
19931+
type: integer
1991219932
cws_host_top99p:
1991319933
description: Shows the 99th percentile of all Cloud Workload Security hosts
1991419934
over all hours in the current date for all organizations.
@@ -20679,6 +20699,11 @@ components:
2067920699
over all hours in the current date for the given org.
2068020700
format: int64
2068120701
type: integer
20702+
cws_fargate_task_avg:
20703+
description: Shows the average of all distinct Cloud Workload Security Fargate
20704+
tasks over all hours in the current date for the given org.
20705+
format: int64
20706+
type: integer
2068220707
cws_host_top99p:
2068320708
description: Shows the 99th percentile of all Cloud Workload Security hosts
2068420709
over all hours in the current date for the given org.
@@ -21443,11 +21468,16 @@ components:
2144321468
hours in the current month for all organizations.
2144421469
format: int64
2144521470
type: integer
21446-
cws_containers_avg_sum:
21471+
cws_container_avg_sum:
2144721472
description: Shows the average of all distinct Cloud Workload Security containers
2144821473
over all hours in the current month for all organizations.
2144921474
format: int64
2145021475
type: integer
21476+
cws_fargate_task_avg_sum:
21477+
description: Shows the average of all distinct Cloud Workload Security Fargate
21478+
tasks over all hours in the current month for all organizations.
21479+
format: int64
21480+
type: integer
2145121481
cws_host_top99p_sum:
2145221482
description: Shows the 99th percentile of all Cloud Workload Security hosts
2145321483
over all hours in the current month for all organizations.

examples/v2/security-monitoring/CancelHistoricalJob.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require "datadog_api_client"
44
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.cancel_historical_job".to_sym] = true
65
config.unstable_operations["v2.run_historical_job".to_sym] = true
6+
config.unstable_operations["v2.cancel_historical_job".to_sym] = true
77
end
88
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
99

examples/v2/security-monitoring/GetHistoricalJob.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require "datadog_api_client"
44
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_historical_job".to_sym] = true
65
config.unstable_operations["v2.run_historical_job".to_sym] = true
6+
config.unstable_operations["v2.get_historical_job".to_sym] = true
77
end
88
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
99

lib/datadog_api_client/v1/api/usage_metering_api.rb

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class HourlyUsageAttributionUsageType
4242
CUSTOM_INGESTED_TIMESERIES_USAGE = "custom_ingested_timeseries_usage".freeze
4343
CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze
4444
CWS_CONTAINERS_USAGE = "cws_containers_usage".freeze
45+
CWS_FARGATE_TASK_USAGE = "cws_fargate_task_usage".freeze
4546
CWS_HOSTS_USAGE = "cws_hosts_usage".freeze
4647
DATA_JOBS_MONITORING_USAGE = "data_jobs_monitoring_usage".freeze
4748
DATA_STREAM_MONITORING_USAGE = "data_stream_monitoring_usage".freeze

lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class MonthlyUsageAttributionSupportedMetrics
5555
CUSTOM_INGESTED_TIMESERIES_PERCENTAGE = "custom_ingested_timeseries_percentage".freeze
5656
CWS_CONTAINERS_PERCENTAGE = "cws_containers_percentage".freeze
5757
CWS_CONTAINERS_USAGE = "cws_containers_usage".freeze
58+
CWS_FARGATE_TASK_PERCENTAGE = "cws_fargate_task_percentage".freeze
59+
CWS_FARGATE_TASK_USAGE = "cws_fargate_task_usage".freeze
5860
CWS_HOSTS_PERCENTAGE = "cws_hosts_percentage".freeze
5961
CWS_HOSTS_USAGE = "cws_hosts_usage".freeze
6062
DATA_JOBS_MONITORING_USAGE = "data_jobs_monitoring_usage".freeze

lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ class MonthlyUsageAttributionValues
141141
# The Cloud Workload Security container usage by tag(s).
142142
attr_accessor :cws_containers_usage
143143

144+
# The percentage of Cloud Workload Security Fargate task usage by tag(s).
145+
attr_accessor :cws_fargate_task_percentage
146+
147+
# The Cloud Workload Security Fargate task usage by tag(s).
148+
attr_accessor :cws_fargate_task_usage
149+
144150
# The percentage of Cloud Workload Security host usage by tag(s).
145151
attr_accessor :cws_hosts_percentage
146152

@@ -469,6 +475,8 @@ def self.attribute_map
469475
:'custom_timeseries_usage' => :'custom_timeseries_usage',
470476
:'cws_containers_percentage' => :'cws_containers_percentage',
471477
:'cws_containers_usage' => :'cws_containers_usage',
478+
:'cws_fargate_task_percentage' => :'cws_fargate_task_percentage',
479+
:'cws_fargate_task_usage' => :'cws_fargate_task_usage',
472480
:'cws_hosts_percentage' => :'cws_hosts_percentage',
473481
:'cws_hosts_usage' => :'cws_hosts_usage',
474482
:'data_jobs_monitoring_usage' => :'data_jobs_monitoring_usage',
@@ -610,6 +618,8 @@ def self.openapi_types
610618
:'custom_timeseries_usage' => :'Float',
611619
:'cws_containers_percentage' => :'Float',
612620
:'cws_containers_usage' => :'Float',
621+
:'cws_fargate_task_percentage' => :'Float',
622+
:'cws_fargate_task_usage' => :'Float',
613623
:'cws_hosts_percentage' => :'Float',
614624
:'cws_hosts_usage' => :'Float',
615625
:'data_jobs_monitoring_usage' => :'Float',
@@ -885,6 +895,14 @@ def initialize(attributes = {})
885895
self.cws_containers_usage = attributes[:'cws_containers_usage']
886896
end
887897

898+
if attributes.key?(:'cws_fargate_task_percentage')
899+
self.cws_fargate_task_percentage = attributes[:'cws_fargate_task_percentage']
900+
end
901+
902+
if attributes.key?(:'cws_fargate_task_usage')
903+
self.cws_fargate_task_usage = attributes[:'cws_fargate_task_usage']
904+
end
905+
888906
if attributes.key?(:'cws_hosts_percentage')
889907
self.cws_hosts_percentage = attributes[:'cws_hosts_percentage']
890908
end
@@ -1328,6 +1346,8 @@ def ==(o)
13281346
custom_timeseries_usage == o.custom_timeseries_usage &&
13291347
cws_containers_percentage == o.cws_containers_percentage &&
13301348
cws_containers_usage == o.cws_containers_usage &&
1349+
cws_fargate_task_percentage == o.cws_fargate_task_percentage &&
1350+
cws_fargate_task_usage == o.cws_fargate_task_usage &&
13311351
cws_hosts_percentage == o.cws_hosts_percentage &&
13321352
cws_hosts_usage == o.cws_hosts_usage &&
13331353
data_jobs_monitoring_usage == o.data_jobs_monitoring_usage &&
@@ -1429,7 +1449,7 @@ def ==(o)
14291449
# @return [Integer] Hash code
14301450
# @!visibility private
14311451
def hash
1432-
[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_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_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].hash
1452+
[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_fargate_task_percentage, cws_fargate_task_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_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_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].hash
14331453
end
14341454
end
14351455
end

0 commit comments

Comments
 (0)