Skip to content

Commit f39990a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add new SDS fields to usage API (#881)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 723de59 commit f39990a

File tree

6 files changed

+175
-4
lines changed

6 files changed

+175
-4
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": "2022-10-25 14:15:21.270515",
8-
"spec_repo_commit": "ecf2f022"
7+
"regenerated": "2022-10-25 16:39:03.429773",
8+
"spec_repo_commit": "afdd6b70"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-25 14:15:21.283501",
13-
"spec_repo_commit": "ecf2f022"
12+
"regenerated": "2022-10-25 16:39:03.449124",
13+
"spec_repo_commit": "afdd6b70"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15677,6 +15677,18 @@ components:
1567715677
description: Sensitive Data Scanner usage for a given organization for a given
1567815678
hour.
1567915679
properties:
15680+
apm_scanned_bytes:
15681+
description: "The total number of bytes scanned of APM usage across all
15682+
usage types by the Sensitive Data Scanner from the start of the given
15683+
hour\u2019s month until the given hour."
15684+
format: int64
15685+
type: integer
15686+
events_scanned_bytes:
15687+
description: "The total number of bytes scanned of Events usage across all
15688+
usage types by the Sensitive Data Scanner from the start of the given
15689+
hour\u2019s month until the given hour."
15690+
format: int64
15691+
type: integer
1568015692
hour:
1568115693
description: The hour for the usage.
1568215694
format: date-time
@@ -15693,6 +15705,12 @@ components:
1569315705
public_id:
1569415706
description: The organization public ID.
1569515707
type: string
15708+
rum_scanned_bytes:
15709+
description: "The total number of bytes scanned of RUM usage across all
15710+
usage types by the Sensitive Data Scanner from the start of the given
15711+
hour\u2019s month until the given hour."
15712+
format: int64
15713+
type: integer
1569615714
total_scanned_bytes:
1569715715
description: "The total number of bytes scanned across all usage types by
1569815716
the Sensitive Data Scanner from the start of the given hour\u2019s month
@@ -16120,11 +16138,26 @@ components:
1612016138
hours in the current date for all organizations.
1612116139
format: int64
1612216140
type: integer
16141+
sds_apm_scanned_bytes_sum:
16142+
description: Sum of all APM bytes scanned with sensitive data scanner over
16143+
all hours in the current date for all organizations.
16144+
format: int64
16145+
type: integer
16146+
sds_events_scanned_bytes_sum:
16147+
description: Sum of all event stream events bytes scanned with sensitive
16148+
data scanner over all hours in the current date for all organizations.
16149+
format: int64
16150+
type: integer
1612316151
sds_logs_scanned_bytes_sum:
1612416152
description: Shows the sum of all bytes scanned of logs usage by the Sensitive
1612516153
Data Scanner over all hours in the current month for all organizations.
1612616154
format: int64
1612716155
type: integer
16156+
sds_rum_scanned_bytes_sum:
16157+
description: Sum of all RUM bytes scanned with sensitive data scanner over
16158+
all hours in the current date for all organizations.
16159+
format: int64
16160+
type: integer
1612816161
sds_total_scanned_bytes_sum:
1612916162
description: Shows the sum of all bytes scanned across all usage types by
1613016163
the Sensitive Data Scanner over all hours in the current month for all
@@ -16458,11 +16491,26 @@ components:
1645816491
hours in the current date for the given org.
1645916492
format: int64
1646016493
type: integer
16494+
sds_apm_scanned_bytes_sum:
16495+
description: Sum of all APM bytes scanned with sensitive data scanner over
16496+
all hours in the current date for the given org.
16497+
format: int64
16498+
type: integer
16499+
sds_events_scanned_bytes_sum:
16500+
description: Sum of all event stream events bytes scanned with sensitive
16501+
data scanner over all hours in the current date for the given org.
16502+
format: int64
16503+
type: integer
1646116504
sds_logs_scanned_bytes_sum:
1646216505
description: Shows the sum of all bytes scanned of logs usage by the Sensitive
1646316506
Data Scanner over all hours in the current month for the given org.
1646416507
format: int64
1646516508
type: integer
16509+
sds_rum_scanned_bytes_sum:
16510+
description: Sum of all RUM bytes scanned with sensitive data scanner over
16511+
all hours in the current date for the given org.
16512+
format: int64
16513+
type: integer
1646616514
sds_total_scanned_bytes_sum:
1646716515
description: Shows the sum of all bytes scanned across all usage types by
1646816516
the Sensitive Data Scanner over all hours in the current month for the
@@ -16833,11 +16881,26 @@ components:
1683316881
hours in the current months for all organizations.
1683416882
format: int64
1683516883
type: integer
16884+
sds_apm_scanned_bytes_sum:
16885+
description: Sum of all APM bytes scanned with sensitive data scanner in
16886+
the current months for all organizations.
16887+
format: int64
16888+
type: integer
16889+
sds_events_scanned_bytes_sum:
16890+
description: Sum of all event stream events bytes scanned with sensitive
16891+
data scanner in the current months for all organizations.
16892+
format: int64
16893+
type: integer
1683616894
sds_logs_scanned_bytes_sum:
1683716895
description: Shows the sum of all bytes scanned of logs usage by the Sensitive
1683816896
Data Scanner over all hours in the current month for all organizations.
1683916897
format: int64
1684016898
type: integer
16899+
sds_rum_scanned_bytes_sum:
16900+
description: Sum of all RUM bytes scanned with sensitive data scanner in
16901+
the current months for all organizations.
16902+
format: int64
16903+
type: integer
1684116904
sds_total_scanned_bytes_sum:
1684216905
description: Shows the sum of all bytes scanned across all usage types by
1684316906
the Sensitive Data Scanner over all hours in the current month for all

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Sensitive Data Scanner usage for a given organization for a given hour.
1111
*/
1212
export class UsageSDSHour {
13+
/**
14+
* The total number of bytes scanned of APM usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
15+
*/
16+
"apmScannedBytes"?: number;
17+
/**
18+
* The total number of bytes scanned of Events usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
19+
*/
20+
"eventsScannedBytes"?: number;
1321
/**
1422
* The hour for the usage.
1523
*/
@@ -26,6 +34,10 @@ export class UsageSDSHour {
2634
* The organization public ID.
2735
*/
2836
"publicId"?: string;
37+
/**
38+
* The total number of bytes scanned of RUM usage across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
39+
*/
40+
"rumScannedBytes"?: number;
2941
/**
3042
* The total number of bytes scanned across all usage types by the Sensitive Data Scanner from the start of the given hour’s month until the given hour.
3143
*/
@@ -40,6 +52,16 @@ export class UsageSDSHour {
4052
* @ignore
4153
*/
4254
static readonly attributeTypeMap: AttributeTypeMap = {
55+
apmScannedBytes: {
56+
baseName: "apm_scanned_bytes",
57+
type: "number",
58+
format: "int64",
59+
},
60+
eventsScannedBytes: {
61+
baseName: "events_scanned_bytes",
62+
type: "number",
63+
format: "int64",
64+
},
4365
hour: {
4466
baseName: "hour",
4567
type: "Date",
@@ -58,6 +80,11 @@ export class UsageSDSHour {
5880
baseName: "public_id",
5981
type: "string",
6082
},
83+
rumScannedBytes: {
84+
baseName: "rum_scanned_bytes",
85+
type: "number",
86+
format: "int64",
87+
},
6188
totalScannedBytes: {
6289
baseName: "total_scanned_bytes",
6390
type: "number",

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,22 @@ export class UsageSummaryDate {
247247
* Shows the sum of all browser and mobile RUM units over all hours in the current date for all organizations.
248248
*/
249249
"rumUnitsSum"?: number;
250+
/**
251+
* Sum of all APM bytes scanned with sensitive data scanner over all hours in the current date for all organizations.
252+
*/
253+
"sdsApmScannedBytesSum"?: number;
254+
/**
255+
* Sum of all event stream events bytes scanned with sensitive data scanner over all hours in the current date for all organizations.
256+
*/
257+
"sdsEventsScannedBytesSum"?: number;
250258
/**
251259
* Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations.
252260
*/
253261
"sdsLogsScannedBytesSum"?: number;
262+
/**
263+
* Sum of all RUM bytes scanned with sensitive data scanner over all hours in the current date for all organizations.
264+
*/
265+
"sdsRumScannedBytesSum"?: number;
254266
/**
255267
* Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations.
256268
*/
@@ -579,11 +591,26 @@ export class UsageSummaryDate {
579591
type: "number",
580592
format: "int64",
581593
},
594+
sdsApmScannedBytesSum: {
595+
baseName: "sds_apm_scanned_bytes_sum",
596+
type: "number",
597+
format: "int64",
598+
},
599+
sdsEventsScannedBytesSum: {
600+
baseName: "sds_events_scanned_bytes_sum",
601+
type: "number",
602+
format: "int64",
603+
},
582604
sdsLogsScannedBytesSum: {
583605
baseName: "sds_logs_scanned_bytes_sum",
584606
type: "number",
585607
format: "int64",
586608
},
609+
sdsRumScannedBytesSum: {
610+
baseName: "sds_rum_scanned_bytes_sum",
611+
type: "number",
612+
format: "int64",
613+
},
587614
sdsTotalScannedBytesSum: {
588615
baseName: "sds_total_scanned_bytes_sum",
589616
type: "number",

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,22 @@ export class UsageSummaryDateOrg {
254254
* Shows the sum of all browser and mobile RUM units over all hours in the current date for the given org.
255255
*/
256256
"rumUnitsSum"?: number;
257+
/**
258+
* Sum of all APM bytes scanned with sensitive data scanner over all hours in the current date for the given org.
259+
*/
260+
"sdsApmScannedBytesSum"?: number;
261+
/**
262+
* Sum of all event stream events bytes scanned with sensitive data scanner over all hours in the current date for the given org.
263+
*/
264+
"sdsEventsScannedBytesSum"?: number;
257265
/**
258266
* Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for the given org.
259267
*/
260268
"sdsLogsScannedBytesSum"?: number;
269+
/**
270+
* Sum of all RUM bytes scanned with sensitive data scanner over all hours in the current date for the given org.
271+
*/
272+
"sdsRumScannedBytesSum"?: number;
261273
/**
262274
* Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for the given org.
263275
*/
@@ -593,11 +605,26 @@ export class UsageSummaryDateOrg {
593605
type: "number",
594606
format: "int64",
595607
},
608+
sdsApmScannedBytesSum: {
609+
baseName: "sds_apm_scanned_bytes_sum",
610+
type: "number",
611+
format: "int64",
612+
},
613+
sdsEventsScannedBytesSum: {
614+
baseName: "sds_events_scanned_bytes_sum",
615+
type: "number",
616+
format: "int64",
617+
},
596618
sdsLogsScannedBytesSum: {
597619
baseName: "sds_logs_scanned_bytes_sum",
598620
type: "number",
599621
format: "int64",
600622
},
623+
sdsRumScannedBytesSum: {
624+
baseName: "sds_rum_scanned_bytes_sum",
625+
type: "number",
626+
format: "int64",
627+
},
601628
sdsTotalScannedBytesSum: {
602629
baseName: "sds_total_scanned_bytes_sum",
603630
type: "number",

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,22 @@ export class UsageSummaryResponse {
276276
* Shows the sum of all browser and mobile RUM units over all hours in the current months for all organizations.
277277
*/
278278
"rumUnitsAggSum"?: number;
279+
/**
280+
* Sum of all APM bytes scanned with sensitive data scanner in the current months for all organizations.
281+
*/
282+
"sdsApmScannedBytesSum"?: number;
283+
/**
284+
* Sum of all event stream events bytes scanned with sensitive data scanner in the current months for all organizations.
285+
*/
286+
"sdsEventsScannedBytesSum"?: number;
279287
/**
280288
* Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations.
281289
*/
282290
"sdsLogsScannedBytesSum"?: number;
291+
/**
292+
* Sum of all RUM bytes scanned with sensitive data scanner in the current months for all organizations.
293+
*/
294+
"sdsRumScannedBytesSum"?: number;
283295
/**
284296
* Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations.
285297
*/
@@ -651,11 +663,26 @@ export class UsageSummaryResponse {
651663
type: "number",
652664
format: "int64",
653665
},
666+
sdsApmScannedBytesSum: {
667+
baseName: "sds_apm_scanned_bytes_sum",
668+
type: "number",
669+
format: "int64",
670+
},
671+
sdsEventsScannedBytesSum: {
672+
baseName: "sds_events_scanned_bytes_sum",
673+
type: "number",
674+
format: "int64",
675+
},
654676
sdsLogsScannedBytesSum: {
655677
baseName: "sds_logs_scanned_bytes_sum",
656678
type: "number",
657679
format: "int64",
658680
},
681+
sdsRumScannedBytesSum: {
682+
baseName: "sds_rum_scanned_bytes_sum",
683+
type: "number",
684+
format: "int64",
685+
},
659686
sdsTotalScannedBytesSum: {
660687
baseName: "sds_total_scanned_bytes_sum",
661688
type: "number",

0 commit comments

Comments
 (0)