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

Add support for RRULE fields in SLO corrections #1126

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.5.1.dev2",
"regenerated": "2021-10-27 12:49:52.775829",
"spec_repo_commit": "0b58986"
"regenerated": "2021-10-28 15:04:17.108642",
"spec_repo_commit": "f510509"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-10-27 12:49:52.790161",
"spec_repo_commit": "0b58986"
"regenerated": "2021-10-28 15:04:17.124268",
"spec_repo_commit": "f510509"
}
}
}
31 changes: 30 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7570,11 +7570,21 @@ components:
description:
description: Description of the correction being made.
type: string
duration:
description: Length of time (in seconds) for a specified `rrule` recurring
SLO correction.
example: 1600000000
format: int64
type: integer
end:
description: Ending time of the correction in epoch seconds.
example: 1600000000
format: int64
type: integer
rrule:
description: Recurrence rules as defined in the iCalendar RFC 5545.
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
type: string
slo_id:
description: ID of the SLO that this correction will be applied to.
example: sloId
Expand All @@ -7592,7 +7602,6 @@ components:
required:
- slo_id
- start
- end
- category
type: object
SLOCorrectionListResponse:
Expand Down Expand Up @@ -7622,10 +7631,20 @@ components:
description:
description: Description of the correction being made.
type: string
duration:
description: Length of time (in seconds) for a specified `rrule` recurring
SLO correction.
example: 3600
format: int64
type: integer
end:
description: Ending time of the correction in epoch seconds.
format: int64
type: integer
rrule:
description: Recurrence rules as defined in the iCalendar RFC 5545.
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
type: string
slo_id:
description: ID of the SLO that this correction will be applied to.
type: string
Expand Down Expand Up @@ -7669,11 +7688,21 @@ components:
description:
description: Description of the correction being made.
type: string
duration:
description: Length of time (in seconds) for a specified `rrule` recurring
SLO correction.
example: 3600
format: int64
type: integer
end:
description: Ending time of the correction in epoch seconds.
example: 1600000000
format: int64
type: integer
rrule:
description: Recurrence rules as defined in the iCalendar RFC 5545.
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
type: string
start:
description: Starting time of the correction in epoch seconds.
example: 1600000000
Expand Down
53 changes: 52 additions & 1 deletion api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19941,10 +19941,12 @@ components:
description: The response object of a list of SLO corrections.
example:
attributes:
duration: 3600
creator:
name: name
handle: handle
email: email
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: timezone
slo_id: slo_id
start: 6
Expand Down Expand Up @@ -19980,6 +19982,8 @@ components:
description: The data object associated with the SLO correction to be created.
example:
attributes:
duration: 1600000000
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: UTC
slo_id: sloId
start: 1600000000
Expand All @@ -20000,6 +20004,8 @@ components:
example:
data:
attributes:
duration: 1600000000
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: UTC
slo_id: sloId
start: 1600000000
Expand All @@ -20014,6 +20020,8 @@ components:
SLOCorrectionCreateRequestAttributes:
description: The attribute object associated with the SLO correction to be created.
example:
duration: 1600000000
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: UTC
slo_id: sloId
start: 1600000000
Expand All @@ -20026,11 +20034,21 @@ components:
description:
description: Description of the correction being made.
type: string
duration:
description: Length of time (in seconds) for a specified `rrule` recurring
SLO correction.
example: 1600000000
format: int64
type: integer
end:
description: Ending time of the correction in epoch seconds.
example: 1600000000
format: int64
type: integer
rrule:
description: Recurrence rules as defined in the iCalendar RFC 5545.
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
type: string
slo_id:
description: ID of the SLO that this correction will be applied to.
example: sloId
Expand All @@ -20047,7 +20065,6 @@ components:
type: string
required:
- category
- end
- slo_id
- start
type: object
Expand All @@ -20056,10 +20073,12 @@ components:
example:
data:
- attributes:
duration: 3600
creator:
name: name
handle: handle
email: email
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: timezone
slo_id: slo_id
start: 6
Expand All @@ -20069,10 +20088,12 @@ components:
id: id
type: correction
- attributes:
duration: 3600
creator:
name: name
handle: handle
email: email
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: timezone
slo_id: slo_id
start: 6
Expand All @@ -20099,10 +20120,12 @@ components:
example:
data:
attributes:
duration: 3600
creator:
name: name
handle: handle
email: email
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: timezone
slo_id: slo_id
start: 6
Expand All @@ -20118,10 +20141,12 @@ components:
SLOCorrectionResponseAttributes:
description: The attribute object associated with the SLO correction.
example:
duration: 3600
creator:
name: name
handle: handle
email: email
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: timezone
slo_id: slo_id
start: 6
Expand All @@ -20136,10 +20161,20 @@ components:
description:
description: Description of the correction being made.
type: string
duration:
description: Length of time (in seconds) for a specified `rrule` recurring
SLO correction.
example: 3600
format: int64
type: integer
end:
description: Ending time of the correction in epoch seconds.
format: int64
type: integer
rrule:
description: Recurrence rules as defined in the iCalendar RFC 5545.
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
type: string
slo_id:
description: ID of the SLO that this correction will be applied to.
type: string
Expand All @@ -20165,6 +20200,8 @@ components:
description: The data object associated with the SLO correction to be updated.
example:
attributes:
duration: 3600
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: UTC
start: 1600000000
description: description
Expand All @@ -20182,6 +20219,8 @@ components:
example:
data:
attributes:
duration: 3600
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: UTC
start: 1600000000
description: description
Expand All @@ -20195,6 +20234,8 @@ components:
SLOCorrectionUpdateRequestAttributes:
description: The attribute object associated with the SLO correction to be updated.
example:
duration: 3600
rrule: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
timezone: UTC
start: 1600000000
description: description
Expand All @@ -20206,11 +20247,21 @@ components:
description:
description: Description of the correction being made.
type: string
duration:
description: Length of time (in seconds) for a specified `rrule` recurring
SLO correction.
example: 3600
format: int64
type: integer
end:
description: Ending time of the correction in epoch seconds.
example: 1600000000
format: int64
type: integer
rrule:
description: Recurrence rules as defined in the iCalendar RFC 5545.
example: RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
type: string
start:
description: Starting time of the correction in epoch seconds.
example: 1600000000
Expand Down
61 changes: 59 additions & 2 deletions api/v1/datadog/docs/SLOCorrectionCreateRequestAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Name | Type | Description | Notes
---- | ---- | ----------- | ------
**Category** | [**SLOCorrectionCategory**](SLOCorrectionCategory.md) | |
**Description** | Pointer to **string** | Description of the correction being made. | [optional]
**End** | **int64** | Ending time of the correction in epoch seconds. |
**Duration** | Pointer to **int64** | Length of time (in seconds) for a specified `rrule` recurring SLO correction. | [optional]
**End** | Pointer to **int64** | Ending time of the correction in epoch seconds. | [optional]
**Rrule** | Pointer to **string** | Recurrence rules as defined in the iCalendar RFC 5545. | [optional]
**SloId** | **string** | ID of the SLO that this correction will be applied to. |
**Start** | **int64** | Starting time of the correction in epoch seconds. |
**Timezone** | Pointer to **string** | The timezone to display in the UI for the correction times (defaults to \"UTC\"). | [optional]
Expand All @@ -15,7 +17,7 @@ Name | Type | Description | Notes

### NewSLOCorrectionCreateRequestAttributes

`func NewSLOCorrectionCreateRequestAttributes(category SLOCorrectionCategory, end int64, sloId string, start int64) *SLOCorrectionCreateRequestAttributes`
`func NewSLOCorrectionCreateRequestAttributes(category SLOCorrectionCategory, sloId string, start int64) *SLOCorrectionCreateRequestAttributes`

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

HasDescription returns a boolean if a field has been set.

### GetDuration

`func (o *SLOCorrectionCreateRequestAttributes) GetDuration() int64`

GetDuration returns the Duration field if non-nil, zero value otherwise.

### GetDurationOk

`func (o *SLOCorrectionCreateRequestAttributes) GetDurationOk() (*int64, bool)`

GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDuration

`func (o *SLOCorrectionCreateRequestAttributes) SetDuration(v int64)`

SetDuration sets Duration field to given value.

### HasDuration

`func (o *SLOCorrectionCreateRequestAttributes) HasDuration() bool`

HasDuration returns a boolean if a field has been set.

### GetEnd

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

SetEnd sets End field to given value.

### HasEnd

`func (o *SLOCorrectionCreateRequestAttributes) HasEnd() bool`

HasEnd returns a boolean if a field has been set.

### GetRrule

`func (o *SLOCorrectionCreateRequestAttributes) GetRrule() string`

GetRrule returns the Rrule field if non-nil, zero value otherwise.

### GetRruleOk

`func (o *SLOCorrectionCreateRequestAttributes) GetRruleOk() (*string, bool)`

GetRruleOk returns a tuple with the Rrule field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRrule

`func (o *SLOCorrectionCreateRequestAttributes) SetRrule(v string)`

SetRrule sets Rrule field to given value.

### HasRrule

`func (o *SLOCorrectionCreateRequestAttributes) HasRrule() bool`

HasRrule returns a boolean if a field has been set.

### GetSloId

Expand Down
Loading