Skip to content

Commit

Permalink
Fix spectral rules (#1901)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 13, 2022
1 parent 0e2b0ba commit a1b340a
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 7 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": "2022-10-12 15:56:49.073582",
"spec_repo_commit": "9f80a9c5"
"regenerated": "2022-10-13 07:12:26.552226",
"spec_repo_commit": "1bcaf2a0"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-10-12 15:56:49.085696",
"spec_repo_commit": "9f80a9c5"
"regenerated": "2022-10-13 07:12:26.568101",
"spec_repo_commit": "1bcaf2a0"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9355,6 +9355,7 @@ components:
description: Widget request type.
enum:
- slo_list
example: slo_list
type: string
x-enum-varnames:
- SLO_LIST
Expand Down Expand Up @@ -10726,6 +10727,7 @@ components:
- open
- archived
- under_review
example: open
type: string
x-enum-varnames:
- OPEN
Expand Down Expand Up @@ -14796,19 +14798,23 @@ components:
properties:
ci_pipeline_indexed_spans:
description: The number of spans for pipelines in the queried hour.
format: int64
type: integer
ci_test_indexed_spans:
description: The number of spans for tests in the queried hour.
format: int64
type: integer
ci_visibility_pipeline_committers:
description: Shows the total count of all active Git committers for Pipelines
in the current month. A committer is active if they commit at least 3
times in a given month.
format: int64
type: integer
ci_visibility_test_committers:
description: The total count of all active Git committers for tests in the
current month. A committer is active if they commit at least 3 times in
a given month.
format: int64
type: integer
org_name:
description: The organization name.
Expand Down Expand Up @@ -15519,6 +15525,7 @@ components:
type: string
online_archive_events_count:
description: Total count of online archived events within the hour.
format: int64
type: integer
org_name:
description: The organization name.
Expand Down
15 changes: 15 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,7 @@ components:
source_id:
description: Event source ID.
example: 36
format: int64
type: integer
type:
description: Event type.
Expand Down Expand Up @@ -1603,12 +1604,14 @@ components:
monitor_id:
description: ID of the monitor that triggered the event. When an event isn't
related to a monitor, this field is empty.
format: int64
nullable: true
type: integer
priority:
$ref: '#/components/schemas/EventPriority'
related_event_id:
description: Related event ID.
format: int64
type: integer
service:
description: Service that triggered the event.
Expand Down Expand Up @@ -5246,6 +5249,8 @@ components:
type: integer
group_status:
description: Monitor group status used when there is no `result_groups`.
format: int32
maximum: 2147483647
type: integer
groups:
description: Groups to which the monitor belongs.
Expand All @@ -5255,12 +5260,14 @@ components:
type: array
id:
description: The monitor ID.
format: int64
type: integer
message:
description: The monitor message.
type: string
modified:
description: The monitor's last-modified timestamp.
format: int64
type: integer
name:
description: The monitor name.
Expand Down Expand Up @@ -5962,6 +5969,7 @@ components:
description: Org ID of the RUM application.
example: 999
format: int32
maximum: 2147483647
type: integer
type:
description: Type of the RUM application. Supported values are `browser`,
Expand Down Expand Up @@ -8002,6 +8010,7 @@ components:
- open
- archived
- under_review
example: open
type: string
x-enum-varnames:
- OPEN
Expand Down Expand Up @@ -12010,6 +12019,8 @@ paths:
name: filter[hours_ago]
required: false
schema:
format: int32
maximum: 2147483647
type: integer
- description: The number of aggregations that a `count`, `rate`, or `gauge`
metric is configured to use. Max number of aggregation combos is 9.
Expand All @@ -12018,6 +12029,8 @@ paths:
name: filter[num_aggregations]
required: false
schema:
format: int32
maximum: 9
type: integer
- description: A boolean, for distribution metrics only, to estimate cardinality
if the metric includes additional percentile aggregators.
Expand All @@ -12034,6 +12047,8 @@ paths:
name: filter[timespan_h]
required: false
schema:
format: int32
maximum: 2147483647
type: integer
responses:
'200':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,22 @@ export class UsageCIVisibilityHour {
ciPipelineIndexedSpans: {
baseName: "ci_pipeline_indexed_spans",
type: "number",
format: "int64",
},
ciTestIndexedSpans: {
baseName: "ci_test_indexed_spans",
type: "number",
format: "int64",
},
ciVisibilityPipelineCommitters: {
baseName: "ci_visibility_pipeline_committers",
type: "number",
format: "int64",
},
ciVisibilityTestCommitters: {
baseName: "ci_visibility_test_committers",
type: "number",
format: "int64",
},
orgName: {
baseName: "org_name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class UsageOnlineArchiveHour {
onlineArchiveEventsCount: {
baseName: "online_archive_events_count",
type: "number",
format: "int64",
},
orgName: {
baseName: "org_name",
Expand Down
6 changes: 3 additions & 3 deletions packages/datadog-api-client-v2/apis/MetricsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
if (filterHoursAgo !== undefined) {
requestContext.setQueryParam(
"filter[hours_ago]",
ObjectSerializer.serialize(filterHoursAgo, "number", "")
ObjectSerializer.serialize(filterHoursAgo, "number", "int32")
);
}
if (filterNumAggregations !== undefined) {
requestContext.setQueryParam(
"filter[num_aggregations]",
ObjectSerializer.serialize(filterNumAggregations, "number", "")
ObjectSerializer.serialize(filterNumAggregations, "number", "int32")
);
}
if (filterPct !== undefined) {
Expand All @@ -278,7 +278,7 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
if (filterTimespanH !== undefined) {
requestContext.setQueryParam(
"filter[timespan_h]",
ObjectSerializer.serialize(filterTimespanH, "number", "")
ObjectSerializer.serialize(filterTimespanH, "number", "int32")
);
}

Expand Down
1 change: 1 addition & 0 deletions packages/datadog-api-client-v2/models/Event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class Event {
sourceId: {
baseName: "source_id",
type: "number",
format: "int64",
},
type: {
baseName: "type",
Expand Down
2 changes: 2 additions & 0 deletions packages/datadog-api-client-v2/models/EventAttributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export class EventAttributes {
monitorId: {
baseName: "monitor_id",
type: "number",
format: "int64",
},
priority: {
baseName: "priority",
Expand All @@ -155,6 +156,7 @@ export class EventAttributes {
relatedEventId: {
baseName: "related_event_id",
type: "number",
format: "int64",
},
service: {
baseName: "service",
Expand Down
3 changes: 3 additions & 0 deletions packages/datadog-api-client-v2/models/MonitorType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class MonitorType {
groupStatus: {
baseName: "group_status",
type: "number",
format: "int32",
},
groups: {
baseName: "groups",
Expand All @@ -80,6 +81,7 @@ export class MonitorType {
id: {
baseName: "id",
type: "number",
format: "int64",
},
message: {
baseName: "message",
Expand All @@ -88,6 +90,7 @@ export class MonitorType {
modified: {
baseName: "modified",
type: "number",
format: "int64",
},
name: {
baseName: "name",
Expand Down

0 comments on commit a1b340a

Please sign in to comment.