-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #754 from Green-Software-Foundation/csv-lookup
CSV Lookup builtin plugin
- Loading branch information
Showing
14 changed files
with
1,085 additions
and
6 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 |
---|---|---|
|
@@ -27,7 +27,6 @@ module.exports = { | |
'package', | ||
'config', | ||
'mocks', | ||
'examples', | ||
'.github', | ||
'.husky', | ||
'scripts', | ||
|
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,26 @@ | ||
name: csv-lookup-demo | ||
description: | ||
tags: | ||
initialize: | ||
# outputs: | ||
# - yaml | ||
plugins: | ||
cloud-metadata: | ||
method: CSVLookup | ||
path: 'builtin' | ||
global-config: | ||
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv | ||
query: | ||
cloud-provider: "nonexistant" | ||
cloud-region: "cloud/region" | ||
output: "*" | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- cloud-metadata | ||
inputs: | ||
- timestamp: 2023-08-06T00:00 | ||
duration: 3600 | ||
cloud/provider: Google Cloud | ||
cloud/region: asia-east1 |
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,26 @@ | ||
name: csv-lookup-demo | ||
description: | ||
tags: | ||
initialize: | ||
# outputs: | ||
# - yaml | ||
plugins: | ||
cloud-metadata: | ||
method: CSVLookup | ||
path: 'builtin' | ||
global-config: | ||
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv | ||
query: | ||
cloud-provider: "cloud/provider" | ||
cloud-region: "cloud/region" | ||
output: "*" | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- cloud-metadata | ||
inputs: | ||
- timestamp: 2023-08-06T00:00 | ||
duration: 3600 | ||
cloud/provider: Google Cloud | ||
cloud/region: asia-east1 |
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,26 @@ | ||
name: csv-lookup-demo | ||
description: | ||
tags: | ||
initialize: | ||
# outputs: | ||
# - yaml | ||
plugins: | ||
cloud-metadata: | ||
method: CSVLookup | ||
path: 'builtin' | ||
global-config: | ||
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv | ||
query: | ||
cloud-provider: "cloud/provider" | ||
cloud-region: "cloud/region" | ||
output: ['em-zone-id','renamed-em-zone-data'] | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- cloud-metadata | ||
inputs: | ||
- timestamp: 2023-08-06T00:00 | ||
duration: 3600 | ||
cloud/provider: Google Cloud | ||
cloud/region: asia-east1 |
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,26 @@ | ||
name: csv-lookup-demo | ||
description: | ||
tags: | ||
initialize: | ||
# outputs: | ||
# - yaml | ||
plugins: | ||
cloud-metadata: | ||
method: CSVLookup | ||
path: 'builtin' | ||
global-config: | ||
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv | ||
query: | ||
cloud-provider: "cloud/provider" | ||
cloud-region: "cloud/region" | ||
output: "*" | ||
tree: | ||
children: | ||
child: | ||
pipeline: | ||
- cloud-metadata | ||
inputs: | ||
- timestamp: 2023-08-06T00:00 | ||
duration: 3600 | ||
cloud/provider: Google Cloud | ||
cloud/region: asia-east-1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.