-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: merge multiple property lookups
- Loading branch information
1 parent
5e68ce4
commit 7de3590
Showing
4 changed files
with
98 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Topology | ||
metadata: | ||
name: test-topology-property-list | ||
spec: | ||
schedule: "@every 10m" | ||
components: | ||
- name: RootComponent | ||
properties: | ||
- name: error_percentage | ||
min: 0 | ||
|
||
# Test property lookup merge as components | ||
- name: error_percentage_lookup | ||
lookup: | ||
http: | ||
- url: https://httpbin.demo.aws.flanksource.com/status/200 | ||
name: error_percentage_lookup_max | ||
display: | ||
expr: | | ||
[ | ||
{'name': 'error_percentage', 'max': 100} | ||
].toJSON() | ||
- url: https://httpbin.demo.aws.flanksource.com/status/200 | ||
name: error_percentage_lookup_value | ||
display: | ||
expr: | | ||
{'name': 'error_percentage', 'value': 10}.toJSON() |
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