From 25d94d9c1780cc4570cde8081b0ff90e6c186283 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 13 Oct 2022 07:14:03 +0000 Subject: [PATCH] Regenerate client from commit 1bcaf2a0 of spec repo --- .apigentools-info | 8 +-- .generator/schemas/v1/openapi.yaml | 7 +++ .generator/schemas/v2/openapi.yaml | 15 +++++ .../model_usage_ci_visibility_hour.go | 56 +++++++++---------- .../model_usage_online_archive_hour.go | 14 ++--- api/datadogV2/model_event.go | 14 ++--- api/datadogV2/model_event_attributes.go | 28 +++++----- api/datadogV2/model_monitor_type.go | 28 +++++----- 8 files changed, 96 insertions(+), 74 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 38cbcd8c94c..62cc28f8e63 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 9e164daebbb..fd568f82972 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -9355,6 +9355,7 @@ components: description: Widget request type. enum: - slo_list + example: slo_list type: string x-enum-varnames: - SLO_LIST @@ -10726,6 +10727,7 @@ components: - open - archived - under_review + example: open type: string x-enum-varnames: - OPEN @@ -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. @@ -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. diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index da02a9204bd..327150b97a5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1553,6 +1553,7 @@ components: source_id: description: Event source ID. example: 36 + format: int64 type: integer type: description: Event type. @@ -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. @@ -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. @@ -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. @@ -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`, @@ -8002,6 +8010,7 @@ components: - open - archived - under_review + example: open type: string x-enum-varnames: - OPEN @@ -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. @@ -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. @@ -12034,6 +12047,8 @@ paths: name: filter[timespan_h] required: false schema: + format: int32 + maximum: 2147483647 type: integer responses: '200': diff --git a/api/datadogV1/model_usage_ci_visibility_hour.go b/api/datadogV1/model_usage_ci_visibility_hour.go index e2282d74405..da74ecf8885 100644 --- a/api/datadogV1/model_usage_ci_visibility_hour.go +++ b/api/datadogV1/model_usage_ci_visibility_hour.go @@ -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. @@ -45,9 +45,9 @@ 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 @@ -55,7 +55,7 @@ func (o *UsageCIVisibilityHour) GetCiPipelineIndexedSpans() int32 { // 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 } @@ -67,15 +67,15 @@ 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 @@ -83,7 +83,7 @@ func (o *UsageCIVisibilityHour) GetCiTestIndexedSpans() int32 { // 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 } @@ -95,15 +95,15 @@ 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 @@ -111,7 +111,7 @@ func (o *UsageCIVisibilityHour) GetCiVisibilityPipelineCommitters() int32 { // 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 } @@ -123,15 +123,15 @@ 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 @@ -139,7 +139,7 @@ func (o *UsageCIVisibilityHour) GetCiVisibilityTestCommitters() int32 { // 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 } @@ -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 } @@ -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"` }{} diff --git a/api/datadogV1/model_usage_online_archive_hour.go b/api/datadogV1/model_usage_online_archive_hour.go index 098982a9644..03a5411f830 100644 --- a/api/datadogV1/model_usage_online_archive_hour.go +++ b/api/datadogV1/model_usage_online_archive_hour.go @@ -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. @@ -70,9 +70,9 @@ 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 @@ -80,7 +80,7 @@ func (o *UsageOnlineArchiveHour) GetOnlineArchiveEventsCount() int32 { // 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 } @@ -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 } @@ -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"` }{} diff --git a/api/datadogV2/model_event.go b/api/datadogV2/model_event.go index 89e1fd9ced7..c51a49e0fc6 100644 --- a/api/datadogV2/model_event.go +++ b/api/datadogV2/model_event.go @@ -15,7 +15,7 @@ type Event struct { // The event name. Name *string `json:"name,omitempty"` // Event source ID. - SourceId *int32 `json:"source_id,omitempty"` + SourceId *int64 `json:"source_id,omitempty"` // Event type. Type *string `json:"type,omitempty"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct @@ -97,9 +97,9 @@ func (o *Event) SetName(v string) { } // GetSourceId returns the SourceId field value if set, zero value otherwise. -func (o *Event) GetSourceId() int32 { +func (o *Event) GetSourceId() int64 { if o == nil || o.SourceId == nil { - var ret int32 + var ret int64 return ret } return *o.SourceId @@ -107,7 +107,7 @@ func (o *Event) GetSourceId() int32 { // GetSourceIdOk returns a tuple with the SourceId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Event) GetSourceIdOk() (*int32, bool) { +func (o *Event) GetSourceIdOk() (*int64, bool) { if o == nil || o.SourceId == nil { return nil, false } @@ -119,8 +119,8 @@ func (o *Event) HasSourceId() bool { return o != nil && o.SourceId != nil } -// SetSourceId gets a reference to the given int32 and assigns it to the SourceId field. -func (o *Event) SetSourceId(v int32) { +// SetSourceId gets a reference to the given int64 and assigns it to the SourceId field. +func (o *Event) SetSourceId(v int64) { o.SourceId = &v } @@ -183,7 +183,7 @@ func (o *Event) UnmarshalJSON(bytes []byte) (err error) { all := struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` - SourceId *int32 `json:"source_id,omitempty"` + SourceId *int64 `json:"source_id,omitempty"` Type *string `json:"type,omitempty"` }{} err = json.Unmarshal(bytes, &all) diff --git a/api/datadogV2/model_event_attributes.go b/api/datadogV2/model_event_attributes.go index a8bbd4e6552..82e3f8de2d0 100644 --- a/api/datadogV2/model_event_attributes.go +++ b/api/datadogV2/model_event_attributes.go @@ -33,11 +33,11 @@ type EventAttributes struct { // List of groups referred to in the event. MonitorGroups []string `json:"monitor_groups,omitempty"` // ID of the monitor that triggered the event. When an event isn't related to a monitor, this field is empty. - MonitorId datadog.NullableInt32 `json:"monitor_id,omitempty"` + MonitorId datadog.NullableInt64 `json:"monitor_id,omitempty"` // The priority of the event's monitor. For example, `normal` or `low`. Priority NullableEventPriority `json:"priority,omitempty"` // Related event ID. - RelatedEventId *int32 `json:"related_event_id,omitempty"` + RelatedEventId *int64 `json:"related_event_id,omitempty"` // Service that triggered the event. Service *string `json:"service,omitempty"` // The type of event being posted. @@ -343,9 +343,9 @@ func (o *EventAttributes) SetMonitorGroups(v []string) { } // GetMonitorId returns the MonitorId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *EventAttributes) GetMonitorId() int32 { +func (o *EventAttributes) GetMonitorId() int64 { if o == nil || o.MonitorId.Get() == nil { - var ret int32 + var ret int64 return ret } return *o.MonitorId.Get() @@ -354,7 +354,7 @@ func (o *EventAttributes) GetMonitorId() int32 { // GetMonitorIdOk returns a tuple with the MonitorId field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned. -func (o *EventAttributes) GetMonitorIdOk() (*int32, bool) { +func (o *EventAttributes) GetMonitorIdOk() (*int64, bool) { if o == nil { return nil, false } @@ -366,8 +366,8 @@ func (o *EventAttributes) HasMonitorId() bool { return o != nil && o.MonitorId.IsSet() } -// SetMonitorId gets a reference to the given datadog.NullableInt32 and assigns it to the MonitorId field. -func (o *EventAttributes) SetMonitorId(v int32) { +// SetMonitorId gets a reference to the given datadog.NullableInt64 and assigns it to the MonitorId field. +func (o *EventAttributes) SetMonitorId(v int64) { o.MonitorId.Set(&v) } @@ -421,9 +421,9 @@ func (o *EventAttributes) UnsetPriority() { } // GetRelatedEventId returns the RelatedEventId field value if set, zero value otherwise. -func (o *EventAttributes) GetRelatedEventId() int32 { +func (o *EventAttributes) GetRelatedEventId() int64 { if o == nil || o.RelatedEventId == nil { - var ret int32 + var ret int64 return ret } return *o.RelatedEventId @@ -431,7 +431,7 @@ func (o *EventAttributes) GetRelatedEventId() int32 { // GetRelatedEventIdOk returns a tuple with the RelatedEventId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventAttributes) GetRelatedEventIdOk() (*int32, bool) { +func (o *EventAttributes) GetRelatedEventIdOk() (*int64, bool) { if o == nil || o.RelatedEventId == nil { return nil, false } @@ -443,8 +443,8 @@ func (o *EventAttributes) HasRelatedEventId() bool { return o != nil && o.RelatedEventId != nil } -// SetRelatedEventId gets a reference to the given int32 and assigns it to the RelatedEventId field. -func (o *EventAttributes) SetRelatedEventId(v int32) { +// SetRelatedEventId gets a reference to the given int64 and assigns it to the RelatedEventId field. +func (o *EventAttributes) SetRelatedEventId(v int64) { o.RelatedEventId = &v } @@ -727,9 +727,9 @@ func (o *EventAttributes) UnmarshalJSON(bytes []byte) (err error) { Hostname *string `json:"hostname,omitempty"` Monitor NullableMonitorType `json:"monitor,omitempty"` MonitorGroups []string `json:"monitor_groups,omitempty"` - MonitorId datadog.NullableInt32 `json:"monitor_id,omitempty"` + MonitorId datadog.NullableInt64 `json:"monitor_id,omitempty"` Priority NullableEventPriority `json:"priority,omitempty"` - RelatedEventId *int32 `json:"related_event_id,omitempty"` + RelatedEventId *int64 `json:"related_event_id,omitempty"` Service *string `json:"service,omitempty"` SourceTypeName *string `json:"source_type_name,omitempty"` Sourcecategory *string `json:"sourcecategory,omitempty"` diff --git a/api/datadogV2/model_monitor_type.go b/api/datadogV2/model_monitor_type.go index 2f90c006104..2b376ca03c7 100644 --- a/api/datadogV2/model_monitor_type.go +++ b/api/datadogV2/model_monitor_type.go @@ -17,11 +17,11 @@ type MonitorType struct { // Groups to which the monitor belongs. Groups []string `json:"groups,omitempty"` // The monitor ID. - Id *int32 `json:"id,omitempty"` + Id *int64 `json:"id,omitempty"` // The monitor message. Message *string `json:"message,omitempty"` // The monitor's last-modified timestamp. - Modified *int32 `json:"modified,omitempty"` + Modified *int64 `json:"modified,omitempty"` // The monitor name. Name *string `json:"name,omitempty"` // The query that triggers the alert. @@ -139,9 +139,9 @@ func (o *MonitorType) SetGroups(v []string) { } // GetId returns the Id field value if set, zero value otherwise. -func (o *MonitorType) GetId() int32 { +func (o *MonitorType) GetId() int64 { if o == nil || o.Id == nil { - var ret int32 + var ret int64 return ret } return *o.Id @@ -149,7 +149,7 @@ func (o *MonitorType) GetId() int32 { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MonitorType) GetIdOk() (*int32, bool) { +func (o *MonitorType) GetIdOk() (*int64, bool) { if o == nil || o.Id == nil { return nil, false } @@ -161,8 +161,8 @@ func (o *MonitorType) HasId() bool { return o != nil && o.Id != nil } -// SetId gets a reference to the given int32 and assigns it to the Id field. -func (o *MonitorType) SetId(v int32) { +// SetId gets a reference to the given int64 and assigns it to the Id field. +func (o *MonitorType) SetId(v int64) { o.Id = &v } @@ -195,9 +195,9 @@ func (o *MonitorType) SetMessage(v string) { } // GetModified returns the Modified field value if set, zero value otherwise. -func (o *MonitorType) GetModified() int32 { +func (o *MonitorType) GetModified() int64 { if o == nil || o.Modified == nil { - var ret int32 + var ret int64 return ret } return *o.Modified @@ -205,7 +205,7 @@ func (o *MonitorType) GetModified() int32 { // GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MonitorType) GetModifiedOk() (*int32, bool) { +func (o *MonitorType) GetModifiedOk() (*int64, bool) { if o == nil || o.Modified == nil { return nil, false } @@ -217,8 +217,8 @@ func (o *MonitorType) HasModified() bool { return o != nil && o.Modified != nil } -// SetModified gets a reference to the given int32 and assigns it to the Modified field. -func (o *MonitorType) SetModified(v int32) { +// SetModified gets a reference to the given int64 and assigns it to the Modified field. +func (o *MonitorType) SetModified(v int64) { o.Modified = &v } @@ -415,9 +415,9 @@ func (o *MonitorType) UnmarshalJSON(bytes []byte) (err error) { CreatedAt *int64 `json:"created_at,omitempty"` GroupStatus *int32 `json:"group_status,omitempty"` Groups []string `json:"groups,omitempty"` - Id *int32 `json:"id,omitempty"` + Id *int64 `json:"id,omitempty"` Message *string `json:"message,omitempty"` - Modified *int32 `json:"modified,omitempty"` + Modified *int64 `json:"modified,omitempty"` Name *string `json:"name,omitempty"` Query *string `json:"query,omitempty"` Tags []string `json:"tags,omitempty"`