Skip to content

Commit 74e5c80

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

File tree

7 files changed

+51
-6
lines changed

7 files changed

+51
-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:17.697859",
8-
"spec_repo_commit": "5ad82066"
7+
"regenerated": "2023-03-13 16:13:59.800099",
8+
"spec_repo_commit": "13001c30"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-03-13 10:16:17.712054",
13-
"spec_repo_commit": "5ad82066"
12+
"regenerated": "2023-03-13 16:13:59.813069",
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`,

packages/datadog-api-client-v1/models/UsageSummaryDate.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export class UsageSummaryDate {
3535
* Shows the sum of audit logs lines indexed over all hours in the current date for all organizations.
3636
*/
3737
"auditLogsLinesIndexedSum"?: number;
38+
/**
39+
* Shows the number of organizations that had Audit Trail enabled in the current date.
40+
*/
41+
"auditTrailEnabledHwm"?: number;
3842
/**
3943
* The average profiled task count for Fargate Profiling.
4044
*/
@@ -355,6 +359,11 @@ export class UsageSummaryDate {
355359
type: "number",
356360
format: "int64",
357361
},
362+
auditTrailEnabledHwm: {
363+
baseName: "audit_trail_enabled_hwm",
364+
type: "number",
365+
format: "int64",
366+
},
358367
avgProfiledFargateTasks: {
359368
baseName: "avg_profiled_fargate_tasks",
360369
type: "number",

packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export class UsageSummaryDateOrg {
3434
* Shows the sum of all audit logs lines indexed over all hours in the current date for the given org.
3535
*/
3636
"auditLogsLinesIndexedSum"?: number;
37+
/**
38+
* Shows whether Audit Trail is enabled for the current date for the given org.
39+
*/
40+
"auditTrailEnabledHwm"?: number;
3741
/**
3842
* The average profiled task count for Fargate Profiling.
3943
*/
@@ -362,6 +366,11 @@ export class UsageSummaryDateOrg {
362366
type: "number",
363367
format: "int64",
364368
},
369+
auditTrailEnabledHwm: {
370+
baseName: "audit_trail_enabled_hwm",
371+
type: "number",
372+
format: "int64",
373+
},
365374
avgProfiledFargateTasks: {
366375
baseName: "avg_profiled_fargate_tasks",
367376
type: "number",

packages/datadog-api-client-v1/models/UsageSummaryResponse.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export class UsageSummaryResponse {
3636
* Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations.
3737
*/
3838
"auditLogsLinesIndexedAggSum"?: number;
39+
/**
40+
* Shows the total number of organizations that had Audit Trail enabled over a specific number of months.
41+
*/
42+
"auditTrailEnabledHwmSum"?: number;
3943
/**
4044
* Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations.
4145
*/
@@ -392,6 +396,11 @@ export class UsageSummaryResponse {
392396
type: "number",
393397
format: "int64",
394398
},
399+
auditTrailEnabledHwmSum: {
400+
baseName: "audit_trail_enabled_hwm_sum",
401+
type: "number",
402+
format: "int64",
403+
},
395404
avgProfiledFargateTasksSum: {
396405
baseName: "avg_profiled_fargate_tasks_sum",
397406
type: "number",

packages/datadog-api-client-v2/apis/UsageMeteringApi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,8 @@ export interface UsageMeteringApiGetHourlyUsageRequest {
951951
filterTimestampStart: Date;
952952
/**
953953
* Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`,
954-
* `application_security`, `audit_logs`, `serverless`, `ci_app`, `cloud_cost_management`, `cspm`, `custom_events`, `cws`, `dbm`, `fargate`,
954+
* `application_security`, `audit_logs`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,
955+
* `cspm`, `custom_events`, `cws`, `dbm`, `fargate`,
955956
* `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`,
956957
* `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `observability_pipelines`,
957958
* `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`,

0 commit comments

Comments
 (0)