Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage metrics: validate maxLength for some elements #3131

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/models/base_metrics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pkg/models/localapi_swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ definitions:
version:
type: string
description: version of the remediation component
maxLength: 255
os:
$ref: '#/definitions/OSversion'
metrics:
Expand All @@ -1107,6 +1108,7 @@ definitions:
items:
type: string
description: feature flags (expected to be empty for remediation components)
maxLength: 255
utc_startup_timestamp:
type: integer
description: UTC timestamp of the startup of the software
Expand All @@ -1120,9 +1122,11 @@ definitions:
name:
type: string
description: name of the OS
maxLength: 255
version:
type: string
description: version of the OS
maxLength: 255
required:
- name
- version
Expand All @@ -1146,12 +1150,14 @@ definitions:
name:
type: string
description: name of the metric
maxLength: 255
value:
type: number
description: value of the metric
unit:
type: string
description: unit of the metric
maxLength: 255
labels:
$ref: '#/definitions/MetricsLabels'
description: labels of the metric
Expand All @@ -1178,6 +1184,7 @@ definitions:
additionalProperties:
type: string
description: label of the metric
maxLength: 255
ConsoleOptions:
title: ConsoleOptions
type: array
Expand Down
10 changes: 10 additions & 0 deletions pkg/models/metrics_detail_item.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions pkg/models/metrics_labels.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions pkg/models/o_sversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading