Skip to content

Commit 991dde8

Browse files
Merge pull request #1091 from Green-Software-Foundation/csv-import
Add csv-import plugin
2 parents 45cc5df + 265438f commit 991dde8

File tree

11 files changed

+1174
-112
lines changed

11 files changed

+1174
-112
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: csv-import
2+
description: successful path
3+
tags:
4+
initialize:
5+
plugins:
6+
data-import:
7+
method: CSVImport
8+
path: 'builtin'
9+
config:
10+
filepath: manifests/examples/builtins/csv-import/test.csv
11+
# filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12+
output: '*'
13+
tree:
14+
children:
15+
child:
16+
pipeline:
17+
compute:
18+
- data-import
19+
inputs:
20+
- timestamp: 2023-07-06T00:00
21+
duration: 300
22+
physical-processor: AMD 3020e
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
timestamp,duration,cpu-util,energy
2+
2023-07-06T00:00,1,20,5
3+
2023-07-06T00:01,1,30,10
4+
2023-07-06T00:02,1,40,15
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: csv-import
2+
description: successful path
3+
tags: null
4+
initialize:
5+
plugins:
6+
data-import:
7+
path: builtin
8+
method: CSVImport
9+
config:
10+
filepath: manifests/examples/builtins/csv-import/test.csv
11+
output: '*'
12+
execution:
13+
command: >-
14+
/Users/manushak/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
15+
/Users/manushak/Documents/Projects/Green-Software/if/src/if-run/index.ts -m
16+
manifests/examples/builtins/csv-import/success.yaml -o
17+
manifests/outputs/builtins/csv-import/success
18+
environment:
19+
if-version: 0.7.2
20+
os: macOS
21+
os-version: 14.6.1
22+
node-version: 18.20.4
23+
date-time: 2024-12-06T06:45:15.935Z (UTC)
24+
dependencies:
25+
- '@babel/core@7.22.10'
26+
- '@babel/preset-typescript@7.23.3'
27+
- '@commitlint/cli@18.6.0'
28+
- '@commitlint/config-conventional@18.6.0'
29+
- '@grnsft/if-core@0.0.28'
30+
- >-
31+
@grnsft/if-eco-ci-plugin@0.0.1 extraneous ->
32+
file:../../../if-eco-ci-plugin
33+
- '@jest/globals@29.7.0'
34+
- '@types/jest@29.5.8'
35+
- '@types/js-yaml@4.0.9'
36+
- '@types/luxon@3.4.2'
37+
- '@types/node@20.9.0'
38+
- axios-mock-adapter@1.22.0
39+
- axios@1.7.7
40+
- cross-env@7.0.3
41+
- csv-parse@5.5.6
42+
- csv-stringify@6.4.6
43+
- fixpack@4.0.0
44+
- gts@5.2.0
45+
- husky@8.0.3
46+
- jest@29.7.0
47+
- js-yaml@4.1.0
48+
- lint-staged@15.2.10
49+
- luxon@3.4.4
50+
- release-it@16.3.0
51+
- rimraf@5.0.5
52+
- ts-command-line-args@2.5.1
53+
- ts-jest@29.1.1
54+
- typescript-cubic-spline@1.0.1
55+
- typescript@5.2.2
56+
- winston@3.11.0
57+
- zod@3.23.8
58+
status: success
59+
tree:
60+
children:
61+
child:
62+
pipeline:
63+
compute:
64+
- data-import
65+
inputs:
66+
- timestamp: 2023-07-06T00:00
67+
duration: 300
68+
physical-processor: AMD 3020e
69+
outputs:
70+
- timestamp: 2023-07-06T00:00
71+
duration: 300
72+
physical-processor: AMD 3020e
73+
- timestamp: 2023-07-06T00:00
74+
duration: 1
75+
cpu-util: 20
76+
energy: 5
77+
- timestamp: 2023-07-06T00:01
78+
duration: 1
79+
cpu-util: 30
80+
energy: 10
81+
- timestamp: 2023-07-06T00:02
82+
duration: 1
83+
cpu-util: 40
84+
energy: 15

0 commit comments

Comments
 (0)