Skip to content

Commit aa53743

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add audit trail to usage metering API (#1370)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 347b36c commit aa53743

File tree

7 files changed

+48
-6
lines changed

7 files changed

+48
-6
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.4",
7-
"regenerated": "2023-03-13 10:16:15.993063",
8-
"spec_repo_commit": "5ad82066"
7+
"regenerated": "2023-03-13 16:14:01.584162",
8+
"spec_repo_commit": "13001c30"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-03-13 10:16:16.005178",
13-
"spec_repo_commit": "5ad82066"
12+
"regenerated": "2023-03-13 16:14:01.600810",
13+
"spec_repo_commit": "13001c30"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16714,6 +16714,11 @@ components:
1671416714
the current date for all organizations.
1671516715
format: int64
1671616716
type: integer
16717+
audit_trail_enabled_hwm:
16718+
description: Shows the number of organizations that had Audit Trail enabled
16719+
in the current date.
16720+
format: int64
16721+
type: integer
1671716722
avg_profiled_fargate_tasks:
1671816723
description: The average profiled task count for Fargate Profiling.
1671916724
format: int64
@@ -17100,6 +17105,11 @@ components:
1710017105
in the current date for the given org.
1710117106
format: int64
1710217107
type: integer
17108+
audit_trail_enabled_hwm:
17109+
description: Shows whether Audit Trail is enabled for the current date for
17110+
the given org.
17111+
format: int64
17112+
type: integer
1710317113
avg_profiled_fargate_tasks:
1710417114
description: The average profiled task count for Fargate Profiling.
1710517115
format: int64
@@ -17489,6 +17499,11 @@ components:
1748917499
in the current months for all organizations.
1749017500
format: int64
1749117501
type: integer
17502+
audit_trail_enabled_hwm_sum:
17503+
description: Shows the total number of organizations that had Audit Trail
17504+
enabled over a specific number of months.
17505+
format: int64
17506+
type: integer
1749217507
avg_profiled_fargate_tasks_sum:
1749317508
description: Shows the average of all profiled Fargate tasks over all hours
1749417509
in the current months for all organizations.

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20790,7 +20790,9 @@ paths:
2079020790
- description: 'Comma separated list of product families to retrieve. Available
2079120791
families are `all`, `analyzed_logs`,
2079220792

20793-
`application_security`, `audit_logs`, `serverless`, `ci_app`, `cloud_cost_management`,
20793+
`application_security`, `audit_logs`, `audit_trail`, `serverless`, `ci_app`,
20794+
`cloud_cost_management`,
20795+
2079420796
`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,
2079520797

2079620798
`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`,

src/datadog_api_client/v1/model/usage_summary_date.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def openapi_types(_):
3030
"apm_host_top99p": (int,),
3131
"appsec_fargate_count_avg": (int,),
3232
"audit_logs_lines_indexed_sum": (int,),
33+
"audit_trail_enabled_hwm": (int,),
3334
"avg_profiled_fargate_tasks": (int,),
3435
"aws_host_top99p": (int,),
3536
"aws_lambda_func_count": (int,),
@@ -109,6 +110,7 @@ def openapi_types(_):
109110
"apm_host_top99p": "apm_host_top99p",
110111
"appsec_fargate_count_avg": "appsec_fargate_count_avg",
111112
"audit_logs_lines_indexed_sum": "audit_logs_lines_indexed_sum",
113+
"audit_trail_enabled_hwm": "audit_trail_enabled_hwm",
112114
"avg_profiled_fargate_tasks": "avg_profiled_fargate_tasks",
113115
"aws_host_top99p": "aws_host_top99p",
114116
"aws_lambda_func_count": "aws_lambda_func_count",
@@ -189,6 +191,7 @@ def __init__(
189191
apm_host_top99p: Union[int, UnsetType] = unset,
190192
appsec_fargate_count_avg: Union[int, UnsetType] = unset,
191193
audit_logs_lines_indexed_sum: Union[int, UnsetType] = unset,
194+
audit_trail_enabled_hwm: Union[int, UnsetType] = unset,
192195
avg_profiled_fargate_tasks: Union[int, UnsetType] = unset,
193196
aws_host_top99p: Union[int, UnsetType] = unset,
194197
aws_lambda_func_count: Union[int, UnsetType] = unset,
@@ -282,6 +285,9 @@ def __init__(
282285
:param audit_logs_lines_indexed_sum: Shows the sum of audit logs lines indexed over all hours in the current date for all organizations.
283286
:type audit_logs_lines_indexed_sum: int, optional
284287
288+
:param audit_trail_enabled_hwm: Shows the number of organizations that had Audit Trail enabled in the current date.
289+
:type audit_trail_enabled_hwm: int, optional
290+
285291
:param avg_profiled_fargate_tasks: The average profiled task count for Fargate Profiling.
286292
:type avg_profiled_fargate_tasks: int, optional
287293
@@ -504,6 +510,8 @@ def __init__(
504510
kwargs["appsec_fargate_count_avg"] = appsec_fargate_count_avg
505511
if audit_logs_lines_indexed_sum is not unset:
506512
kwargs["audit_logs_lines_indexed_sum"] = audit_logs_lines_indexed_sum
513+
if audit_trail_enabled_hwm is not unset:
514+
kwargs["audit_trail_enabled_hwm"] = audit_trail_enabled_hwm
507515
if avg_profiled_fargate_tasks is not unset:
508516
kwargs["avg_profiled_fargate_tasks"] = avg_profiled_fargate_tasks
509517
if aws_host_top99p is not unset:

src/datadog_api_client/v1/model/usage_summary_date_org.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def openapi_types(_):
2323
"apm_host_top99p": (int,),
2424
"appsec_fargate_count_avg": (int,),
2525
"audit_logs_lines_indexed_sum": (int,),
26+
"audit_trail_enabled_hwm": (int,),
2627
"avg_profiled_fargate_tasks": (int,),
2728
"aws_host_top99p": (int,),
2829
"aws_lambda_func_count": (int,),
@@ -104,6 +105,7 @@ def openapi_types(_):
104105
"apm_host_top99p": "apm_host_top99p",
105106
"appsec_fargate_count_avg": "appsec_fargate_count_avg",
106107
"audit_logs_lines_indexed_sum": "audit_logs_lines_indexed_sum",
108+
"audit_trail_enabled_hwm": "audit_trail_enabled_hwm",
107109
"avg_profiled_fargate_tasks": "avg_profiled_fargate_tasks",
108110
"aws_host_top99p": "aws_host_top99p",
109111
"aws_lambda_func_count": "aws_lambda_func_count",
@@ -186,6 +188,7 @@ def __init__(
186188
apm_host_top99p: Union[int, UnsetType] = unset,
187189
appsec_fargate_count_avg: Union[int, UnsetType] = unset,
188190
audit_logs_lines_indexed_sum: Union[int, UnsetType] = unset,
191+
audit_trail_enabled_hwm: Union[int, UnsetType] = unset,
189192
avg_profiled_fargate_tasks: Union[int, UnsetType] = unset,
190193
aws_host_top99p: Union[int, UnsetType] = unset,
191194
aws_lambda_func_count: Union[int, UnsetType] = unset,
@@ -281,6 +284,9 @@ def __init__(
281284
:param audit_logs_lines_indexed_sum: Shows the sum of all audit logs lines indexed over all hours in the current date for the given org.
282285
:type audit_logs_lines_indexed_sum: int, optional
283286
287+
:param audit_trail_enabled_hwm: Shows whether Audit Trail is enabled for the current date for the given org.
288+
:type audit_trail_enabled_hwm: int, optional
289+
284290
:param avg_profiled_fargate_tasks: The average profiled task count for Fargate Profiling.
285291
:type avg_profiled_fargate_tasks: int, optional
286292
@@ -509,6 +515,8 @@ def __init__(
509515
kwargs["appsec_fargate_count_avg"] = appsec_fargate_count_avg
510516
if audit_logs_lines_indexed_sum is not unset:
511517
kwargs["audit_logs_lines_indexed_sum"] = audit_logs_lines_indexed_sum
518+
if audit_trail_enabled_hwm is not unset:
519+
kwargs["audit_trail_enabled_hwm"] = audit_trail_enabled_hwm
512520
if avg_profiled_fargate_tasks is not unset:
513521
kwargs["avg_profiled_fargate_tasks"] = avg_profiled_fargate_tasks
514522
if aws_host_top99p is not unset:

src/datadog_api_client/v1/model/usage_summary_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def openapi_types(_):
3232
"apm_host_top99p_sum": (int,),
3333
"appsec_fargate_count_avg_sum": (int,),
3434
"audit_logs_lines_indexed_agg_sum": (int,),
35+
"audit_trail_enabled_hwm_sum": (int,),
3536
"avg_profiled_fargate_tasks_sum": (int,),
3637
"aws_host_top99p_sum": (int,),
3738
"aws_lambda_func_count": (int,),
@@ -120,6 +121,7 @@ def openapi_types(_):
120121
"apm_host_top99p_sum": "apm_host_top99p_sum",
121122
"appsec_fargate_count_avg_sum": "appsec_fargate_count_avg_sum",
122123
"audit_logs_lines_indexed_agg_sum": "audit_logs_lines_indexed_agg_sum",
124+
"audit_trail_enabled_hwm_sum": "audit_trail_enabled_hwm_sum",
123125
"avg_profiled_fargate_tasks_sum": "avg_profiled_fargate_tasks_sum",
124126
"aws_host_top99p_sum": "aws_host_top99p_sum",
125127
"aws_lambda_func_count": "aws_lambda_func_count",
@@ -209,6 +211,7 @@ def __init__(
209211
apm_host_top99p_sum: Union[int, UnsetType] = unset,
210212
appsec_fargate_count_avg_sum: Union[int, UnsetType] = unset,
211213
audit_logs_lines_indexed_agg_sum: Union[int, UnsetType] = unset,
214+
audit_trail_enabled_hwm_sum: Union[int, UnsetType] = unset,
212215
avg_profiled_fargate_tasks_sum: Union[int, UnsetType] = unset,
213216
aws_host_top99p_sum: Union[int, UnsetType] = unset,
214217
aws_lambda_func_count: Union[int, UnsetType] = unset,
@@ -311,6 +314,9 @@ def __init__(
311314
:param audit_logs_lines_indexed_agg_sum: Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations.
312315
:type audit_logs_lines_indexed_agg_sum: int, optional
313316
317+
:param audit_trail_enabled_hwm_sum: Shows the total number of organizations that had Audit Trail enabled over a specific number of months.
318+
:type audit_trail_enabled_hwm_sum: int, optional
319+
314320
:param avg_profiled_fargate_tasks_sum: Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations.
315321
:type avg_profiled_fargate_tasks_sum: int, optional
316322
@@ -560,6 +566,8 @@ def __init__(
560566
kwargs["appsec_fargate_count_avg_sum"] = appsec_fargate_count_avg_sum
561567
if audit_logs_lines_indexed_agg_sum is not unset:
562568
kwargs["audit_logs_lines_indexed_agg_sum"] = audit_logs_lines_indexed_agg_sum
569+
if audit_trail_enabled_hwm_sum is not unset:
570+
kwargs["audit_trail_enabled_hwm_sum"] = audit_trail_enabled_hwm_sum
563571
if avg_profiled_fargate_tasks_sum is not unset:
564572
kwargs["avg_profiled_fargate_tasks_sum"] = avg_profiled_fargate_tasks_sum
565573
if aws_host_top99p_sum is not unset:

src/datadog_api_client/v2/api/usage_metering_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ def get_hourly_usage(
424424
:param filter_timestamp_start: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
425425
:type filter_timestamp_start: datetime
426426
:param filter_product_families: Comma separated list of product families to retrieve. Available families are ``all`` , ``analyzed_logs`` ,
427-
``application_security`` , ``audit_logs`` , ``serverless`` , ``ci_app`` , ``cloud_cost_management`` , ``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
427+
``application_security`` , ``audit_logs`` , ``audit_trail`` , ``serverless`` , ``ci_app`` , ``cloud_cost_management`` ,
428+
``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
428429
``infra_hosts`` , ``incident_management`` , ``indexed_logs`` , ``indexed_spans`` , ``ingested_spans`` , ``iot`` ,
429430
``lambda_traced_invocations`` , ``logs`` , ``network_flows`` , ``network_hosts`` , ``observability_pipelines`` ,
430431
``online_archive`` , ``profiling`` , ``rum`` , ``rum_browser_sessions`` , ``rum_mobile_sessions`` , ``sds`` , ``snmp`` ,

0 commit comments

Comments
 (0)