Skip to content

Commit 122d524

Browse files
api-clients-generation-pipeline[bot]therveci.datadog-api-spec
authored
Add support for RRULE fields in SLO corrections (#1126)
* Fix test * Regenerate client from commit f510509 of spec repo Co-authored-by: Thomas Hervé <[email protected]> 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>
1 parent be4bbec commit 122d524

13 files changed

+740
-28
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.5.1.dev2",
7-
"regenerated": "2021-10-27 12:49:52.775829",
8-
"spec_repo_commit": "0b58986"
7+
"regenerated": "2021-10-28 15:04:17.108642",
8+
"spec_repo_commit": "f510509"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-27 12:49:52.790161",
13-
"spec_repo_commit": "0b58986"
12+
"regenerated": "2021-10-28 15:04:17.124268",
13+
"spec_repo_commit": "f510509"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7570,11 +7570,21 @@ components:
75707570
description:
75717571
description: Description of the correction being made.
75727572
type: string
7573+
duration:
7574+
description: Length of time (in seconds) for a specified `rrule` recurring
7575+
SLO correction.
7576+
example: 1600000000
7577+
format: int64
7578+
type: integer
75737579
end:
75747580
description: Ending time of the correction in epoch seconds.
75757581
example: 1600000000
75767582
format: int64
75777583
type: integer
7584+
rrule:
7585+
description: Recurrence rules as defined in the iCalendar RFC 5545.
7586+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
7587+
type: string
75787588
slo_id:
75797589
description: ID of the SLO that this correction will be applied to.
75807590
example: sloId
@@ -7592,7 +7602,6 @@ components:
75927602
required:
75937603
- slo_id
75947604
- start
7595-
- end
75967605
- category
75977606
type: object
75987607
SLOCorrectionListResponse:
@@ -7622,10 +7631,20 @@ components:
76227631
description:
76237632
description: Description of the correction being made.
76247633
type: string
7634+
duration:
7635+
description: Length of time (in seconds) for a specified `rrule` recurring
7636+
SLO correction.
7637+
example: 3600
7638+
format: int64
7639+
type: integer
76257640
end:
76267641
description: Ending time of the correction in epoch seconds.
76277642
format: int64
76287643
type: integer
7644+
rrule:
7645+
description: Recurrence rules as defined in the iCalendar RFC 5545.
7646+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
7647+
type: string
76297648
slo_id:
76307649
description: ID of the SLO that this correction will be applied to.
76317650
type: string
@@ -7669,11 +7688,21 @@ components:
76697688
description:
76707689
description: Description of the correction being made.
76717690
type: string
7691+
duration:
7692+
description: Length of time (in seconds) for a specified `rrule` recurring
7693+
SLO correction.
7694+
example: 3600
7695+
format: int64
7696+
type: integer
76727697
end:
76737698
description: Ending time of the correction in epoch seconds.
76747699
example: 1600000000
76757700
format: int64
76767701
type: integer
7702+
rrule:
7703+
description: Recurrence rules as defined in the iCalendar RFC 5545.
7704+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
7705+
type: string
76777706
start:
76787707
description: Starting time of the correction in epoch seconds.
76797708
example: 1600000000

api/v1/datadog/api/openapi.yaml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19941,10 +19941,12 @@ components:
1994119941
description: The response object of a list of SLO corrections.
1994219942
example:
1994319943
attributes:
19944+
duration: 3600
1994419945
creator:
1994519946
name: name
1994619947
handle: handle
1994719948
email: email
19949+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
1994819950
timezone: timezone
1994919951
slo_id: slo_id
1995019952
start: 6
@@ -19980,6 +19982,8 @@ components:
1998019982
description: The data object associated with the SLO correction to be created.
1998119983
example:
1998219984
attributes:
19985+
duration: 1600000000
19986+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
1998319987
timezone: UTC
1998419988
slo_id: sloId
1998519989
start: 1600000000
@@ -20000,6 +20004,8 @@ components:
2000020004
example:
2000120005
data:
2000220006
attributes:
20007+
duration: 1600000000
20008+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2000320009
timezone: UTC
2000420010
slo_id: sloId
2000520011
start: 1600000000
@@ -20014,6 +20020,8 @@ components:
2001420020
SLOCorrectionCreateRequestAttributes:
2001520021
description: The attribute object associated with the SLO correction to be created.
2001620022
example:
20023+
duration: 1600000000
20024+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2001720025
timezone: UTC
2001820026
slo_id: sloId
2001920027
start: 1600000000
@@ -20026,11 +20034,21 @@ components:
2002620034
description:
2002720035
description: Description of the correction being made.
2002820036
type: string
20037+
duration:
20038+
description: Length of time (in seconds) for a specified `rrule` recurring
20039+
SLO correction.
20040+
example: 1600000000
20041+
format: int64
20042+
type: integer
2002920043
end:
2003020044
description: Ending time of the correction in epoch seconds.
2003120045
example: 1600000000
2003220046
format: int64
2003320047
type: integer
20048+
rrule:
20049+
description: Recurrence rules as defined in the iCalendar RFC 5545.
20050+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
20051+
type: string
2003420052
slo_id:
2003520053
description: ID of the SLO that this correction will be applied to.
2003620054
example: sloId
@@ -20047,7 +20065,6 @@ components:
2004720065
type: string
2004820066
required:
2004920067
- category
20050-
- end
2005120068
- slo_id
2005220069
- start
2005320070
type: object
@@ -20056,10 +20073,12 @@ components:
2005620073
example:
2005720074
data:
2005820075
- attributes:
20076+
duration: 3600
2005920077
creator:
2006020078
name: name
2006120079
handle: handle
2006220080
email: email
20081+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2006320082
timezone: timezone
2006420083
slo_id: slo_id
2006520084
start: 6
@@ -20069,10 +20088,12 @@ components:
2006920088
id: id
2007020089
type: correction
2007120090
- attributes:
20091+
duration: 3600
2007220092
creator:
2007320093
name: name
2007420094
handle: handle
2007520095
email: email
20096+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2007620097
timezone: timezone
2007720098
slo_id: slo_id
2007820099
start: 6
@@ -20099,10 +20120,12 @@ components:
2009920120
example:
2010020121
data:
2010120122
attributes:
20123+
duration: 3600
2010220124
creator:
2010320125
name: name
2010420126
handle: handle
2010520127
email: email
20128+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2010620129
timezone: timezone
2010720130
slo_id: slo_id
2010820131
start: 6
@@ -20118,10 +20141,12 @@ components:
2011820141
SLOCorrectionResponseAttributes:
2011920142
description: The attribute object associated with the SLO correction.
2012020143
example:
20144+
duration: 3600
2012120145
creator:
2012220146
name: name
2012320147
handle: handle
2012420148
email: email
20149+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2012520150
timezone: timezone
2012620151
slo_id: slo_id
2012720152
start: 6
@@ -20136,10 +20161,20 @@ components:
2013620161
description:
2013720162
description: Description of the correction being made.
2013820163
type: string
20164+
duration:
20165+
description: Length of time (in seconds) for a specified `rrule` recurring
20166+
SLO correction.
20167+
example: 3600
20168+
format: int64
20169+
type: integer
2013920170
end:
2014020171
description: Ending time of the correction in epoch seconds.
2014120172
format: int64
2014220173
type: integer
20174+
rrule:
20175+
description: Recurrence rules as defined in the iCalendar RFC 5545.
20176+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
20177+
type: string
2014320178
slo_id:
2014420179
description: ID of the SLO that this correction will be applied to.
2014520180
type: string
@@ -20165,6 +20200,8 @@ components:
2016520200
description: The data object associated with the SLO correction to be updated.
2016620201
example:
2016720202
attributes:
20203+
duration: 3600
20204+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2016820205
timezone: UTC
2016920206
start: 1600000000
2017020207
description: description
@@ -20182,6 +20219,8 @@ components:
2018220219
example:
2018320220
data:
2018420221
attributes:
20222+
duration: 3600
20223+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2018520224
timezone: UTC
2018620225
start: 1600000000
2018720226
description: description
@@ -20195,6 +20234,8 @@ components:
2019520234
SLOCorrectionUpdateRequestAttributes:
2019620235
description: The attribute object associated with the SLO correction to be updated.
2019720236
example:
20237+
duration: 3600
20238+
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
2019820239
timezone: UTC
2019920240
start: 1600000000
2020020241
description: description
@@ -20206,11 +20247,21 @@ components:
2020620247
description:
2020720248
description: Description of the correction being made.
2020820249
type: string
20250+
duration:
20251+
description: Length of time (in seconds) for a specified `rrule` recurring
20252+
SLO correction.
20253+
example: 3600
20254+
format: int64
20255+
type: integer
2020920256
end:
2021020257
description: Ending time of the correction in epoch seconds.
2021120258
example: 1600000000
2021220259
format: int64
2021320260
type: integer
20261+
rrule:
20262+
description: Recurrence rules as defined in the iCalendar RFC 5545.
20263+
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
20264+
type: string
2021420265
start:
2021520266
description: Starting time of the correction in epoch seconds.
2021620267
example: 1600000000

api/v1/datadog/docs/SLOCorrectionCreateRequestAttributes.md

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
66
---- | ---- | ----------- | ------
77
**Category** | [**SLOCorrectionCategory**](SLOCorrectionCategory.md) | |
88
**Description** | Pointer to **string** | Description of the correction being made. | [optional]
9-
**End** | **int64** | Ending time of the correction in epoch seconds. |
9+
**Duration** | Pointer to **int64** | Length of time (in seconds) for a specified &#x60;rrule&#x60; recurring SLO correction. | [optional]
10+
**End** | Pointer to **int64** | Ending time of the correction in epoch seconds. | [optional]
11+
**Rrule** | Pointer to **string** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional]
1012
**SloId** | **string** | ID of the SLO that this correction will be applied to. |
1113
**Start** | **int64** | Starting time of the correction in epoch seconds. |
1214
**Timezone** | Pointer to **string** | The timezone to display in the UI for the correction times (defaults to \&quot;UTC\&quot;). | [optional]
@@ -15,7 +17,7 @@ Name | Type | Description | Notes
1517

1618
### NewSLOCorrectionCreateRequestAttributes
1719

18-
`func NewSLOCorrectionCreateRequestAttributes(category SLOCorrectionCategory, end int64, sloId string, start int64) *SLOCorrectionCreateRequestAttributes`
20+
`func NewSLOCorrectionCreateRequestAttributes(category SLOCorrectionCategory, sloId string, start int64) *SLOCorrectionCreateRequestAttributes`
1921

2022
NewSLOCorrectionCreateRequestAttributes instantiates a new SLOCorrectionCreateRequestAttributes object.
2123
This constructor will assign default values to properties that have it defined,
@@ -75,6 +77,31 @@ SetDescription sets Description field to given value.
7577

7678
HasDescription returns a boolean if a field has been set.
7779

80+
### GetDuration
81+
82+
`func (o *SLOCorrectionCreateRequestAttributes) GetDuration() int64`
83+
84+
GetDuration returns the Duration field if non-nil, zero value otherwise.
85+
86+
### GetDurationOk
87+
88+
`func (o *SLOCorrectionCreateRequestAttributes) GetDurationOk() (*int64, bool)`
89+
90+
GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise
91+
and a boolean to check if the value has been set.
92+
93+
### SetDuration
94+
95+
`func (o *SLOCorrectionCreateRequestAttributes) SetDuration(v int64)`
96+
97+
SetDuration sets Duration field to given value.
98+
99+
### HasDuration
100+
101+
`func (o *SLOCorrectionCreateRequestAttributes) HasDuration() bool`
102+
103+
HasDuration returns a boolean if a field has been set.
104+
78105
### GetEnd
79106

80107
`func (o *SLOCorrectionCreateRequestAttributes) GetEnd() int64`
@@ -94,6 +121,36 @@ and a boolean to check if the value has been set.
94121

95122
SetEnd sets End field to given value.
96123

124+
### HasEnd
125+
126+
`func (o *SLOCorrectionCreateRequestAttributes) HasEnd() bool`
127+
128+
HasEnd returns a boolean if a field has been set.
129+
130+
### GetRrule
131+
132+
`func (o *SLOCorrectionCreateRequestAttributes) GetRrule() string`
133+
134+
GetRrule returns the Rrule field if non-nil, zero value otherwise.
135+
136+
### GetRruleOk
137+
138+
`func (o *SLOCorrectionCreateRequestAttributes) GetRruleOk() (*string, bool)`
139+
140+
GetRruleOk returns a tuple with the Rrule field if it's non-nil, zero value otherwise
141+
and a boolean to check if the value has been set.
142+
143+
### SetRrule
144+
145+
`func (o *SLOCorrectionCreateRequestAttributes) SetRrule(v string)`
146+
147+
SetRrule sets Rrule field to given value.
148+
149+
### HasRrule
150+
151+
`func (o *SLOCorrectionCreateRequestAttributes) HasRrule() bool`
152+
153+
HasRrule returns a boolean if a field has been set.
97154

98155
### GetSloId
99156

0 commit comments

Comments
 (0)