-
Notifications
You must be signed in to change notification settings - Fork 792
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 961-oauth-providers-does-not-validate-scopes
- Loading branch information
Showing
11 changed files
with
149 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: "last(iterable)" | ||
sidebarTitle: "last" | ||
--- | ||
|
||
### Input | ||
|
||
An iterable. | ||
|
||
### Output | ||
|
||
The last item of the iterable. | ||
|
||
### Example | ||
|
||
```yaml | ||
actions: | ||
- name: keep-slack | ||
foreach: "{{steps.this.results}}" | ||
condition: | ||
- type: threshold | ||
value: "keep.last(keep.split({{ foreach.value }}, ' '))" | ||
# each line looks like: | ||
# '2023-02-09 20:08:16,773 INFO: uvicorn.access -: 127.0.0.1:53948 - "GET /test2 HTTP/1.1" 503' | ||
# where the "503" is the number of the | ||
compare_to: 200 | ||
``` |
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,24 @@ | ||
--- | ||
title: "string(string)" | ||
sidebarTitle: "lowercase" | ||
--- | ||
|
||
### Input | ||
|
||
A string. | ||
|
||
### Output | ||
|
||
Returns the string which is lowercased. | ||
|
||
### Example | ||
|
||
```yaml | ||
actions: | ||
- name: trigger-slack | ||
condition: | ||
- type: equals | ||
value: keep.lowercase('ABC DEF') | ||
compare_to: "abc def" | ||
compare_type: eq | ||
``` |
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,24 @@ | ||
--- | ||
title: "string(string)" | ||
sidebarTitle: "uppercase" | ||
--- | ||
|
||
### Input | ||
|
||
A string. | ||
|
||
### Output | ||
|
||
Returns the string which is uppercased. | ||
|
||
### Example | ||
|
||
```yaml | ||
actions: | ||
- name: trigger-slack | ||
condition: | ||
- type: equals | ||
value: keep.uppercase('abc def') | ||
compare_to: "ABC DEF" | ||
compare_type: eq | ||
``` |
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,16 @@ | ||
workflow: | ||
id: autosupress | ||
description: demonstrates how to automatically suppress alerts | ||
triggers: | ||
- type: alert | ||
filters: | ||
- key: name | ||
value: r"(somename)" | ||
actions: | ||
- name: dismiss-alert | ||
provider: | ||
type: mock | ||
with: | ||
enrich_alert: | ||
- key: dismissed | ||
value: "true" |
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
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