@grnsft/if 1.0.0 → 1.0.2

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 (218) hide show
  1. package/build/common/util/helpers.d.ts +3 -2
  2. package/build/common/util/helpers.js +6 -18
  3. package/build/if-check/index.js +3 -13
  4. package/build/if-check/util/helpers.js +4 -4
  5. package/build/if-check/util/npm.d.ts +2 -2
  6. package/build/if-check/util/npm.js +32 -62
  7. package/build/if-run/builtins/divide/index.js +2 -2
  8. package/build/if-run/builtins/sci/index.js +2 -2
  9. package/build/if-run/config/strings.js +3 -3
  10. package/build/if-run/lib/compute.js +22 -5
  11. package/build/if-run/lib/environment.js +10 -14
  12. package/build/if-run/util/os-checker.js +14 -10
  13. package/jest.config.js +6 -2
  14. package/package.json +11 -10
  15. package/.env +0 -5
  16. package/coverage/clover.xml +0 -2062
  17. package/coverage/coverage-final.json +0 -58
  18. package/coverage/lcov-report/base.css +0 -224
  19. package/coverage/lcov-report/block-navigation.js +0 -87
  20. package/coverage/lcov-report/builtins/coefficient/index.html +0 -116
  21. package/coverage/lcov-report/builtins/coefficient/index.ts.html +0 -298
  22. package/coverage/lcov-report/builtins/csv-lookup/index.html +0 -116
  23. package/coverage/lcov-report/builtins/csv-lookup/index.ts.html +0 -826
  24. package/coverage/lcov-report/builtins/divide/index.html +0 -116
  25. package/coverage/lcov-report/builtins/divide/index.ts.html +0 -358
  26. package/coverage/lcov-report/builtins/exponent/index.html +0 -116
  27. package/coverage/lcov-report/builtins/exponent/index.ts.html +0 -361
  28. package/coverage/lcov-report/builtins/export-csv-raw.ts.html +0 -553
  29. package/coverage/lcov-report/builtins/export-csv.ts.html +0 -436
  30. package/coverage/lcov-report/builtins/export-log.ts.html +0 -148
  31. package/coverage/lcov-report/builtins/export-yaml.ts.html +0 -193
  32. package/coverage/lcov-report/builtins/group-by.ts.html +0 -370
  33. package/coverage/lcov-report/builtins/index.html +0 -206
  34. package/coverage/lcov-report/builtins/index.ts.html +0 -130
  35. package/coverage/lcov-report/builtins/interpolation/index.html +0 -116
  36. package/coverage/lcov-report/builtins/interpolation/index.ts.html +0 -676
  37. package/coverage/lcov-report/builtins/interpolation/types.ts.html +0 -100
  38. package/coverage/lcov-report/builtins/mock-observations/helpers/common-generator.ts.html +0 -184
  39. package/coverage/lcov-report/builtins/mock-observations/helpers/index.html +0 -131
  40. package/coverage/lcov-report/builtins/mock-observations/helpers/rand-int-generator.ts.html +0 -289
  41. package/coverage/lcov-report/builtins/mock-observations/index.html +0 -116
  42. package/coverage/lcov-report/builtins/mock-observations/index.ts.html +0 -619
  43. package/coverage/lcov-report/builtins/multiply/index.html +0 -116
  44. package/coverage/lcov-report/builtins/multiply/index.ts.html +0 -343
  45. package/coverage/lcov-report/builtins/regex/index.html +0 -116
  46. package/coverage/lcov-report/builtins/regex/index.ts.html +0 -373
  47. package/coverage/lcov-report/builtins/sci/config.ts.html +0 -205
  48. package/coverage/lcov-report/builtins/sci/index.html +0 -116
  49. package/coverage/lcov-report/builtins/sci/index.ts.html +0 -325
  50. package/coverage/lcov-report/builtins/sci-embodied/index.html +0 -116
  51. package/coverage/lcov-report/builtins/sci-embodied/index.ts.html +0 -478
  52. package/coverage/lcov-report/builtins/shell/index.html +0 -116
  53. package/coverage/lcov-report/builtins/shell/index.ts.html +0 -280
  54. package/coverage/lcov-report/builtins/subtract/index.html +0 -116
  55. package/coverage/lcov-report/builtins/subtract/index.ts.html +0 -379
  56. package/coverage/lcov-report/builtins/sum/index.html +0 -116
  57. package/coverage/lcov-report/builtins/sum/index.ts.html +0 -334
  58. package/coverage/lcov-report/builtins/time-sync.ts.html +0 -1462
  59. package/coverage/lcov-report/common/config/index.html +0 -131
  60. package/coverage/lcov-report/common/config/index.ts.html +0 -88
  61. package/coverage/lcov-report/common/config/strings.ts.html +0 -121
  62. package/coverage/lcov-report/common/lib/index.html +0 -116
  63. package/coverage/lcov-report/common/lib/load.ts.html +0 -139
  64. package/coverage/lcov-report/common/util/debug-logger.ts.html +0 -514
  65. package/coverage/lcov-report/common/util/fs.ts.html +0 -289
  66. package/coverage/lcov-report/common/util/helpers.ts.html +0 -355
  67. package/coverage/lcov-report/common/util/index.html +0 -191
  68. package/coverage/lcov-report/common/util/logger.ts.html +0 -151
  69. package/coverage/lcov-report/common/util/validations.ts.html +0 -628
  70. package/coverage/lcov-report/common/util/yaml.ts.html +0 -226
  71. package/coverage/lcov-report/config/config.ts.html +0 -463
  72. package/coverage/lcov-report/config/index.html +0 -161
  73. package/coverage/lcov-report/config/index.ts.html +0 -94
  74. package/coverage/lcov-report/config/params.ts.html +0 -697
  75. package/coverage/lcov-report/config/strings.ts.html +0 -490
  76. package/coverage/lcov-report/favicon.png +0 -0
  77. package/coverage/lcov-report/if-check/config/config.ts.html +0 -184
  78. package/coverage/lcov-report/if-check/config/index.html +0 -146
  79. package/coverage/lcov-report/if-check/config/index.ts.html +0 -91
  80. package/coverage/lcov-report/if-check/config/strings.ts.html +0 -142
  81. package/coverage/lcov-report/if-check/util/args.ts.html +0 -310
  82. package/coverage/lcov-report/if-check/util/helpers.ts.html +0 -136
  83. package/coverage/lcov-report/if-check/util/index.html +0 -146
  84. package/coverage/lcov-report/if-check/util/npm.ts.html +0 -376
  85. package/coverage/lcov-report/if-csv/util/args.ts.html +0 -256
  86. package/coverage/lcov-report/if-csv/util/helpers.ts.html +0 -346
  87. package/coverage/lcov-report/if-csv/util/index.html +0 -131
  88. package/coverage/lcov-report/if-diff/config/config.ts.html +0 -184
  89. package/coverage/lcov-report/if-diff/config/index.html +0 -146
  90. package/coverage/lcov-report/if-diff/config/index.ts.html +0 -91
  91. package/coverage/lcov-report/if-diff/config/strings.ts.html +0 -100
  92. package/coverage/lcov-report/if-diff/lib/compare.ts.html +0 -286
  93. package/coverage/lcov-report/if-diff/lib/index.html +0 -131
  94. package/coverage/lcov-report/if-diff/lib/load.ts.html +0 -199
  95. package/coverage/lcov-report/if-diff/util/args.ts.html +0 -274
  96. package/coverage/lcov-report/if-diff/util/helpers.ts.html +0 -337
  97. package/coverage/lcov-report/if-diff/util/index.html +0 -131
  98. package/coverage/lcov-report/if-env/config/config.ts.html +0 -211
  99. package/coverage/lcov-report/if-env/config/index.html +0 -146
  100. package/coverage/lcov-report/if-env/config/index.ts.html +0 -91
  101. package/coverage/lcov-report/if-env/config/strings.ts.html +0 -109
  102. package/coverage/lcov-report/if-env/util/args.ts.html +0 -256
  103. package/coverage/lcov-report/if-env/util/index.html +0 -131
  104. package/coverage/lcov-report/if-env/util/npm.ts.html +0 -526
  105. package/coverage/lcov-report/if-merge/util/args.ts.html +0 -301
  106. package/coverage/lcov-report/if-merge/util/helpers.ts.html +0 -313
  107. package/coverage/lcov-report/if-merge/util/index.html +0 -131
  108. package/coverage/lcov-report/if-run/builtins/coefficient/index.html +0 -116
  109. package/coverage/lcov-report/if-run/builtins/coefficient/index.ts.html +0 -286
  110. package/coverage/lcov-report/if-run/builtins/copy-param/index.html +0 -116
  111. package/coverage/lcov-report/if-run/builtins/copy-param/index.ts.html +0 -301
  112. package/coverage/lcov-report/if-run/builtins/csv-import/index.html +0 -116
  113. package/coverage/lcov-report/if-run/builtins/csv-import/index.ts.html +0 -364
  114. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.html +0 -116
  115. package/coverage/lcov-report/if-run/builtins/csv-lookup/index.ts.html +0 -478
  116. package/coverage/lcov-report/if-run/builtins/divide/index.html +0 -116
  117. package/coverage/lcov-report/if-run/builtins/divide/index.ts.html +0 -346
  118. package/coverage/lcov-report/if-run/builtins/exponent/index.html +0 -116
  119. package/coverage/lcov-report/if-run/builtins/exponent/index.ts.html +0 -319
  120. package/coverage/lcov-report/if-run/builtins/export-csv-raw.ts.html +0 -553
  121. package/coverage/lcov-report/if-run/builtins/export-csv.ts.html +0 -436
  122. package/coverage/lcov-report/if-run/builtins/export-log.ts.html +0 -148
  123. package/coverage/lcov-report/if-run/builtins/export-yaml.ts.html +0 -193
  124. package/coverage/lcov-report/if-run/builtins/group-by.ts.html +0 -370
  125. package/coverage/lcov-report/if-run/builtins/index.html +0 -146
  126. package/coverage/lcov-report/if-run/builtins/index.ts.html +0 -136
  127. package/coverage/lcov-report/if-run/builtins/interpolation/index.html +0 -116
  128. package/coverage/lcov-report/if-run/builtins/interpolation/index.ts.html +0 -643
  129. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/common-generator.ts.html +0 -184
  130. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/index.html +0 -131
  131. package/coverage/lcov-report/if-run/builtins/mock-observations/helpers/rand-int-generator.ts.html +0 -289
  132. package/coverage/lcov-report/if-run/builtins/mock-observations/index.html +0 -116
  133. package/coverage/lcov-report/if-run/builtins/mock-observations/index.ts.html +0 -607
  134. package/coverage/lcov-report/if-run/builtins/multiply/index.html +0 -116
  135. package/coverage/lcov-report/if-run/builtins/multiply/index.ts.html +0 -289
  136. package/coverage/lcov-report/if-run/builtins/regex/index.html +0 -116
  137. package/coverage/lcov-report/if-run/builtins/regex/index.ts.html +0 -298
  138. package/coverage/lcov-report/if-run/builtins/sci/index.html +0 -116
  139. package/coverage/lcov-report/if-run/builtins/sci/index.ts.html +0 -418
  140. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.html +0 -116
  141. package/coverage/lcov-report/if-run/builtins/sci-embodied/index.ts.html +0 -664
  142. package/coverage/lcov-report/if-run/builtins/shell/index.html +0 -116
  143. package/coverage/lcov-report/if-run/builtins/shell/index.ts.html +0 -256
  144. package/coverage/lcov-report/if-run/builtins/subtract/index.html +0 -116
  145. package/coverage/lcov-report/if-run/builtins/subtract/index.ts.html +0 -298
  146. package/coverage/lcov-report/if-run/builtins/sum/index.html +0 -116
  147. package/coverage/lcov-report/if-run/builtins/sum/index.ts.html +0 -238
  148. package/coverage/lcov-report/if-run/builtins/time-converter/config.ts.html +0 -205
  149. package/coverage/lcov-report/if-run/builtins/time-converter/index.html +0 -131
  150. package/coverage/lcov-report/if-run/builtins/time-converter/index.ts.html +0 -328
  151. package/coverage/lcov-report/if-run/builtins/time-sync/index.html +0 -116
  152. package/coverage/lcov-report/if-run/builtins/time-sync/index.ts.html +0 -1804
  153. package/coverage/lcov-report/if-run/builtins/time-sync.ts.html +0 -1462
  154. package/coverage/lcov-report/if-run/builtins/util/csv-helpers.ts.html +0 -376
  155. package/coverage/lcov-report/if-run/builtins/util/index.html +0 -116
  156. package/coverage/lcov-report/if-run/config/config.ts.html +0 -271
  157. package/coverage/lcov-report/if-run/config/index.html +0 -161
  158. package/coverage/lcov-report/if-run/config/index.ts.html +0 -94
  159. package/coverage/lcov-report/if-run/config/params.ts.html +0 -679
  160. package/coverage/lcov-report/if-run/config/strings.ts.html +0 -460
  161. package/coverage/lcov-report/if-run/lib/aggregate.ts.html +0 -577
  162. package/coverage/lcov-report/if-run/lib/compute.ts.html +0 -733
  163. package/coverage/lcov-report/if-run/lib/environment.ts.html +0 -373
  164. package/coverage/lcov-report/if-run/lib/exhaust.ts.html +0 -193
  165. package/coverage/lcov-report/if-run/lib/explain.ts.html +0 -484
  166. package/coverage/lcov-report/if-run/lib/index.html +0 -206
  167. package/coverage/lcov-report/if-run/lib/initialize.ts.html +0 -490
  168. package/coverage/lcov-report/if-run/lib/parameterize.ts.html +0 -322
  169. package/coverage/lcov-report/if-run/lib/regroup.ts.html +0 -349
  170. package/coverage/lcov-report/if-run/lib/time-sync.ts.html +0 -1510
  171. package/coverage/lcov-report/if-run/types/aggregation.ts.html +0 -94
  172. package/coverage/lcov-report/if-run/types/index.html +0 -146
  173. package/coverage/lcov-report/if-run/types/interface.ts.html +0 -112
  174. package/coverage/lcov-report/if-run/types/parameters.ts.html +0 -106
  175. package/coverage/lcov-report/if-run/util/aggregation-helper.ts.html +0 -277
  176. package/coverage/lcov-report/if-run/util/args.ts.html +0 -325
  177. package/coverage/lcov-report/if-run/util/helpers.ts.html +0 -208
  178. package/coverage/lcov-report/if-run/util/index.html +0 -191
  179. package/coverage/lcov-report/if-run/util/json.ts.html +0 -115
  180. package/coverage/lcov-report/if-run/util/log-memoize.ts.html +0 -145
  181. package/coverage/lcov-report/if-run/util/os-checker.ts.html +0 -421
  182. package/coverage/lcov-report/if-run/util/plugin-storage.ts.html +0 -202
  183. package/coverage/lcov-report/index.html +0 -551
  184. package/coverage/lcov-report/lib/aggregate.ts.html +0 -358
  185. package/coverage/lcov-report/lib/compare.ts.html +0 -286
  186. package/coverage/lcov-report/lib/compute.ts.html +0 -436
  187. package/coverage/lcov-report/lib/environment.ts.html +0 -376
  188. package/coverage/lcov-report/lib/exhaust.ts.html +0 -289
  189. package/coverage/lcov-report/lib/index.html +0 -221
  190. package/coverage/lcov-report/lib/initialize.ts.html +0 -430
  191. package/coverage/lcov-report/lib/load.ts.html +0 -268
  192. package/coverage/lcov-report/lib/parameterize.ts.html +0 -316
  193. package/coverage/lcov-report/prettify.css +0 -1
  194. package/coverage/lcov-report/prettify.js +0 -2
  195. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  196. package/coverage/lcov-report/sorter.js +0 -196
  197. package/coverage/lcov-report/types/aggregation.ts.html +0 -94
  198. package/coverage/lcov-report/types/index.html +0 -146
  199. package/coverage/lcov-report/types/interface.ts.html +0 -112
  200. package/coverage/lcov-report/types/parameters.ts.html +0 -106
  201. package/coverage/lcov-report/util/aggregation-helper.ts.html +0 -289
  202. package/coverage/lcov-report/util/args.ts.html +0 -649
  203. package/coverage/lcov-report/util/debug-logger.ts.html +0 -481
  204. package/coverage/lcov-report/util/errors.ts.html +0 -232
  205. package/coverage/lcov-report/util/fs.ts.html +0 -124
  206. package/coverage/lcov-report/util/helpers.ts.html +0 -895
  207. package/coverage/lcov-report/util/index.html +0 -296
  208. package/coverage/lcov-report/util/json.ts.html +0 -115
  209. package/coverage/lcov-report/util/log-memoize.ts.html +0 -145
  210. package/coverage/lcov-report/util/logger.ts.html +0 -151
  211. package/coverage/lcov-report/util/npm.ts.html +0 -499
  212. package/coverage/lcov-report/util/os-checker.ts.html +0 -421
  213. package/coverage/lcov-report/util/plugin-storage.ts.html +0 -202
  214. package/coverage/lcov-report/util/validations.ts.html +0 -544
  215. package/coverage/lcov-report/util/yaml.ts.html +0 -193
  216. package/coverage/lcov.info +0 -3548
  217. package/manifests/regroup.yml +0 -49
  218. package/manifests/test.yml +0 -524
@@ -1,49 +0,0 @@
1
- # start
2
- name: regroup
3
- description: successful path
4
- initialize:
5
- plugins: {}
6
- tree:
7
- children:
8
- my-app:
9
- pipeline:
10
- regroup:
11
- - cloud/region
12
- - cloud/instance-type
13
- children:
14
- uk-west:
15
- children:
16
- A1:
17
- inputs:
18
- - timestamp: 2023-07-06T00:00
19
- duration: 300
20
- cloud/instance-type: A1
21
- cloud/region: uk-west
22
- cpu/utilization: 99
23
- - timestamp: 2023-07-06T05:00
24
- duration: 300
25
- cloud/instance-type: A1
26
- cloud/region: uk-west
27
- cpu/utilization: 23
28
- - timestamp: 2023-07-06T10:00
29
- duration: 300
30
- cloud/instance-type: A1
31
- cloud/region: uk-west
32
- cpu/utilization: 12
33
- B1:
34
- inputs:
35
- - timestamp: 2023-07-06T00:00
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
48
- cloud/region: uk-west
49
- cpu/utilization: 1
@@ -1,524 +0,0 @@
1
- name: nesting
2
- description: a manifest that includes nested child components
3
- tags:
4
- kind: web
5
- complexity: moderate
6
- category: on-premise
7
- aggregation:
8
- metrics:
9
- - carbon
10
- type: "both"
11
- initialize:
12
- plugins:
13
- "interpolate":
14
- method: Interpolation
15
- path: "builtin"
16
- config:
17
- method: linear
18
- x: [0, 10, 50, 100]
19
- y: [0.12, 0.32, 0.75, 1.02]
20
- input-parameter: "cpu/utilization"
21
- output-parameter: "cpu-factor"
22
- parameter-metadata:
23
- inputs:
24
- cpu/utilization:
25
- unit: percentage
26
- description: refers to CPU utilization.
27
- aggregation-method:
28
- time: avg
29
- component: sum
30
- outputs:
31
- cpu-factor:
32
- unit: kWh
33
- description: result of interpolate
34
- aggregation-method:
35
- time: avg
36
- component: avg
37
- "cpu-factor-to-wattage":
38
- method: Multiply
39
- path: builtin
40
- config:
41
- input-parameters: ["cpu-factor", "cpu/thermal-design-power"]
42
- output-parameter: "cpu-wattage"
43
- parameter-metadata:
44
- inputs:
45
- cpu-factor:
46
- unit: kWh
47
- description: result of interpolate
48
- aggregation-method:
49
- time: avg
50
- component: avg
51
- cpu/thermal-design-power:
52
- unit: kWh
53
- description: thermal design power for a processor
54
- aggregation-method:
55
- time: avg
56
- component: avg
57
- outputs:
58
- cpu-wattage:
59
- unit: kWh
60
- description: the energy used by the CPU
61
- aggregation-method:
62
- time: sum
63
- component: sum
64
- "wattage-times-duration":
65
- method: Multiply
66
- path: builtin
67
- config:
68
- input-parameters: ["cpu-wattage", "duration"]
69
- output-parameter: "cpu-wattage-times-duration"
70
- "wattage-to-energy-kwh":
71
- method: Divide
72
- path: "builtin"
73
- config:
74
- numerator: cpu-wattage-times-duration
75
- denominator: 3600000
76
- output: cpu-energy-raw
77
- parameter-metadata:
78
- inputs:
79
- cpu-wattage-times-duration:
80
- unit: kWh
81
- description: CPU wattage multiplied by duration
82
- aggregation-method:
83
- time: sum
84
- component: sum
85
- outputs:
86
- cpu-energy-raw:
87
- unit: kWh
88
- description: Raw energy used by CPU in kWh
89
- aggregation-method:
90
- time: sum
91
- component: sum
92
- "calculate-vcpu-ratio":
93
- method: Divide
94
- path: "builtin"
95
- config:
96
- numerator: vcpus-total
97
- denominator: vcpus-allocated
98
- output: vcpu-ratio
99
- parameter-metadata:
100
- outputs:
101
- vcpu-ratio:
102
- unit: none
103
- description: Ratio of vCPUs
104
- aggregation-method:
105
- time: copy
106
- component: copy
107
- "correct-cpu-energy-for-vcpu-ratio":
108
- method: Divide
109
- path: "builtin"
110
- config:
111
- numerator: cpu-energy-raw
112
- denominator: vcpu-ratio
113
- output: cpu-energy-kwh
114
- sci-embodied:
115
- path: "builtin"
116
- method: SciEmbodied
117
- "operational-carbon":
118
- method: Multiply
119
- path: builtin
120
- config:
121
- input-parameters: ["cpu-energy-kwh", "grid/carbon-intensity"]
122
- output-parameter: "carbon-operational"
123
- parameter-metadata:
124
- inputs:
125
- cpu-energy-kwh:
126
- unit: kWh
127
- description: Corrected CPU energy in kWh
128
- aggregation-method:
129
- time: sum
130
- component: sum
131
- grid/carbon-intensity:
132
- unit: gCO2eq/kWh
133
- description: Carbon intensity for the grid
134
- aggregation-method:
135
- time: avg
136
- component: avg
137
- outputs:
138
- carbon-operational:
139
- unit: gCO2eq
140
- description: Operational carbon footprint
141
- aggregation-method:
142
- time: sum
143
- component: sum
144
- sci:
145
- path: "builtin"
146
- method: Sci
147
- config:
148
- functional-unit: "requests"
149
- parameter-metadata:
150
- inputs:
151
- requests:
152
- unit: none
153
- description: expressed the final SCI value
154
- aggregation-method:
155
- time: sum
156
- component: sum
157
- "sum-carbon":
158
- path: "builtin"
159
- method: Sum
160
- config:
161
- input-parameters:
162
- - carbon-operational
163
- - embodied-carbon
164
- output-parameter: carbon
165
- parameter-metadata:
166
- inputs:
167
- carbon-operational:
168
- description: Operational carbon footprint
169
- unit: gCO2eq
170
- aggregation-method:
171
- time: sum
172
- component: sum
173
- embodied-carbon:
174
- description: Embodied carbon footprint
175
- unit: gCO2eq
176
- aggregation-method:
177
- time: sum
178
- component: sum
179
- outputs:
180
- carbon:
181
- description: Total carbon footprint
182
- unit: gCO2eq
183
- aggregation-method:
184
- time: sum
185
- component: sum
186
- time-sync:
187
- method: TimeSync
188
- path: "builtin"
189
- config:
190
- start-time: '2023-01-01T00:00:00.000Z'
191
- end-time: '2024-01-01T00:00:00.000Z'
192
- interval: 100000000
193
- allow-padding: true
194
- parameter-metadata:
195
- inputs:
196
- timestamp:
197
- unit: RFC3339
198
- description: refers to the time of occurrence of the input
199
- aggregation-method:
200
- time: none
201
- component: none
202
- duration:
203
- unit: seconds
204
- description: refers to the duration of the input
205
- aggregation-method:
206
- time: sum
207
- component: sum
208
- cloud/instance-type:
209
- unit: none
210
- description: type of Cloud Instance name used in the cloud provider APIs
211
- aggregation-method:
212
- time: copy
213
- component: copy
214
- cloud/region:
215
- unit: none
216
- description: region cloud instance
217
- aggregation-method:
218
- time: copy
219
- component: copy
220
- time-reserved:
221
- unit: seconds
222
- description: time reserved for a component
223
- aggregation-method:
224
- time: avg
225
- component: avg
226
- network/energy:
227
- description: "Energy consumed by the Network of the component"
228
- unit: "kWh"
229
- aggregation-method:
230
- time: sum
231
- component: sum
232
-
233
- tree:
234
- children:
235
- child-0:
236
- defaults:
237
- cpu/thermal-design-power: 100
238
- grid/carbon-intensity: 800
239
- device/emissions-embodied: 1533.120 # gCO2eq
240
- time-reserved: 3600 # 1hr in seconds
241
- device/expected-lifespan: 94608000 # 3 years in seconds
242
- vcpus-allocated: 1
243
- vcpus-total: 8
244
- pipeline:
245
- compute:
246
- - interpolate
247
- - cpu-factor-to-wattage
248
- - wattage-times-duration
249
- - wattage-to-energy-kwh
250
- - calculate-vcpu-ratio
251
- - correct-cpu-energy-for-vcpu-ratio
252
- - sci-embodied
253
- - operational-carbon
254
- - sum-carbon
255
- - time-sync
256
- - sci
257
- inputs:
258
- - timestamp: "2023-01-01T00:00:00.000Z"
259
- cloud/instance-type: A1
260
- cloud/region: uk-west
261
- duration: 2629800
262
- cpu/utilization: 50
263
- network/energy: 0.000001
264
- requests: 50
265
- - timestamp: "2023-02-01T00:00:00.000Z"
266
- duration: 2419200
267
- cpu/utilization: 20
268
- cloud/instance-type: A1
269
- cloud/region: uk-west
270
- network/energy: 0.000001
271
- requests: 60
272
- - timestamp: "2023-03-01T00:00:00.000Z"
273
- duration: 2629800
274
- cpu/utilization: 15
275
- cloud/instance-type: A1
276
- cloud/region: uk-west
277
- network/energy: 0.000001
278
- requests: 70
279
- - timestamp: "2023-04-01T00:00:00.000Z"
280
- duration: 2592000
281
- cloud/instance-type: A1
282
- cloud/region: uk-west
283
- cpu/utilization: 15
284
- network/energy: 0.000001
285
- requests: 55
286
- - timestamp: "2023-05-01T00:00:00.000Z"
287
- duration: 2629800
288
- cloud/instance-type: A1
289
- cloud/region: uk-west
290
- cpu/utilization: 15
291
- network/energy: 0.000001
292
- requests: 55
293
- - timestamp: "2023-06-01T00:00:00.000Z"
294
- duration: 2592000
295
- cloud/instance-type: A1
296
- cloud/region: uk-west
297
- cpu/utilization: 15
298
- network/energy: 0.000001
299
- requests: 55
300
- - timestamp: "2023-07-01T00:00:00.000Z"
301
- duration: 2629800
302
- cloud/instance-type: A1
303
- cloud/region: uk-west
304
- cpu/utilization: 15
305
- network/energy: 0.000001
306
- requests: 55
307
- child-1:
308
- defaults:
309
- cpu/thermal-design-power: 100
310
- grid/carbon-intensity: 800
311
- device/emissions-embodied: 1533.120 # gCO2eq
312
- time-reserved: 3600 # 1hr in seconds
313
- device/expected-lifespan: 94608000 # 3 years in seconds
314
- vcpus-allocated: 1
315
- vcpus-total: 8
316
- pipeline:
317
- compute:
318
- - interpolate
319
- - cpu-factor-to-wattage
320
- - wattage-times-duration
321
- - wattage-to-energy-kwh
322
- - calculate-vcpu-ratio
323
- - correct-cpu-energy-for-vcpu-ratio
324
- - sci-embodied
325
- - operational-carbon
326
- - sum-carbon
327
- - time-sync
328
- - sci
329
- inputs:
330
- - timestamp: "2023-01-01T00:00:00.000Z"
331
- cloud/instance-type: A1
332
- cloud/region: uk-west
333
- duration: 2629800
334
- cpu/utilization: 50
335
- network/energy: 0.000001
336
- requests: 50
337
- - timestamp: "2023-02-01T00:00:00.000Z"
338
- duration: 2419200
339
- cpu/utilization: 20
340
- cloud/instance-type: A1
341
- cloud/region: uk-west
342
- network/energy: 0.000001
343
- requests: 60
344
- - timestamp: "2023-03-01T00:00:00.000Z"
345
- duration: 2629800
346
- cpu/utilization: 15
347
- cloud/instance-type: A1
348
- cloud/region: uk-west
349
- network/energy: 0.000001
350
- requests: 70
351
- - timestamp: "2023-04-01T00:00:00.000Z"
352
- duration: 2592000
353
- cloud/instance-type: A1
354
- cloud/region: uk-west
355
- cpu/utilization: 15
356
- network/energy: 0.000001
357
- requests: 55
358
- - timestamp: "2023-05-01T00:00:00.000Z"
359
- duration: 2629800
360
- cloud/instance-type: A1
361
- cloud/region: uk-west
362
- cpu/utilization: 15
363
- network/energy: 0.000001
364
- requests: 55
365
- - timestamp: "2023-06-01T00:00:00.000Z"
366
- duration: 2592000
367
- cloud/instance-type: A1
368
- cloud/region: uk-west
369
- cpu/utilization: 15
370
- network/energy: 0.000001
371
- requests: 55
372
- - timestamp: "2023-07-01T00:00:00.000Z"
373
- duration: 2629800
374
- cloud/instance-type: A1
375
- cloud/region: uk-west
376
- cpu/utilization: 15
377
- network/energy: 0.000001
378
- requests: 55
379
- child-2:
380
- children:
381
- child-2-0:
382
- defaults:
383
- cpu/thermal-design-power: 100
384
- grid/carbon-intensity: 800
385
- device/emissions-embodied: 1533.120 # gCO2eq
386
- time-reserved: 3600 # 1hr in seconds
387
- device/expected-lifespan: 94608000 # 3 years in seconds
388
- vcpus-allocated: 1
389
- vcpus-total: 8
390
- pipeline:
391
- compute:
392
- - interpolate
393
- - cpu-factor-to-wattage
394
- - wattage-times-duration
395
- - wattage-to-energy-kwh
396
- - calculate-vcpu-ratio
397
- - correct-cpu-energy-for-vcpu-ratio
398
- - sci-embodied
399
- - operational-carbon
400
- - sum-carbon
401
- - time-sync
402
- - sci
403
- inputs:
404
- - timestamp: "2023-01-01T00:00:00.000Z"
405
- cloud/instance-type: A1
406
- cloud/region: uk-west
407
- duration: 2629800
408
- cpu/utilization: 50
409
- network/energy: 0.000001
410
- requests: 50
411
- - timestamp: "2023-02-01T00:00:00.000Z"
412
- duration: 2629800
413
- cpu/utilization: 20
414
- cloud/instance-type: A1
415
- cloud/region: uk-west
416
- network/energy: 0.000001
417
- requests: 60
418
- - timestamp: "2023-03-01T00:00:00.000Z"
419
- duration: 2629800
420
- cpu/utilization: 15
421
- cloud/instance-type: A1
422
- cloud/region: uk-west
423
- network/energy: 0.000001
424
- requests: 70
425
- - timestamp: "2023-04-01T00:00:00.000Z"
426
- duration: 2629800
427
- cloud/instance-type: A1
428
- cloud/region: uk-west
429
- cpu/utilization: 15
430
- network/energy: 0.000001
431
- requests: 55
432
- - timestamp: "2023-05-01T00:00:00.000Z"
433
- duration: 2629800
434
- cloud/instance-type: A1
435
- cloud/region: uk-west
436
- cpu/utilization: 15
437
- network/energy: 0.000001
438
- requests: 55
439
- - timestamp: "2023-06-01T00:00:00.000Z"
440
- duration: 2629800
441
- cloud/instance-type: A1
442
- cloud/region: uk-west
443
- cpu/utilization: 15
444
- network/energy: 0.000001
445
- requests: 55
446
- - timestamp: "2023-07-01T00:00:00.000Z"
447
- duration: 2629800
448
- cloud/instance-type: A1
449
- cloud/region: uk-west
450
- cpu/utilization: 15
451
- network/energy: 0.000001
452
- requests: 55
453
- child-2-1:
454
- defaults:
455
- cpu/thermal-design-power: 100
456
- grid/carbon-intensity: 800
457
- device/emissions-embodied: 1533.120 # gCO2eq
458
- time-reserved: 3600 # 1hr in seconds
459
- device/expected-lifespan: 94608000 # 3 years in seconds
460
- vcpus-allocated: 1
461
- vcpus-total: 8
462
- pipeline:
463
- compute:
464
- - interpolate
465
- - cpu-factor-to-wattage
466
- - wattage-times-duration
467
- - wattage-to-energy-kwh
468
- - calculate-vcpu-ratio
469
- - correct-cpu-energy-for-vcpu-ratio
470
- - sci-embodied
471
- - operational-carbon
472
- - sum-carbon
473
- - time-sync
474
- - sci
475
- inputs:
476
- - timestamp: "2023-01-01T00:00:00.000Z"
477
- cloud/instance-type: A1
478
- cloud/region: uk-west
479
- duration: 2629800
480
- cpu/utilization: 50
481
- network/energy: 0.000001
482
- requests: 50
483
- - timestamp: "2023-02-01T00:00:00.000Z"
484
- duration: 2629800
485
- cpu/utilization: 20
486
- cloud/instance-type: A1
487
- cloud/region: uk-west
488
- network/energy: 0.000001
489
- requests: 60
490
- - timestamp: "2023-03-01T00:00:00.000Z"
491
- duration: 2629800
492
- cpu/utilization: 15
493
- cloud/instance-type: A1
494
- cloud/region: uk-west
495
- network/energy: 0.000001
496
- requests: 70
497
- - timestamp: "2023-04-01T00:00:00.000Z"
498
- duration: 2629800
499
- cloud/instance-type: A1
500
- cloud/region: uk-west
501
- cpu/utilization: 15
502
- network/energy: 0.000001
503
- requests: 55
504
- - timestamp: "2023-05-01T00:00:00.000Z"
505
- duration: 2629800
506
- cloud/instance-type: A1
507
- cloud/region: uk-west
508
- cpu/utilization: 15
509
- network/energy: 0.000001
510
- requests: 55
511
- - timestamp: "2023-06-01T00:00:00.000Z"
512
- duration: 2629800
513
- cloud/instance-type: A1
514
- cloud/region: uk-west
515
- cpu/utilization: 15
516
- network/energy: 0.000001
517
- requests: 55
518
- - timestamp: "2023-07-01T00:00:00.000Z"
519
- duration: 2629800
520
- cloud/instance-type: A1
521
- cloud/region: uk-west
522
- cpu/utilization: 15
523
- network/energy: 0.000001
524
- requests: 55