Skip to content

Commit ae86244

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]>
1 parent a348dee commit ae86244

File tree

6 files changed

+46
-4
lines changed

6 files changed

+46
-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-12 15:56:51.111827",
8-
"spec_repo_commit": "9f80a9c5"
7+
"regenerated": "2022-10-13 07:12:25.109617",
8+
"spec_repo_commit": "1bcaf2a0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-12 15:56:51.225342",
13-
"spec_repo_commit": "9f80a9c5"
12+
"regenerated": "2022-10-13 07:12:25.122631",
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':

src/datadog_api_client/v2/api/metrics_api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,17 @@ def __init__(self, api_client=None):
170170
"location": "query",
171171
},
172172
"filter_hours_ago": {
173+
"validation": {
174+
"inclusive_maximum": 2147483647,
175+
},
173176
"openapi_types": (int,),
174177
"attribute": "filter[hours_ago]",
175178
"location": "query",
176179
},
177180
"filter_num_aggregations": {
181+
"validation": {
182+
"inclusive_maximum": 9,
183+
},
178184
"openapi_types": (int,),
179185
"attribute": "filter[num_aggregations]",
180186
"location": "query",
@@ -185,6 +191,9 @@ def __init__(self, api_client=None):
185191
"location": "query",
186192
},
187193
"filter_timespan_h": {
194+
"validation": {
195+
"inclusive_maximum": 2147483647,
196+
},
188197
"openapi_types": (int,),
189198
"attribute": "filter[timespan_h]",
190199
"location": "query",

src/datadog_api_client/v2/model/monitor_type.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111

1212
class MonitorType(ModelNormal):
13+
validations = {
14+
"group_status": {
15+
"inclusive_maximum": 2147483647,
16+
},
17+
}
1318
_nullable = True
1419

1520
@cached_property

src/datadog_api_client/v2/model/rum_application_attributes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111

1212
class RUMApplicationAttributes(ModelNormal):
13+
validations = {
14+
"org_id": {
15+
"inclusive_maximum": 2147483647,
16+
},
17+
}
18+
1319
@cached_property
1420
def openapi_types(_):
1521
return {

0 commit comments

Comments
 (0)