-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into aaran/support-lists-in-sli-spec
- Loading branch information
Showing
5 changed files
with
93 additions
and
8 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
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
21 changes: 21 additions & 0 deletions
21
test/v1/slo/slo-composite-indicatorRef-rolling-no-alerts.yaml
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,21 @@ | ||
apiVersion: openslo/v1 | ||
kind: SLO | ||
metadata: | ||
name: TestSLO | ||
displayName: Test SLO # optional | ||
spec: | ||
description: This is a great description # optional | ||
service: TheServiceName # name of the service to associate this SLO with | ||
timeWindow: | ||
- duration: 1d | ||
isRolling: true | ||
budgetingMethod: Occurrences | ||
objectives: | ||
- displayName: Foo Total Errors | ||
target: 0.98 | ||
compositeWeight: 1 | ||
indicatorRef: indicatorRefString # name of the SLI. Required if indicator is not given. | ||
- displayName: Bar Total Errors | ||
target: 0.99 | ||
compositeWeight: 2 | ||
indicatorRef: indicatorRefString # name of the SLI. Required if indicator is not given. |
57 changes: 57 additions & 0 deletions
57
test/v1/slo/slo-composite-no-indicatorRef-rolling-no-alerts.yaml
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,57 @@ | ||
apiVersion: openslo/v1 | ||
kind: SLO | ||
metadata: | ||
name: TestSLO | ||
displayName: Test SLO | ||
spec: | ||
description: This is a great description | ||
service: TheServiceName | ||
timeWindow: | ||
- duration: 1M | ||
isRolling: true | ||
budgetingMethod: Occurrences | ||
objectives: | ||
- displayName: Foo Total Errors | ||
target: 0.98 | ||
compositeWeight: 1 | ||
indicator: | ||
metadata: | ||
name: foo-error | ||
displayName: Foo Error | ||
spec: | ||
ratioMetric: | ||
counter: true | ||
good: | ||
metricSource: | ||
metricSourceRef: datadog-datasource | ||
type: Datadog | ||
spec: | ||
query: sum:trace.http.request.hits.by_http_status{http.status_code:200}.as_count() | ||
total: | ||
metricSource: | ||
metricSourceRef: datadog-datasource | ||
type: Datadog | ||
spec: | ||
query: sum:trace.http.request.hits.by_http_status{*}.as_count() | ||
- displayName: Bar Total Errors | ||
target: 0.99 | ||
compositeWeight: 2 | ||
indicator: | ||
metadata: | ||
name: foo-error | ||
displayName: Foo Error | ||
spec: | ||
ratioMetric: | ||
counter: true | ||
good: | ||
metricSource: | ||
metricSourceRef: datadog-datasource | ||
type: Datadog | ||
spec: | ||
query: sum:trace.http.request.hits.by_http_status{http.status_code:200}.as_count() | ||
total: | ||
metricSource: | ||
metricSourceRef: datadog-datasource | ||
type: Datadog | ||
spec: | ||
query: sum:trace.http.request.hits.by_http_status{*}.as_count() |