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

Fix spectral rules #1713

Merged
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
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:51.107810",
"spec_repo_commit": "9f80a9c5"
"regenerated": "2022-10-13 07:12:20.273978",
"spec_repo_commit": "1bcaf2a0"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-10-12 15:56:51.122956",
"spec_repo_commit": "9f80a9c5"
"regenerated": "2022-10-13 07:12:20.286250",
"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
56 changes: 28 additions & 28 deletions api/datadogV1/model_usage_ci_visibility_hour.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
// UsageCIVisibilityHour CI visibility usage in a given hour.
type UsageCIVisibilityHour struct {
// The number of spans for pipelines in the queried hour.
CiPipelineIndexedSpans *int32 `json:"ci_pipeline_indexed_spans,omitempty"`
CiPipelineIndexedSpans *int64 `json:"ci_pipeline_indexed_spans,omitempty"`
// The number of spans for tests in the queried hour.
CiTestIndexedSpans *int32 `json:"ci_test_indexed_spans,omitempty"`
CiTestIndexedSpans *int64 `json:"ci_test_indexed_spans,omitempty"`
// 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.
CiVisibilityPipelineCommitters *int32 `json:"ci_visibility_pipeline_committers,omitempty"`
CiVisibilityPipelineCommitters *int64 `json:"ci_visibility_pipeline_committers,omitempty"`
// 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.
CiVisibilityTestCommitters *int32 `json:"ci_visibility_test_committers,omitempty"`
CiVisibilityTestCommitters *int64 `json:"ci_visibility_test_committers,omitempty"`
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The organization public ID.
Expand Down Expand Up @@ -45,17 +45,17 @@ func NewUsageCIVisibilityHourWithDefaults() *UsageCIVisibilityHour {
}

// GetCiPipelineIndexedSpans returns the CiPipelineIndexedSpans field value if set, zero value otherwise.
func (o *UsageCIVisibilityHour) GetCiPipelineIndexedSpans() int32 {
func (o *UsageCIVisibilityHour) GetCiPipelineIndexedSpans() int64 {
if o == nil || o.CiPipelineIndexedSpans == nil {
var ret int32
var ret int64
return ret
}
return *o.CiPipelineIndexedSpans
}

// GetCiPipelineIndexedSpansOk returns a tuple with the CiPipelineIndexedSpans field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageCIVisibilityHour) GetCiPipelineIndexedSpansOk() (*int32, bool) {
func (o *UsageCIVisibilityHour) GetCiPipelineIndexedSpansOk() (*int64, bool) {
if o == nil || o.CiPipelineIndexedSpans == nil {
return nil, false
}
Expand All @@ -67,23 +67,23 @@ func (o *UsageCIVisibilityHour) HasCiPipelineIndexedSpans() bool {
return o != nil && o.CiPipelineIndexedSpans != nil
}

// SetCiPipelineIndexedSpans gets a reference to the given int32 and assigns it to the CiPipelineIndexedSpans field.
func (o *UsageCIVisibilityHour) SetCiPipelineIndexedSpans(v int32) {
// SetCiPipelineIndexedSpans gets a reference to the given int64 and assigns it to the CiPipelineIndexedSpans field.
func (o *UsageCIVisibilityHour) SetCiPipelineIndexedSpans(v int64) {
o.CiPipelineIndexedSpans = &v
}

// GetCiTestIndexedSpans returns the CiTestIndexedSpans field value if set, zero value otherwise.
func (o *UsageCIVisibilityHour) GetCiTestIndexedSpans() int32 {
func (o *UsageCIVisibilityHour) GetCiTestIndexedSpans() int64 {
if o == nil || o.CiTestIndexedSpans == nil {
var ret int32
var ret int64
return ret
}
return *o.CiTestIndexedSpans
}

// GetCiTestIndexedSpansOk returns a tuple with the CiTestIndexedSpans field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageCIVisibilityHour) GetCiTestIndexedSpansOk() (*int32, bool) {
func (o *UsageCIVisibilityHour) GetCiTestIndexedSpansOk() (*int64, bool) {
if o == nil || o.CiTestIndexedSpans == nil {
return nil, false
}
Expand All @@ -95,23 +95,23 @@ func (o *UsageCIVisibilityHour) HasCiTestIndexedSpans() bool {
return o != nil && o.CiTestIndexedSpans != nil
}

// SetCiTestIndexedSpans gets a reference to the given int32 and assigns it to the CiTestIndexedSpans field.
func (o *UsageCIVisibilityHour) SetCiTestIndexedSpans(v int32) {
// SetCiTestIndexedSpans gets a reference to the given int64 and assigns it to the CiTestIndexedSpans field.
func (o *UsageCIVisibilityHour) SetCiTestIndexedSpans(v int64) {
o.CiTestIndexedSpans = &v
}

// GetCiVisibilityPipelineCommitters returns the CiVisibilityPipelineCommitters field value if set, zero value otherwise.
func (o *UsageCIVisibilityHour) GetCiVisibilityPipelineCommitters() int32 {
func (o *UsageCIVisibilityHour) GetCiVisibilityPipelineCommitters() int64 {
if o == nil || o.CiVisibilityPipelineCommitters == nil {
var ret int32
var ret int64
return ret
}
return *o.CiVisibilityPipelineCommitters
}

// GetCiVisibilityPipelineCommittersOk returns a tuple with the CiVisibilityPipelineCommitters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageCIVisibilityHour) GetCiVisibilityPipelineCommittersOk() (*int32, bool) {
func (o *UsageCIVisibilityHour) GetCiVisibilityPipelineCommittersOk() (*int64, bool) {
if o == nil || o.CiVisibilityPipelineCommitters == nil {
return nil, false
}
Expand All @@ -123,23 +123,23 @@ func (o *UsageCIVisibilityHour) HasCiVisibilityPipelineCommitters() bool {
return o != nil && o.CiVisibilityPipelineCommitters != nil
}

// SetCiVisibilityPipelineCommitters gets a reference to the given int32 and assigns it to the CiVisibilityPipelineCommitters field.
func (o *UsageCIVisibilityHour) SetCiVisibilityPipelineCommitters(v int32) {
// SetCiVisibilityPipelineCommitters gets a reference to the given int64 and assigns it to the CiVisibilityPipelineCommitters field.
func (o *UsageCIVisibilityHour) SetCiVisibilityPipelineCommitters(v int64) {
o.CiVisibilityPipelineCommitters = &v
}

// GetCiVisibilityTestCommitters returns the CiVisibilityTestCommitters field value if set, zero value otherwise.
func (o *UsageCIVisibilityHour) GetCiVisibilityTestCommitters() int32 {
func (o *UsageCIVisibilityHour) GetCiVisibilityTestCommitters() int64 {
if o == nil || o.CiVisibilityTestCommitters == nil {
var ret int32
var ret int64
return ret
}
return *o.CiVisibilityTestCommitters
}

// GetCiVisibilityTestCommittersOk returns a tuple with the CiVisibilityTestCommitters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageCIVisibilityHour) GetCiVisibilityTestCommittersOk() (*int32, bool) {
func (o *UsageCIVisibilityHour) GetCiVisibilityTestCommittersOk() (*int64, bool) {
if o == nil || o.CiVisibilityTestCommitters == nil {
return nil, false
}
Expand All @@ -151,8 +151,8 @@ func (o *UsageCIVisibilityHour) HasCiVisibilityTestCommitters() bool {
return o != nil && o.CiVisibilityTestCommitters != nil
}

// SetCiVisibilityTestCommitters gets a reference to the given int32 and assigns it to the CiVisibilityTestCommitters field.
func (o *UsageCIVisibilityHour) SetCiVisibilityTestCommitters(v int32) {
// SetCiVisibilityTestCommitters gets a reference to the given int64 and assigns it to the CiVisibilityTestCommitters field.
func (o *UsageCIVisibilityHour) SetCiVisibilityTestCommitters(v int64) {
o.CiVisibilityTestCommitters = &v
}

Expand Down Expand Up @@ -247,10 +247,10 @@ func (o UsageCIVisibilityHour) MarshalJSON() ([]byte, error) {
func (o *UsageCIVisibilityHour) UnmarshalJSON(bytes []byte) (err error) {
raw := map[string]interface{}{}
all := struct {
CiPipelineIndexedSpans *int32 `json:"ci_pipeline_indexed_spans,omitempty"`
CiTestIndexedSpans *int32 `json:"ci_test_indexed_spans,omitempty"`
CiVisibilityPipelineCommitters *int32 `json:"ci_visibility_pipeline_committers,omitempty"`
CiVisibilityTestCommitters *int32 `json:"ci_visibility_test_committers,omitempty"`
CiPipelineIndexedSpans *int64 `json:"ci_pipeline_indexed_spans,omitempty"`
CiTestIndexedSpans *int64 `json:"ci_test_indexed_spans,omitempty"`
CiVisibilityPipelineCommitters *int64 `json:"ci_visibility_pipeline_committers,omitempty"`
CiVisibilityTestCommitters *int64 `json:"ci_visibility_test_committers,omitempty"`
OrgName *string `json:"org_name,omitempty"`
PublicId *string `json:"public_id,omitempty"`
}{}
Expand Down
14 changes: 7 additions & 7 deletions api/datadogV1/model_usage_online_archive_hour.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type UsageOnlineArchiveHour struct {
// The hour for the usage.
Hour *time.Time `json:"hour,omitempty"`
// Total count of online archived events within the hour.
OnlineArchiveEventsCount *int32 `json:"online_archive_events_count,omitempty"`
OnlineArchiveEventsCount *int64 `json:"online_archive_events_count,omitempty"`
// The organization name.
OrgName *string `json:"org_name,omitempty"`
// The organization public ID.
Expand Down Expand Up @@ -70,17 +70,17 @@ func (o *UsageOnlineArchiveHour) SetHour(v time.Time) {
}

// GetOnlineArchiveEventsCount returns the OnlineArchiveEventsCount field value if set, zero value otherwise.
func (o *UsageOnlineArchiveHour) GetOnlineArchiveEventsCount() int32 {
func (o *UsageOnlineArchiveHour) GetOnlineArchiveEventsCount() int64 {
if o == nil || o.OnlineArchiveEventsCount == nil {
var ret int32
var ret int64
return ret
}
return *o.OnlineArchiveEventsCount
}

// GetOnlineArchiveEventsCountOk returns a tuple with the OnlineArchiveEventsCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UsageOnlineArchiveHour) GetOnlineArchiveEventsCountOk() (*int32, bool) {
func (o *UsageOnlineArchiveHour) GetOnlineArchiveEventsCountOk() (*int64, bool) {
if o == nil || o.OnlineArchiveEventsCount == nil {
return nil, false
}
Expand All @@ -92,8 +92,8 @@ func (o *UsageOnlineArchiveHour) HasOnlineArchiveEventsCount() bool {
return o != nil && o.OnlineArchiveEventsCount != nil
}

// SetOnlineArchiveEventsCount gets a reference to the given int32 and assigns it to the OnlineArchiveEventsCount field.
func (o *UsageOnlineArchiveHour) SetOnlineArchiveEventsCount(v int32) {
// SetOnlineArchiveEventsCount gets a reference to the given int64 and assigns it to the OnlineArchiveEventsCount field.
func (o *UsageOnlineArchiveHour) SetOnlineArchiveEventsCount(v int64) {
o.OnlineArchiveEventsCount = &v
}

Expand Down Expand Up @@ -187,7 +187,7 @@ func (o *UsageOnlineArchiveHour) UnmarshalJSON(bytes []byte) (err error) {
raw := map[string]interface{}{}
all := struct {
Hour *time.Time `json:"hour,omitempty"`
OnlineArchiveEventsCount *int32 `json:"online_archive_events_count,omitempty"`
OnlineArchiveEventsCount *int64 `json:"online_archive_events_count,omitempty"`
OrgName *string `json:"org_name,omitempty"`
PublicId *string `json:"public_id,omitempty"`
}{}
Expand Down
Loading