Skip to content

Commit

Permalink
Add audit trail to usage metering API (#1370)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec committed Mar 13, 2023
1 parent 347b36c commit aa53743
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 6 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.4",
"regenerated": "2023-03-13 10:16:15.993063",
"spec_repo_commit": "5ad82066"
"regenerated": "2023-03-13 16:14:01.584162",
"spec_repo_commit": "13001c30"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-03-13 10:16:16.005178",
"spec_repo_commit": "5ad82066"
"regenerated": "2023-03-13 16:14:01.600810",
"spec_repo_commit": "13001c30"
}
}
}
15 changes: 15 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16714,6 +16714,11 @@ components:
the current date for all organizations.
format: int64
type: integer
audit_trail_enabled_hwm:
description: Shows the number of organizations that had Audit Trail enabled
in the current date.
format: int64
type: integer
avg_profiled_fargate_tasks:
description: The average profiled task count for Fargate Profiling.
format: int64
Expand Down Expand Up @@ -17100,6 +17105,11 @@ components:
in the current date for the given org.
format: int64
type: integer
audit_trail_enabled_hwm:
description: Shows whether Audit Trail is enabled for the current date for
the given org.
format: int64
type: integer
avg_profiled_fargate_tasks:
description: The average profiled task count for Fargate Profiling.
format: int64
Expand Down Expand Up @@ -17489,6 +17499,11 @@ components:
in the current months for all organizations.
format: int64
type: integer
audit_trail_enabled_hwm_sum:
description: Shows the total number of organizations that had Audit Trail
enabled over a specific number of months.
format: int64
type: integer
avg_profiled_fargate_tasks_sum:
description: Shows the average of all profiled Fargate tasks over all hours
in the current months for all organizations.
Expand Down
4 changes: 3 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20790,7 +20790,9 @@ paths:
- description: 'Comma separated list of product families to retrieve. Available
families are `all`, `analyzed_logs`,

`application_security`, `audit_logs`, `serverless`, `ci_app`, `cloud_cost_management`,
`application_security`, `audit_logs`, `audit_trail`, `serverless`, `ci_app`,
`cloud_cost_management`,

`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,

`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`,
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def openapi_types(_):
"apm_host_top99p": (int,),
"appsec_fargate_count_avg": (int,),
"audit_logs_lines_indexed_sum": (int,),
"audit_trail_enabled_hwm": (int,),
"avg_profiled_fargate_tasks": (int,),
"aws_host_top99p": (int,),
"aws_lambda_func_count": (int,),
Expand Down Expand Up @@ -109,6 +110,7 @@ def openapi_types(_):
"apm_host_top99p": "apm_host_top99p",
"appsec_fargate_count_avg": "appsec_fargate_count_avg",
"audit_logs_lines_indexed_sum": "audit_logs_lines_indexed_sum",
"audit_trail_enabled_hwm": "audit_trail_enabled_hwm",
"avg_profiled_fargate_tasks": "avg_profiled_fargate_tasks",
"aws_host_top99p": "aws_host_top99p",
"aws_lambda_func_count": "aws_lambda_func_count",
Expand Down Expand Up @@ -189,6 +191,7 @@ def __init__(
apm_host_top99p: Union[int, UnsetType] = unset,
appsec_fargate_count_avg: Union[int, UnsetType] = unset,
audit_logs_lines_indexed_sum: Union[int, UnsetType] = unset,
audit_trail_enabled_hwm: Union[int, UnsetType] = unset,
avg_profiled_fargate_tasks: Union[int, UnsetType] = unset,
aws_host_top99p: Union[int, UnsetType] = unset,
aws_lambda_func_count: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -282,6 +285,9 @@ def __init__(
:param audit_logs_lines_indexed_sum: Shows the sum of audit logs lines indexed over all hours in the current date for all organizations.
:type audit_logs_lines_indexed_sum: int, optional
:param audit_trail_enabled_hwm: Shows the number of organizations that had Audit Trail enabled in the current date.
:type audit_trail_enabled_hwm: int, optional
:param avg_profiled_fargate_tasks: The average profiled task count for Fargate Profiling.
:type avg_profiled_fargate_tasks: int, optional
Expand Down Expand Up @@ -504,6 +510,8 @@ def __init__(
kwargs["appsec_fargate_count_avg"] = appsec_fargate_count_avg
if audit_logs_lines_indexed_sum is not unset:
kwargs["audit_logs_lines_indexed_sum"] = audit_logs_lines_indexed_sum
if audit_trail_enabled_hwm is not unset:
kwargs["audit_trail_enabled_hwm"] = audit_trail_enabled_hwm
if avg_profiled_fargate_tasks is not unset:
kwargs["avg_profiled_fargate_tasks"] = avg_profiled_fargate_tasks
if aws_host_top99p is not unset:
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_date_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def openapi_types(_):
"apm_host_top99p": (int,),
"appsec_fargate_count_avg": (int,),
"audit_logs_lines_indexed_sum": (int,),
"audit_trail_enabled_hwm": (int,),
"avg_profiled_fargate_tasks": (int,),
"aws_host_top99p": (int,),
"aws_lambda_func_count": (int,),
Expand Down Expand Up @@ -104,6 +105,7 @@ def openapi_types(_):
"apm_host_top99p": "apm_host_top99p",
"appsec_fargate_count_avg": "appsec_fargate_count_avg",
"audit_logs_lines_indexed_sum": "audit_logs_lines_indexed_sum",
"audit_trail_enabled_hwm": "audit_trail_enabled_hwm",
"avg_profiled_fargate_tasks": "avg_profiled_fargate_tasks",
"aws_host_top99p": "aws_host_top99p",
"aws_lambda_func_count": "aws_lambda_func_count",
Expand Down Expand Up @@ -186,6 +188,7 @@ def __init__(
apm_host_top99p: Union[int, UnsetType] = unset,
appsec_fargate_count_avg: Union[int, UnsetType] = unset,
audit_logs_lines_indexed_sum: Union[int, UnsetType] = unset,
audit_trail_enabled_hwm: Union[int, UnsetType] = unset,
avg_profiled_fargate_tasks: Union[int, UnsetType] = unset,
aws_host_top99p: Union[int, UnsetType] = unset,
aws_lambda_func_count: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -281,6 +284,9 @@ def __init__(
: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.
:type audit_logs_lines_indexed_sum: int, optional
:param audit_trail_enabled_hwm: Shows whether Audit Trail is enabled for the current date for the given org.
:type audit_trail_enabled_hwm: int, optional
:param avg_profiled_fargate_tasks: The average profiled task count for Fargate Profiling.
:type avg_profiled_fargate_tasks: int, optional
Expand Down Expand Up @@ -509,6 +515,8 @@ def __init__(
kwargs["appsec_fargate_count_avg"] = appsec_fargate_count_avg
if audit_logs_lines_indexed_sum is not unset:
kwargs["audit_logs_lines_indexed_sum"] = audit_logs_lines_indexed_sum
if audit_trail_enabled_hwm is not unset:
kwargs["audit_trail_enabled_hwm"] = audit_trail_enabled_hwm
if avg_profiled_fargate_tasks is not unset:
kwargs["avg_profiled_fargate_tasks"] = avg_profiled_fargate_tasks
if aws_host_top99p is not unset:
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def openapi_types(_):
"apm_host_top99p_sum": (int,),
"appsec_fargate_count_avg_sum": (int,),
"audit_logs_lines_indexed_agg_sum": (int,),
"audit_trail_enabled_hwm_sum": (int,),
"avg_profiled_fargate_tasks_sum": (int,),
"aws_host_top99p_sum": (int,),
"aws_lambda_func_count": (int,),
Expand Down Expand Up @@ -120,6 +121,7 @@ def openapi_types(_):
"apm_host_top99p_sum": "apm_host_top99p_sum",
"appsec_fargate_count_avg_sum": "appsec_fargate_count_avg_sum",
"audit_logs_lines_indexed_agg_sum": "audit_logs_lines_indexed_agg_sum",
"audit_trail_enabled_hwm_sum": "audit_trail_enabled_hwm_sum",
"avg_profiled_fargate_tasks_sum": "avg_profiled_fargate_tasks_sum",
"aws_host_top99p_sum": "aws_host_top99p_sum",
"aws_lambda_func_count": "aws_lambda_func_count",
Expand Down Expand Up @@ -209,6 +211,7 @@ def __init__(
apm_host_top99p_sum: Union[int, UnsetType] = unset,
appsec_fargate_count_avg_sum: Union[int, UnsetType] = unset,
audit_logs_lines_indexed_agg_sum: Union[int, UnsetType] = unset,
audit_trail_enabled_hwm_sum: Union[int, UnsetType] = unset,
avg_profiled_fargate_tasks_sum: Union[int, UnsetType] = unset,
aws_host_top99p_sum: Union[int, UnsetType] = unset,
aws_lambda_func_count: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -311,6 +314,9 @@ def __init__(
: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.
:type audit_logs_lines_indexed_agg_sum: int, optional
:param audit_trail_enabled_hwm_sum: Shows the total number of organizations that had Audit Trail enabled over a specific number of months.
:type audit_trail_enabled_hwm_sum: int, optional
:param avg_profiled_fargate_tasks_sum: Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations.
:type avg_profiled_fargate_tasks_sum: int, optional
Expand Down Expand Up @@ -560,6 +566,8 @@ def __init__(
kwargs["appsec_fargate_count_avg_sum"] = appsec_fargate_count_avg_sum
if audit_logs_lines_indexed_agg_sum is not unset:
kwargs["audit_logs_lines_indexed_agg_sum"] = audit_logs_lines_indexed_agg_sum
if audit_trail_enabled_hwm_sum is not unset:
kwargs["audit_trail_enabled_hwm_sum"] = audit_trail_enabled_hwm_sum
if avg_profiled_fargate_tasks_sum is not unset:
kwargs["avg_profiled_fargate_tasks_sum"] = avg_profiled_fargate_tasks_sum
if aws_host_top99p_sum is not unset:
Expand Down
3 changes: 2 additions & 1 deletion src/datadog_api_client/v2/api/usage_metering_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ def get_hourly_usage(
:param filter_timestamp_start: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
:type filter_timestamp_start: datetime
:param filter_product_families: Comma separated list of product families to retrieve. Available families are ``all`` , ``analyzed_logs`` ,
``application_security`` , ``audit_logs`` , ``serverless`` , ``ci_app`` , ``cloud_cost_management`` , ``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
``application_security`` , ``audit_logs`` , ``audit_trail`` , ``serverless`` , ``ci_app`` , ``cloud_cost_management`` ,
``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
``infra_hosts`` , ``incident_management`` , ``indexed_logs`` , ``indexed_spans`` , ``ingested_spans`` , ``iot`` ,
``lambda_traced_invocations`` , ``logs`` , ``network_flows`` , ``network_hosts`` , ``observability_pipelines`` ,
``online_archive`` , ``profiling`` , ``rum`` , ``rum_browser_sessions`` , ``rum_mobile_sessions`` , ``sds`` , ``snmp`` ,
Expand Down

0 comments on commit aa53743

Please sign in to comment.