-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PC-11814 budget adjustment support for sloctl (#56)
## Motivation Add support for new`BudgetAdjustment` kind. ## Release Notes New BudgetAdjustment kind which allows customers to schedule recurring future events that should be excluded from the Error Budget calculations in their SLOs. This PR introduces new commands such as `sloctl get budgetadjustment`, `sloctl delete budgetadjustment` --------- Co-authored-by: kubaceg <jakub.cegielka@nobl9.com> Co-authored-by: Mateusz Hawrus <mateusz.hawrus@nobl9.com>
- Loading branch information
1 parent
c3c8a96
commit fb4622d
Showing
7 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.0 | ||
0.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: n9/v1alpha | ||
kind: BudgetAdjustment | ||
metadata: | ||
name: newrelic | ||
displayName: NewRelic budget adjustment | ||
spec: | ||
description: Example budget adjustment | ||
firstEventStart: 2024-03-05T05:00:00Z | ||
duration: 2h0m0s | ||
rrule: FREQ=DAILY;INTERVAL=7 | ||
filters: | ||
slos: | ||
- name: newrelic-rolling-timeslices-threshold | ||
project: death-star |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- apiVersion: n9/v1alpha | ||
kind: BudgetAdjustment | ||
metadata: | ||
name: tokyo-server | ||
displayName: Tokyo server budget adjustment | ||
spec: | ||
description: Example budget adjustment | ||
firstEventStart: 2024-02-05T05:00:00Z | ||
duration: 1h0m0s | ||
rrule: FREQ=WEEKLY;INTERVAL=1 | ||
filters: | ||
slos: | ||
- name: tokyo-server-6-latency | ||
project: death-star | ||
- apiVersion: n9/v1alpha | ||
kind: BudgetAdjustment | ||
metadata: | ||
name: newrelic | ||
displayName: NewRelic budget adjustment | ||
spec: | ||
description: Example budget adjustment | ||
firstEventStart: 2024-03-05T05:00:00Z | ||
duration: 2h0m0s | ||
rrule: FREQ=DAILY;INTERVAL=7 | ||
filters: | ||
slos: | ||
- name: newrelic-rolling-timeslices-threshold | ||
project: death-star |