Skip to content

Commit a216b10

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f0d5decd of spec repo
1 parent 0c4ec32 commit a216b10

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
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-06 09:26:35.814218",
8-
"spec_repo_commit": "c520a0fb"
7+
"regenerated": "2022-10-06 18:48:16.465832",
8+
"spec_repo_commit": "f0d5decd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-06 09:26:35.829343",
13-
"spec_repo_commit": "c520a0fb"
12+
"regenerated": "2022-10-06 18:48:16.481933",
13+
"spec_repo_commit": "f0d5decd"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5238,6 +5238,7 @@ components:
52385238
created_at:
52395239
description: The POSIX timestamp of the monitor's creation in nanoseconds.
52405240
example: 1646318692000
5241+
format: int64
52415242
type: integer
52425243
group_status:
52435244
description: Monitor group status used when there is no `result_groups`.

api/datadogV2/model_monitor_type.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// MonitorType Attributes from the monitor that triggered the event.
1212
type MonitorType struct {
1313
// The POSIX timestamp of the monitor's creation in nanoseconds.
14-
CreatedAt *int32 `json:"created_at,omitempty"`
14+
CreatedAt *int64 `json:"created_at,omitempty"`
1515
// Monitor group status used when there is no `result_groups`.
1616
GroupStatus *int32 `json:"group_status,omitempty"`
1717
// Groups to which the monitor belongs.
@@ -55,17 +55,17 @@ func NewMonitorTypeWithDefaults() *MonitorType {
5555
}
5656

5757
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
58-
func (o *MonitorType) GetCreatedAt() int32 {
58+
func (o *MonitorType) GetCreatedAt() int64 {
5959
if o == nil || o.CreatedAt == nil {
60-
var ret int32
60+
var ret int64
6161
return ret
6262
}
6363
return *o.CreatedAt
6464
}
6565

6666
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
6767
// and a boolean to check if the value has been set.
68-
func (o *MonitorType) GetCreatedAtOk() (*int32, bool) {
68+
func (o *MonitorType) GetCreatedAtOk() (*int64, bool) {
6969
if o == nil || o.CreatedAt == nil {
7070
return nil, false
7171
}
@@ -77,8 +77,8 @@ func (o *MonitorType) HasCreatedAt() bool {
7777
return o != nil && o.CreatedAt != nil
7878
}
7979

80-
// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field.
81-
func (o *MonitorType) SetCreatedAt(v int32) {
80+
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
81+
func (o *MonitorType) SetCreatedAt(v int64) {
8282
o.CreatedAt = &v
8383
}
8484

@@ -412,7 +412,7 @@ func (o MonitorType) MarshalJSON() ([]byte, error) {
412412
func (o *MonitorType) UnmarshalJSON(bytes []byte) (err error) {
413413
raw := map[string]interface{}{}
414414
all := struct {
415-
CreatedAt *int32 `json:"created_at,omitempty"`
415+
CreatedAt *int64 `json:"created_at,omitempty"`
416416
GroupStatus *int32 `json:"group_status,omitempty"`
417417
Groups []string `json:"groups,omitempty"`
418418
Id *int32 `json:"id,omitempty"`

0 commit comments

Comments
 (0)