Skip to content

Commit

Permalink
feat(manifests): add csv-import manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Dec 6, 2024
1 parent 32b78ab commit 0a44a49
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 0 deletions.
22 changes: 22 additions & 0 deletions manifests/examples/builtins/csv-import/success.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: csv-import
description: successful path
tags:
initialize:
plugins:
data-import:
method: CSVImport
path: 'builtin'
config:
filepath: manifests/examples/builtins/csv-import/test.csv
# filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
output: '*'
tree:
children:
child:
pipeline:
compute:
- data-import
inputs:
- timestamp: 2023-07-06T00:00
duration: 300
physical-processor: AMD 3020e
4 changes: 4 additions & 0 deletions manifests/examples/builtins/csv-import/test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
timestamp,duration,cpu-util,energy
2023-07-06T00:00,1,20,5
2023-07-06T00:01,1,30,10
2023-07-06T00:02,1,40,15
84 changes: 84 additions & 0 deletions manifests/outputs/builtins/csv-import/success.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: csv-import
description: successful path
tags: null
initialize:
plugins:
data-import:
path: builtin
method: CSVImport
config:
filepath: manifests/examples/builtins/csv-import/test.csv
output: '*'
execution:
command: >-
/Users/manushak/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
/Users/manushak/Documents/Projects/Green-Software/if/src/if-run/index.ts -m
manifests/examples/builtins/csv-import/success.yaml -o
manifests/outputs/builtins/csv-import/success
environment:
if-version: 0.7.2
os: macOS
os-version: 14.6.1
node-version: 18.20.4
date-time: 2024-12-06T06:45:15.935Z (UTC)
dependencies:
- '@babel/[email protected]'
- '@babel/[email protected]'
- '@commitlint/[email protected]'
- '@commitlint/[email protected]'
- '@grnsft/[email protected]'
- >-
@grnsft/[email protected] extraneous ->
file:../../../if-eco-ci-plugin
- '@jest/[email protected]'
- '@types/[email protected]'
- '@types/[email protected]'
- '@types/[email protected]'
- '@types/[email protected]'
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
status: success
tree:
children:
child:
pipeline:
compute:
- data-import
inputs:
- timestamp: 2023-07-06T00:00
duration: 300
physical-processor: AMD 3020e
outputs:
- timestamp: 2023-07-06T00:00
duration: 300
physical-processor: AMD 3020e
- timestamp: 2023-07-06T00:00
duration: 1
cpu-util: 20
energy: 5
- timestamp: 2023-07-06T00:01
duration: 1
cpu-util: 30
energy: 10
- timestamp: 2023-07-06T00:02
duration: 1
cpu-util: 40
energy: 15

0 comments on commit 0a44a49

Please sign in to comment.