Skip to content

Commit a1b340a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Fix spectral rules (#1901)
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 0e2b0ba commit a1b340a

File tree

9 files changed

+40
-7
lines changed

9 files changed

+40
-7
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-12 15:56:49.073582",
8-
"spec_repo_commit": "9f80a9c5"
7+
"regenerated": "2022-10-13 07:12:26.552226",
8+
"spec_repo_commit": "1bcaf2a0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-12 15:56:49.085696",
13-
"spec_repo_commit": "9f80a9c5"
12+
"regenerated": "2022-10-13 07:12:26.568101",
13+
"spec_repo_commit": "1bcaf2a0"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9355,6 +9355,7 @@ components:
93559355
description: Widget request type.
93569356
enum:
93579357
- slo_list
9358+
example: slo_list
93589359
type: string
93599360
x-enum-varnames:
93609361
- SLO_LIST
@@ -10726,6 +10727,7 @@ components:
1072610727
- open
1072710728
- archived
1072810729
- under_review
10730+
example: open
1072910731
type: string
1073010732
x-enum-varnames:
1073110733
- OPEN
@@ -14796,19 +14798,23 @@ components:
1479614798
properties:
1479714799
ci_pipeline_indexed_spans:
1479814800
description: The number of spans for pipelines in the queried hour.
14801+
format: int64
1479914802
type: integer
1480014803
ci_test_indexed_spans:
1480114804
description: The number of spans for tests in the queried hour.
14805+
format: int64
1480214806
type: integer
1480314807
ci_visibility_pipeline_committers:
1480414808
description: Shows the total count of all active Git committers for Pipelines
1480514809
in the current month. A committer is active if they commit at least 3
1480614810
times in a given month.
14811+
format: int64
1480714812
type: integer
1480814813
ci_visibility_test_committers:
1480914814
description: The total count of all active Git committers for tests in the
1481014815
current month. A committer is active if they commit at least 3 times in
1481114816
a given month.
14817+
format: int64
1481214818
type: integer
1481314819
org_name:
1481414820
description: The organization name.
@@ -15519,6 +15525,7 @@ components:
1551915525
type: string
1552015526
online_archive_events_count:
1552115527
description: Total count of online archived events within the hour.
15528+
format: int64
1552215529
type: integer
1552315530
org_name:
1552415531
description: The organization name.

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,7 @@ components:
15531553
source_id:
15541554
description: Event source ID.
15551555
example: 36
1556+
format: int64
15561557
type: integer
15571558
type:
15581559
description: Event type.
@@ -1603,12 +1604,14 @@ components:
16031604
monitor_id:
16041605
description: ID of the monitor that triggered the event. When an event isn't
16051606
related to a monitor, this field is empty.
1607+
format: int64
16061608
nullable: true
16071609
type: integer
16081610
priority:
16091611
$ref: '#/components/schemas/EventPriority'
16101612
related_event_id:
16111613
description: Related event ID.
1614+
format: int64
16121615
type: integer
16131616
service:
16141617
description: Service that triggered the event.
@@ -5246,6 +5249,8 @@ components:
52465249
type: integer
52475250
group_status:
52485251
description: Monitor group status used when there is no `result_groups`.
5252+
format: int32
5253+
maximum: 2147483647
52495254
type: integer
52505255
groups:
52515256
description: Groups to which the monitor belongs.
@@ -5255,12 +5260,14 @@ components:
52555260
type: array
52565261
id:
52575262
description: The monitor ID.
5263+
format: int64
52585264
type: integer
52595265
message:
52605266
description: The monitor message.
52615267
type: string
52625268
modified:
52635269
description: The monitor's last-modified timestamp.
5270+
format: int64
52645271
type: integer
52655272
name:
52665273
description: The monitor name.
@@ -5962,6 +5969,7 @@ components:
59625969
description: Org ID of the RUM application.
59635970
example: 999
59645971
format: int32
5972+
maximum: 2147483647
59655973
type: integer
59665974
type:
59675975
description: Type of the RUM application. Supported values are `browser`,
@@ -8002,6 +8010,7 @@ components:
80028010
- open
80038011
- archived
80048012
- under_review
8013+
example: open
80058014
type: string
80068015
x-enum-varnames:
80078016
- OPEN
@@ -12010,6 +12019,8 @@ paths:
1201012019
name: filter[hours_ago]
1201112020
required: false
1201212021
schema:
12022+
format: int32
12023+
maximum: 2147483647
1201312024
type: integer
1201412025
- description: The number of aggregations that a `count`, `rate`, or `gauge`
1201512026
metric is configured to use. Max number of aggregation combos is 9.
@@ -12018,6 +12029,8 @@ paths:
1201812029
name: filter[num_aggregations]
1201912030
required: false
1202012031
schema:
12032+
format: int32
12033+
maximum: 9
1202112034
type: integer
1202212035
- description: A boolean, for distribution metrics only, to estimate cardinality
1202312036
if the metric includes additional percentile aggregators.
@@ -12034,6 +12047,8 @@ paths:
1203412047
name: filter[timespan_h]
1203512048
required: false
1203612049
schema:
12050+
format: int32
12051+
maximum: 2147483647
1203712052
type: integer
1203812053
responses:
1203912054
'200':

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,22 @@ export class UsageCIVisibilityHour {
4747
ciPipelineIndexedSpans: {
4848
baseName: "ci_pipeline_indexed_spans",
4949
type: "number",
50+
format: "int64",
5051
},
5152
ciTestIndexedSpans: {
5253
baseName: "ci_test_indexed_spans",
5354
type: "number",
55+
format: "int64",
5456
},
5557
ciVisibilityPipelineCommitters: {
5658
baseName: "ci_visibility_pipeline_committers",
5759
type: "number",
60+
format: "int64",
5861
},
5962
ciVisibilityTestCommitters: {
6063
baseName: "ci_visibility_test_committers",
6164
type: "number",
65+
format: "int64",
6266
},
6367
orgName: {
6468
baseName: "org_name",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class UsageOnlineArchiveHour {
4444
onlineArchiveEventsCount: {
4545
baseName: "online_archive_events_count",
4646
type: "number",
47+
format: "int64",
4748
},
4849
orgName: {
4950
baseName: "org_name",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
260260
if (filterHoursAgo !== undefined) {
261261
requestContext.setQueryParam(
262262
"filter[hours_ago]",
263-
ObjectSerializer.serialize(filterHoursAgo, "number", "")
263+
ObjectSerializer.serialize(filterHoursAgo, "number", "int32")
264264
);
265265
}
266266
if (filterNumAggregations !== undefined) {
267267
requestContext.setQueryParam(
268268
"filter[num_aggregations]",
269-
ObjectSerializer.serialize(filterNumAggregations, "number", "")
269+
ObjectSerializer.serialize(filterNumAggregations, "number", "int32")
270270
);
271271
}
272272
if (filterPct !== undefined) {
@@ -278,7 +278,7 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
278278
if (filterTimespanH !== undefined) {
279279
requestContext.setQueryParam(
280280
"filter[timespan_h]",
281-
ObjectSerializer.serialize(filterTimespanH, "number", "")
281+
ObjectSerializer.serialize(filterTimespanH, "number", "int32")
282282
);
283283
}
284284

packages/datadog-api-client-v2/models/Event.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class Event {
4747
sourceId: {
4848
baseName: "source_id",
4949
type: "number",
50+
format: "int64",
5051
},
5152
type: {
5253
baseName: "type",

packages/datadog-api-client-v2/models/EventAttributes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export class EventAttributes {
147147
monitorId: {
148148
baseName: "monitor_id",
149149
type: "number",
150+
format: "int64",
150151
},
151152
priority: {
152153
baseName: "priority",
@@ -155,6 +156,7 @@ export class EventAttributes {
155156
relatedEventId: {
156157
baseName: "related_event_id",
157158
type: "number",
159+
format: "int64",
158160
},
159161
service: {
160162
baseName: "service",

packages/datadog-api-client-v2/models/MonitorType.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class MonitorType {
7272
groupStatus: {
7373
baseName: "group_status",
7474
type: "number",
75+
format: "int32",
7576
},
7677
groups: {
7778
baseName: "groups",
@@ -80,6 +81,7 @@ export class MonitorType {
8081
id: {
8182
baseName: "id",
8283
type: "number",
84+
format: "int64",
8385
},
8486
message: {
8587
baseName: "message",
@@ -88,6 +90,7 @@ export class MonitorType {
8890
modified: {
8991
baseName: "modified",
9092
type: "number",
93+
format: "int64",
9194
},
9295
name: {
9396
baseName: "name",

0 commit comments

Comments
 (0)