@grnsft/if 0.3.4 → 0.4.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/.commitlintrc.js +0 -1
  2. package/.lintstagedrc.js +6 -0
  3. package/README.md +12 -8
  4. package/Refactor-migration-guide.md +6 -6
  5. package/github-processes.md +16 -42
  6. package/manifests/bugs/aggregation-error-wrong-metric.yml +6 -6
  7. package/manifests/bugs/azure-importer-ignoring-defaults.yml +3 -3
  8. package/manifests/bugs/azure-importer-incorrect-calculation.yml +2 -2
  9. package/manifests/bugs/mock-observations-failure-duration-is-zero.yml +34 -0
  10. package/manifests/bugs/pipeline-error-uninitialized-plugin.yml +1 -1
  11. package/manifests/bugs/pipeline-ordering-error.yml +6 -6
  12. package/manifests/bugs/sci-embodied-missing-resources-total.yml +23 -0
  13. package/manifests/examples/generics.yml +3 -3
  14. package/manifests/examples/instance-metadata.yml +36 -0
  15. package/manifests/examples/mock-cpu-util-to-carbon.yml +3 -3
  16. package/manifests/examples/nesting.yml +37 -10
  17. package/manifests/examples/pipeline-teads-sci.yml +17 -9
  18. package/manifests/examples/pipeline-with-aggregate.yml +24 -9
  19. package/manifests/examples/pipeline-with-mocks.yml +26 -9
  20. package/manifests/examples/sci.yml +131 -0
  21. package/manifests/examples/teads-curve.yml +78 -0
  22. package/manifests/features/aggregate-failure-inalid-metrics.yml +43 -0
  23. package/manifests/features/aggregate-failure-missing-metric-in-inputs.yml +43 -0
  24. package/manifests/integrations/cloud-metadata-divide-boavizta.yml +1 -1
  25. package/manifests/integrations/mock-obs-group-by-cloud-meta.yml +51 -0
  26. package/manifests/integrations/mock-obs-groupby.yml +2 -2
  27. package/manifests/integrations/mock-obs-time-sync.yml +1 -1
  28. package/manifests/plugins/cloud-metadata/failure-invalid-instance-type.yaml +21 -0
  29. package/manifests/plugins/cloud-metadata/failure-invalid-vendor.yaml +1 -1
  30. package/manifests/plugins/cloud-metadata/failure-missing-cloud-vendor.yml +21 -0
  31. package/manifests/plugins/cloud-metadata/success.yml +1 -1
  32. package/manifests/plugins/coefficient/failure-invalid-config-input-param.yml +1 -1
  33. package/manifests/plugins/coefficient/failure-output-param-is-null.yaml +24 -0
  34. package/manifests/plugins/coefficient/success.yml +1 -1
  35. package/manifests/plugins/csv-lookup/failure-missing-column.yml +26 -0
  36. package/manifests/plugins/csv-lookup/failure-missing-output.yml +26 -0
  37. package/manifests/plugins/csv-lookup/success-renaming.yml +26 -0
  38. package/manifests/plugins/csv-lookup/success.yml +26 -0
  39. package/manifests/plugins/divide/failure-denominator-equal-zero.yml +39 -0
  40. package/manifests/plugins/divide/failure-invalid-config-denominator.yml +1 -1
  41. package/manifests/plugins/divide/failure-missing-numerator.yml +39 -0
  42. package/manifests/plugins/divide/success.yml +2 -2
  43. package/manifests/plugins/groupby/failure-missing-cloud-instance-type.yml +49 -0
  44. package/manifests/plugins/interpolation/interpolation.yml +24 -0
  45. package/manifests/plugins/mock-observations/failure-invalid-config-cpu-range.yml +1 -1
  46. package/manifests/plugins/mock-observations/failure-invalid-memory-utilization-range.yml +34 -0
  47. package/manifests/plugins/mock-observations/failure-missing-timestamp-from-param.yml +34 -0
  48. package/manifests/plugins/mock-observations/success.yml +2 -2
  49. package/manifests/plugins/multiply/failure-input-parameter-is-missing.yml +1 -1
  50. package/manifests/plugins/multiply/success-with-multiple-inputs.yml +32 -0
  51. package/manifests/plugins/multiply/success.yml +3 -3
  52. package/manifests/plugins/regex/failure-missing-input-param.yml +1 -1
  53. package/manifests/plugins/regex/failure-not-matching-with-regex.yml +24 -0
  54. package/manifests/plugins/regex/success.yml +2 -2
  55. package/manifests/plugins/sci/failure-invalid-config-value.yml +2 -3
  56. package/manifests/plugins/sci/failure-missing-input-param.yml +27 -0
  57. package/manifests/plugins/sci/success.yml +5 -4
  58. package/manifests/plugins/{sci-m → sci-embodied}/failure-invalid-default-emission-value.yml +5 -6
  59. package/manifests/plugins/sci-embodied/failure-missing-expected-lifespan.yml +23 -0
  60. package/manifests/plugins/{sci-m → sci-embodied}/success.yml +5 -6
  61. package/manifests/plugins/shell/failure-invalid-command.yml +1 -1
  62. package/manifests/plugins/shell/success.yml +1 -2
  63. package/manifests/plugins/sum/failure-missing-input-param.yml +1 -1
  64. package/manifests/plugins/sum/failure-missing-output-param.yml +28 -0
  65. package/manifests/plugins/sum/success.yml +1 -1
  66. package/manifests/plugins/tdp-finder/failure-unsupported-physical-processor.yml +19 -0
  67. package/manifests/plugins/time-sync/failure-missing-global-config.yml +34 -0
  68. package/package.json +10 -2
  69. package/src/builtins/README.md +5 -5
  70. package/src/builtins/coefficient/README.md +92 -0
  71. package/src/builtins/csv-lookup/README.md +142 -0
  72. package/src/builtins/divide/README.md +95 -0
  73. package/src/builtins/exponent/README.md +97 -0
  74. package/src/builtins/interpolation/README.md +168 -0
  75. package/src/builtins/mock-observations/README.md +97 -0
  76. package/src/builtins/multiply/README.md +94 -0
  77. package/src/builtins/regex/README.md +91 -0
  78. package/src/builtins/sci/README.md +89 -0
  79. package/src/builtins/sci-embodied/README.md +110 -0
  80. package/src/builtins/shell/README.md +130 -0
  81. package/src/builtins/subtract/README.md +94 -0
  82. package/src/builtins/sum/README.md +91 -0
@@ -2,7 +2,7 @@ name: cloud-metadata
2
2
  description: failure with invalid `inputs.cloud/vendor`
3
3
  tags:
4
4
  initialize:
5
- outputs: ['yaml']
5
+ #outputs: ['yaml']
6
6
  plugins:
7
7
  cloud-metadata:
8
8
  method: CloudMetadata
@@ -0,0 +1,21 @@
1
+ name: cloud-metadata
2
+ description: failing because cloud/vendor is not provided
3
+ tags:
4
+ initialize:
5
+ outputs: ['yaml']
6
+ plugins:
7
+ cloud-metadata:
8
+ method: CloudMetadata
9
+ path: "@grnsft/if-plugins"
10
+ tree:
11
+ children:
12
+ child:
13
+ pipeline:
14
+ - cloud-metadata
15
+ config:
16
+ inputs:
17
+ - timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
18
+ #cloud/vendor: aws
19
+ cloud/instance-type: m5n.large
20
+ duration: 100
21
+ cpu/utilization: 10
@@ -2,7 +2,7 @@ name: cloud-metadata
2
2
  description: successful path
3
3
  tags:
4
4
  initialize:
5
- outputs: ['yaml']
5
+ # outputs: ['yaml']
6
6
  plugins:
7
7
  cloud-metadata:
8
8
  method: CloudMetadata
@@ -6,7 +6,7 @@ initialize:
6
6
  plugins:
7
7
  coefficient:
8
8
  method: Coefficient
9
- path: "@grnsft/if-plugins"
9
+ path: "builtin"
10
10
  global-config:
11
11
  input-parameter: 4
12
12
  coefficient: 3
@@ -0,0 +1,24 @@
1
+ name: coefficient-demo
2
+ description: value of output-param is missing
3
+ tags:
4
+ initialize:
5
+ outputs: ['yaml']
6
+ plugins:
7
+ coefficient:
8
+ method: Coefficient
9
+ path: "builtin"
10
+ global-config:
11
+ input-parameter: "carbon"
12
+ coefficient: 3
13
+ output-parameter:
14
+ tree:
15
+ children:
16
+ child:
17
+ pipeline:
18
+ - coefficient
19
+ config:
20
+ sum:
21
+ inputs:
22
+ - timestamp: 2023-08-06T00:00
23
+ duration: 3600
24
+ carbon: 30
@@ -6,7 +6,7 @@ initialize:
6
6
  plugins:
7
7
  coefficient:
8
8
  method: Coefficient
9
- path: "@grnsft/if-plugins"
9
+ path: "builtin"
10
10
  global-config:
11
11
  input-parameter: "carbon"
12
12
  coefficient: 3
@@ -0,0 +1,26 @@
1
+ name: csv-lookup-demo
2
+ description:
3
+ tags:
4
+ initialize:
5
+ # outputs:
6
+ # - yaml
7
+ plugins:
8
+ cloud-metadata:
9
+ method: CSVLookup
10
+ path: 'builtin'
11
+ global-config:
12
+ filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
13
+ query:
14
+ cloud-provider: "nonexistant"
15
+ cloud-region: "cloud/region"
16
+ output: "*"
17
+ tree:
18
+ children:
19
+ child:
20
+ pipeline:
21
+ - cloud-metadata
22
+ inputs:
23
+ - timestamp: 2023-08-06T00:00
24
+ duration: 3600
25
+ cloud/provider: Google Cloud
26
+ cloud/region: asia-east1
@@ -0,0 +1,26 @@
1
+ name: csv-lookup-demo
2
+ description:
3
+ tags:
4
+ initialize:
5
+ # outputs:
6
+ # - yaml
7
+ plugins:
8
+ cloud-metadata:
9
+ method: CSVLookup
10
+ path: 'builtin'
11
+ global-config:
12
+ filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
13
+ query:
14
+ cloud-provider: "cloud/provider"
15
+ cloud-region: "cloud/region"
16
+ output: "*"
17
+ tree:
18
+ children:
19
+ child:
20
+ pipeline:
21
+ - cloud-metadata
22
+ inputs:
23
+ - timestamp: 2023-08-06T00:00
24
+ duration: 3600
25
+ cloud/provider: Google Cloud
26
+ cloud/region: asia-east1
@@ -0,0 +1,26 @@
1
+ name: csv-lookup-demo
2
+ description:
3
+ tags:
4
+ initialize:
5
+ # outputs:
6
+ # - yaml
7
+ plugins:
8
+ cloud-metadata:
9
+ method: CSVLookup
10
+ path: 'builtin'
11
+ global-config:
12
+ filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
13
+ query:
14
+ cloud-provider: "cloud/provider"
15
+ cloud-region: "cloud/region"
16
+ output: ['em-zone-id','renamed-em-zone-data']
17
+ tree:
18
+ children:
19
+ child:
20
+ pipeline:
21
+ - cloud-metadata
22
+ inputs:
23
+ - timestamp: 2023-08-06T00:00
24
+ duration: 3600
25
+ cloud/provider: Google Cloud
26
+ cloud/region: asia-east1
@@ -0,0 +1,26 @@
1
+ name: csv-lookup-demo
2
+ description:
3
+ tags:
4
+ initialize:
5
+ # outputs:
6
+ # - yaml
7
+ plugins:
8
+ cloud-metadata:
9
+ method: CSVLookup
10
+ path: 'builtin'
11
+ global-config:
12
+ filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
13
+ query:
14
+ cloud-provider: "cloud/provider"
15
+ cloud-region: "cloud/region"
16
+ output: "*"
17
+ tree:
18
+ children:
19
+ child:
20
+ pipeline:
21
+ - cloud-metadata
22
+ inputs:
23
+ - timestamp: 2023-08-06T00:00
24
+ duration: 3600
25
+ cloud/provider: Google Cloud
26
+ cloud/region: asia-east-1
@@ -0,0 +1,39 @@
1
+ name: divide
2
+ description: denominator is invalid, denominator is
3
+ tags:
4
+ initialize:
5
+ # outputs: ['yaml']
6
+ plugins:
7
+ cloud-metadata:
8
+ method: CloudMetadata
9
+ path: "@grnsft/if-plugins"
10
+ divide:
11
+ method: Divide
12
+ path: "builtin"
13
+ global-config:
14
+ numerator: vcpus-allocated
15
+ denominator: 0
16
+ output: cpu/number-cores
17
+ boavizta-cpu:
18
+ method: BoaviztaCpuOutput
19
+ path: "@grnsft/if-unofficial-plugins"
20
+ global-config:
21
+ allocation: LINEAR
22
+ verbose: true
23
+ tree:
24
+ children:
25
+ child:
26
+ pipeline:
27
+ - cloud-metadata
28
+ - divide
29
+ - boavizta-cpu
30
+ config:
31
+ divide:
32
+ defaults:
33
+ cloud/vendor: aws
34
+ cloud/instance-type: m5n.large
35
+ cpu/name: Intel® Core™ i7-1185G7
36
+ inputs:
37
+ - timestamp: 2023-08-06T00:00
38
+ duration: 3600
39
+ cpu/utilization: 80
@@ -9,7 +9,7 @@ initialize:
9
9
  path: "@grnsft/if-plugins"
10
10
  divide:
11
11
  method: Divide
12
- path: "@grnsft/if-plugins"
12
+ path: "builtin"
13
13
  global-config:
14
14
  numerator: vcpus-allocated
15
15
  denominator: 'vcpus'
@@ -0,0 +1,39 @@
1
+ name: divide
2
+ description: success path
3
+ tags:
4
+ initialize:
5
+ # outputs: ['yaml']
6
+ plugins:
7
+ cloud-metadata:
8
+ method: CloudMetadata
9
+ path: "@grnsft/if-plugins"
10
+ divide:
11
+ method: Divide
12
+ path: "builtin"
13
+ global-config:
14
+ #numerator: vcpus-allocated
15
+ denominator: 2
16
+ output: cpu/number-cores
17
+ boavizta-cpu:
18
+ method: BoaviztaCpuOutput
19
+ path: "@grnsft/if-unofficial-plugins"
20
+ global-config:
21
+ allocation: LINEAR
22
+ verbose: true
23
+ tree:
24
+ children:
25
+ child:
26
+ pipeline:
27
+ - cloud-metadata
28
+ - divide
29
+ - boavizta-cpu
30
+ config:
31
+ divide:
32
+ defaults:
33
+ cloud/vendor: aws
34
+ cloud/instance-type: m5n.large
35
+ cpu/name: Intel® Core™ i7-1185G7
36
+ inputs:
37
+ - timestamp: 2023-08-06T00:00
38
+ duration: 3600
39
+ cpu/utilization: 80
@@ -2,14 +2,14 @@ name: divide
2
2
  description: success path
3
3
  tags:
4
4
  initialize:
5
- outputs: ['yaml']
5
+ # outputs: ['yaml']
6
6
  plugins:
7
7
  cloud-metadata:
8
8
  method: CloudMetadata
9
9
  path: "@grnsft/if-plugins"
10
10
  divide:
11
11
  method: Divide
12
- path: "@grnsft/if-plugins"
12
+ path: "builtin"
13
13
  global-config:
14
14
  numerator: vcpus-allocated
15
15
  denominator: 2
@@ -0,0 +1,49 @@
1
+ name: groupby
2
+ description:
3
+ initialize:
4
+ # outputs: ['yaml']
5
+ plugins:
6
+ group-by:
7
+ path: "builtin"
8
+ method: GroupBy
9
+ tree:
10
+ children:
11
+ my-app:
12
+ pipeline:
13
+ - group-by
14
+ config:
15
+ group-by:
16
+ group:
17
+ - cloud/region
18
+ - cloud/instance-type
19
+ inputs:
20
+ - timestamp: 2023-07-06T00:00
21
+ duration: 300
22
+ cloud/instance-type: A1
23
+ cloud/region: uk-west
24
+ cpu/utilization: 99
25
+ - timestamp: 2023-07-06T05:00
26
+ duration: 300
27
+ cloud/instance-type: A1
28
+ cloud/region: uk-west
29
+ cpu/utilization: 23
30
+ - timestamp: 2023-07-06T10:00
31
+ duration: 300
32
+ cloud/instance-type: A1
33
+ cloud/region: uk-west
34
+ cpu/utilization: 12
35
+ - timestamp: 2023-07-06T00:00 # note this time restarts at the start timstamp
36
+ duration: 300
37
+ cloud/instance-type: B1
38
+ cloud/region: uk-west
39
+ cpu/utilization: 11
40
+ - timestamp: 2023-07-06T05:00
41
+ duration: 300
42
+ cloud/instance-type: B1
43
+ cloud/region: uk-west
44
+ cpu/utilization: 67
45
+ - timestamp: 2023-07-06T10:00
46
+ duration: 300
47
+ #cloud/instance-type: B1 -- missing value
48
+ cloud/region: uk-west
49
+ cpu/utilization: 1
@@ -0,0 +1,24 @@
1
+ name: interpolation-demo
2
+ description: simple demo of interpolation plugin
3
+ tags:
4
+ initialize:
5
+ plugins:
6
+ interpolation:
7
+ method: Interpolation
8
+ path: "builtin"
9
+ global-config:
10
+ method: linear
11
+ x: [0, 10, 50, 100]
12
+ y: [0.12, 0.32, 0.75, 1.02]
13
+ input-parameter: "cpu/utilization"
14
+ output-parameter: "result"
15
+
16
+ tree:
17
+ children:
18
+ child:
19
+ pipeline:
20
+ - interpolation
21
+ inputs:
22
+ - timestamp: 2023-07-06T00:00
23
+ duration: 3600
24
+ cpu/utilization: 45
@@ -7,7 +7,7 @@ initialize:
7
7
  mock-observations:
8
8
  kind: plugin
9
9
  method: MockObservations
10
- path: "@grnsft/if-plugins"
10
+ path: "builtin"
11
11
  global-config:
12
12
  timestamp-from: 2023-07-06T00:00
13
13
  timestamp-to: 2023-07-06T00:10
@@ -0,0 +1,34 @@
1
+ name: mock-observation-demo
2
+ description: a manifest demonstrating how to use the mock observations feature
3
+ tags:
4
+ initialize:
5
+ # outputs: ['yaml']
6
+ plugins:
7
+ mock-observations:
8
+ kind: plugin
9
+ method: MockObservations
10
+ path: "builtin"
11
+ global-config:
12
+ timestamp-from: 2023-07-06T00:00
13
+ timestamp-to: 2023-07-06T00:10
14
+ duration: 60
15
+ components:
16
+ - cloud/instance-type: A1
17
+ - cloud/instance-type: B1
18
+ generators:
19
+ common:
20
+ region: uk-west
21
+ common-key: common-val
22
+ randint:
23
+ cpu/utilization:
24
+ min: 1
25
+ max: 99
26
+ memory/utilization:
27
+ min: 99
28
+ max: 10
29
+ tree:
30
+ children:
31
+ child:
32
+ pipeline:
33
+ - mock-observations
34
+ inputs:
@@ -0,0 +1,34 @@
1
+ name: mock-observation-demo
2
+ description: a manifest demonstrating how to use the mock observations feature
3
+ tags:
4
+ initialize:
5
+ outputs: ['yaml']
6
+ plugins:
7
+ mock-observations:
8
+ kind: plugin
9
+ method: MockObservations
10
+ path: "builtin"
11
+ global-config:
12
+ #timestamp-from: 2023-07-06T00:00
13
+ timestamp-to: 2023-07-06T00:10
14
+ duration: 60
15
+ components:
16
+ - cloud/instance-type: A1
17
+ - cloud/instance-type: B1
18
+ generators:
19
+ common:
20
+ region: uk-west
21
+ common-key: common-val
22
+ randint:
23
+ cpu/utilization:
24
+ min: 1
25
+ max: 99
26
+ memory/utilization:
27
+ min: 1
28
+ max: 99
29
+ tree:
30
+ children:
31
+ child:
32
+ pipeline:
33
+ - mock-observations
34
+ inputs:
@@ -2,12 +2,12 @@ name: mock-observation-demo
2
2
  description: a manifest demonstrating how to use the mock observations feature
3
3
  tags:
4
4
  initialize:
5
- outputs: ['yaml']
5
+ # outputs: ['yaml']
6
6
  plugins:
7
7
  mock-observations:
8
8
  kind: plugin
9
9
  method: MockObservations
10
- path: "@grnsft/if-plugins"
10
+ path: "builtin"
11
11
  global-config:
12
12
  timestamp-from: 2023-07-06T00:00
13
13
  timestamp-to: 2023-07-06T00:10
@@ -6,7 +6,7 @@ initialize:
6
6
  plugins:
7
7
  multiply:
8
8
  method: Multiply
9
- path: "@grnsft/if-plugins"
9
+ path: "builtin"
10
10
  global-config:
11
11
  input-parameters: ["cpu/energy", "network/energy"]
12
12
  output-parameter: "energy-product"
@@ -0,0 +1,32 @@
1
+ name: multiply
2
+ description: a manifest demonstrating how to use the multiply feature
3
+ tags:
4
+ initialize:
5
+ outputs: ['yaml']
6
+ plugins:
7
+ multiply:
8
+ method: Multiply
9
+ path: "builtin"
10
+ global-config:
11
+ input-parameters: ["cpu/energy", "network/energy"]
12
+ output-parameter: "energy-product"
13
+ tree:
14
+ children:
15
+ child:
16
+ pipeline:
17
+ - multiply
18
+ config:
19
+ sum:
20
+ inputs:
21
+ - timestamp: 2023-08-06T00:00
22
+ duration: 3600
23
+ cpu/energy: 0.001
24
+ network/energy: 0.002
25
+ - timestamp: 2023-08-06T10:00
26
+ duration: 3600
27
+ cpu/energy: 0.005
28
+ network/energy: -0.002
29
+ - timestamp: 2023-08-06T10:00
30
+ duration: 3600
31
+ cpu/energy: 0.005
32
+ network/energy: 0
@@ -2,11 +2,11 @@ name: multiply
2
2
  description: a manifest demonstrating how to use the multiply feature
3
3
  tags:
4
4
  initialize:
5
- outputs: ['yaml']
5
+ # outputs: ['yaml']
6
6
  plugins:
7
7
  multiply:
8
8
  method: Multiply
9
- path: "@grnsft/if-plugins"
9
+ path: builtin
10
10
  global-config:
11
11
  input-parameters: ["cpu/energy", "network/energy"]
12
12
  output-parameter: "energy-product"
@@ -16,7 +16,7 @@ tree:
16
16
  pipeline:
17
17
  - multiply
18
18
  config:
19
- sum:
19
+ sum:
20
20
  inputs:
21
21
  - timestamp: 2023-08-06T00:00
22
22
  duration: 3600
@@ -6,7 +6,7 @@ initialize:
6
6
  plugins:
7
7
  regex:
8
8
  method: Regex
9
- path: "@grnsft/if-plugins"
9
+ path: "builtin"
10
10
  global-config:
11
11
  parameter: physical-processor
12
12
  match: ^(.*),
@@ -0,0 +1,24 @@
1
+ name: regex
2
+ description: physical processor doesn't match the regex expression
3
+ tags:
4
+ initialize:
5
+ # outputs: ['yaml']
6
+ plugins:
7
+ regex:
8
+ method: Regex
9
+ path: "builtin"
10
+ global-config:
11
+ parameter: physical-processor
12
+ match: ^
13
+ output: cpu/name
14
+ tree:
15
+ children:
16
+ child:
17
+ pipeline:
18
+ - regex
19
+ config:
20
+ regex:
21
+ inputs:
22
+ - timestamp: 2023-08-06T00:00
23
+ duration: 3600
24
+ physical-processor: Intel® Xeon® Platinum 8272CL,Intel® Xeon® 8171M 2.1 GHz,Intel® Xeon® E5-2673 v4 2.3 GHz,Intel® Xeon® E5-2673 v3 2.4 GHz
@@ -2,11 +2,11 @@ name: regex
2
2
  description: successful path
3
3
  tags:
4
4
  initialize:
5
- outputs: ['yaml']
5
+ # outputs: ['yaml']
6
6
  plugins:
7
7
  regex:
8
8
  method: Regex
9
- path: "@grnsft/if-plugins"
9
+ path: "builtin"
10
10
  global-config:
11
11
  parameter: physical-processor
12
12
  match: ^(.*),
@@ -7,9 +7,9 @@ initialize:
7
7
  sci:
8
8
  kind: plugin
9
9
  method: Sci
10
- path: "@grnsft/if-plugins"
10
+ path: "builtin"
11
11
  # global-config:
12
- # functional-unit-time: 1 minute
12
+ # functional-unit: 1 minute
13
13
  tree:
14
14
  children:
15
15
  child:
@@ -17,7 +17,6 @@ tree:
17
17
  - sci
18
18
  config:
19
19
  sci:
20
- functional-unit-time: 1 sec
21
20
  functional-unit: 999 # factor to convert per time to per f.unit
22
21
  inputs:
23
22
  - timestamp: 2023-07-06T00:00
@@ -0,0 +1,27 @@
1
+ name: sci
2
+ description: missing input value (carbon-embodied)
3
+ tags:
4
+ initialize:
5
+ #outputs: ['yaml']
6
+ plugins:
7
+ sci:
8
+ kind: plugin
9
+ method: Sci
10
+ path: "builtin"
11
+ # global-config:
12
+ # functional-unit: requests
13
+ tree:
14
+ children:
15
+ child:
16
+ pipeline:
17
+ - sci
18
+ config:
19
+ sci:
20
+ functional-unit-time: 1 sec
21
+ functional-unit: requests # factor to convert per time to per f.unit
22
+ inputs:
23
+ - timestamp: 2023-07-06T00:00
24
+ duration: 3600
25
+ energy: 5
26
+ carbon-operational: 5
27
+ requests: 100
@@ -2,14 +2,14 @@ name: sci
2
2
  description: successful path
3
3
  tags:
4
4
  initialize:
5
- outputs: ['yaml']
5
+ # outputs: ['yaml']
6
6
  plugins:
7
7
  sci:
8
8
  kind: plugin
9
9
  method: Sci
10
- path: "@grnsft/if-plugins"
11
- # global-config:
12
- # functional-unit-time: 1 minute
10
+ path: "builtin"
11
+ global-config:
12
+ functional-unit: requests
13
13
  tree:
14
14
  children:
15
15
  child:
@@ -25,4 +25,5 @@ tree:
25
25
  energy: 5
26
26
  carbon-operational: 5
27
27
  carbon-embodied: 0.02
28
+ carbon: 5.02
28
29
  requests: 100