@grnsft/if 0.6.0 → 0.7.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 (370) hide show
  1. package/Refactor-migration-guide.md +68 -82
  2. package/github-processes.md +3 -9
  3. package/manifests/examples/builtins/coefficient/failure-invalid-config-input-param.yml +2 -4
  4. package/manifests/examples/builtins/coefficient/failure-output-param-is-null.yaml +1 -3
  5. package/manifests/examples/builtins/coefficient/success.yml +1 -3
  6. package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +1 -2
  7. package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +3 -4
  8. package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml +2 -3
  9. package/manifests/examples/builtins/csv-lookup/cloud-metadata/success.yml +1 -2
  10. package/manifests/examples/builtins/csv-lookup/region-metadata/failure-missing-column.yml +1 -1
  11. package/manifests/examples/builtins/csv-lookup/region-metadata/failure-missing-output.yml +2 -2
  12. package/manifests/examples/builtins/csv-lookup/region-metadata/success-renaming.yml +1 -1
  13. package/manifests/examples/builtins/csv-lookup/region-metadata/success.yml +1 -1
  14. package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-missing-input-param.yml +1 -2
  15. package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml +1 -2
  16. package/manifests/examples/builtins/csv-lookup/tdp-finder/success.yml +1 -2
  17. package/manifests/examples/builtins/divide/failure-invalid-config-denominator.yml +3 -5
  18. package/manifests/examples/builtins/divide/failure-missing-numerator.yml +2 -4
  19. package/manifests/examples/builtins/divide/success.yml +2 -2
  20. package/manifests/examples/builtins/exponent/success.yml +1 -1
  21. package/manifests/examples/builtins/interpolation/success.yml +1 -1
  22. package/manifests/examples/builtins/mock-observations/failure-invalid-config-cpu-range.yml +2 -2
  23. package/manifests/examples/builtins/mock-observations/failure-invalid-memory-utilization-range.yml +1 -1
  24. package/manifests/examples/builtins/mock-observations/failure-missing-timestamp-from-param.yml +1 -1
  25. package/manifests/examples/builtins/mock-observations/success.yml +1 -1
  26. package/manifests/examples/builtins/multiply/failure-input-parameter-is-missing.yml +1 -1
  27. package/manifests/examples/builtins/multiply/success-with-multiple-inputs.yml +1 -1
  28. package/manifests/examples/builtins/multiply/success.yml +1 -1
  29. package/manifests/examples/builtins/regex/failure-missing-input-param.yml +1 -1
  30. package/manifests/examples/builtins/regex/failure-not-matching-with-regex.yml +2 -2
  31. package/manifests/examples/builtins/regex/success.yml +1 -1
  32. package/manifests/examples/builtins/sci/failure-invalid-config-value.yml +3 -4
  33. package/manifests/examples/builtins/sci/failure-missing-input-param.yml +1 -1
  34. package/manifests/examples/builtins/sci/success.yml +1 -1
  35. package/manifests/examples/builtins/sci-embodied/scenario-1.yml +27 -0
  36. package/manifests/examples/builtins/sci-embodied/scenario-2.yml +37 -0
  37. package/manifests/examples/builtins/sci-embodied/success.yml +13 -0
  38. package/manifests/examples/builtins/shell/failure-invalid-command.yml +2 -2
  39. package/manifests/examples/builtins/shell/success.yml +2 -2
  40. package/manifests/examples/builtins/subtract/success.yml +1 -1
  41. package/manifests/examples/builtins/sum/failure-missing-input-param.yml +2 -2
  42. package/manifests/examples/builtins/sum/failure-missing-output-param.yml +2 -2
  43. package/manifests/examples/builtins/sum/success.yml +1 -1
  44. package/manifests/examples/builtins/time-converter/success.yaml +3 -3
  45. package/manifests/examples/builtins/time-sync/failure-config-start-later-end.yml +10 -12
  46. package/manifests/examples/builtins/time-sync/{failure-missing-global-config.yml → failure-missing-config.yml} +3 -8
  47. package/manifests/examples/builtins/time-sync/success.yml +2 -2
  48. package/manifests/examples/features/regroup/failure-missing-cloud-instance-type.yml +1 -1
  49. package/manifests/examples/features/regroup/success.yml +1 -1
  50. package/manifests/examples/pipelines/generics.yml +8 -8
  51. package/manifests/examples/pipelines/instance-metadata.yml +2 -2
  52. package/manifests/examples/pipelines/nesting.yml +75 -33
  53. package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-aggregate.yaml +166 -122
  54. package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-mocks.yaml +130 -70
  55. package/manifests/examples/pipelines/pipeline-teads-sci.yml +15 -15
  56. package/manifests/examples/pipelines/pipeline-with-aggregate.yml +57 -27
  57. package/manifests/examples/pipelines/pipeline-with-mocks.yml +99 -41
  58. package/manifests/examples/pipelines/scenario-3.yml +1 -1
  59. package/manifests/examples/pipelines/scenario-4.yml +5 -5
  60. package/manifests/examples/pipelines/scenario-5.yml +3 -3
  61. package/manifests/examples/pipelines/sci.yml +12 -12
  62. package/manifests/examples/pipelines/teads-curve.yml +10 -10
  63. package/manifests/examples/pipelines/zeros.yml +23 -23
  64. package/manifests/outputs/bugs/aggregation-error-wrong-metric.yaml +40 -40
  65. package/manifests/outputs/bugs/input-error-missing-duration.yaml +1 -1
  66. package/manifests/outputs/bugs/mock-observations-failure-duration-is-zero.yaml +2 -2
  67. package/manifests/outputs/bugs/pipeline-error-naming-mismatch.yaml +1 -1
  68. package/manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yaml +1 -1
  69. package/manifests/outputs/bugs/pipeline-ordering-error.yaml +6 -6
  70. package/manifests/outputs/builtins/coefficient/failure-invalid-config-input-param.yaml +2 -2
  71. package/manifests/outputs/builtins/coefficient/failure-output-param-is-null.yaml +1 -1
  72. package/manifests/outputs/builtins/coefficient/success.yaml +23 -22
  73. package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +1 -1
  74. package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +76 -0
  75. package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml +22 -21
  76. package/manifests/outputs/builtins/csv-lookup/cloud-metadata/success.yaml +1 -1
  77. package/manifests/outputs/builtins/csv-lookup/region-metadata/failure-missing-column.yaml +1 -1
  78. package/manifests/outputs/builtins/csv-lookup/region-metadata/failure-missing-output.yaml +21 -20
  79. package/manifests/outputs/builtins/csv-lookup/region-metadata/success-renaming.yaml +1 -1
  80. package/manifests/outputs/builtins/csv-lookup/region-metadata/success.yaml +1 -1
  81. package/manifests/outputs/builtins/csv-lookup/tdp-finder/failure-missing-input-param.yaml +1 -1
  82. package/manifests/outputs/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yaml +1 -1
  83. package/manifests/outputs/builtins/csv-lookup/tdp-finder/success.yaml +1 -1
  84. package/manifests/outputs/builtins/divide/failure-invalid-config-denominator.yaml +41 -25
  85. package/manifests/outputs/builtins/divide/failure-missing-numerator.yaml +32 -23
  86. package/manifests/outputs/builtins/divide/success-denominator-equal-zero.yaml +2 -2
  87. package/manifests/outputs/builtins/divide/success.yaml +2 -2
  88. package/manifests/outputs/builtins/exponent/success.yaml +1 -1
  89. package/manifests/outputs/builtins/interpolation/interpolation.yaml +1 -1
  90. package/manifests/outputs/builtins/interpolation/success.yaml +1 -1
  91. package/manifests/outputs/builtins/mock-observations/failure-invalid-config-cpu-range.yaml +3 -3
  92. package/manifests/outputs/builtins/mock-observations/failure-invalid-memory-utilization-range.yaml +2 -2
  93. package/manifests/outputs/builtins/mock-observations/failure-missing-timestamp-from-param.yaml +1 -1
  94. package/manifests/outputs/builtins/mock-observations/success.yaml +49 -190
  95. package/manifests/outputs/builtins/multiply/failure-input-parameter-is-missing.yaml +1 -1
  96. package/manifests/outputs/builtins/multiply/success-with-multiple-inputs.yaml +1 -1
  97. package/manifests/outputs/builtins/multiply/success.yaml +1 -1
  98. package/manifests/outputs/builtins/regex/failure-missing-input-param.yaml +1 -1
  99. package/manifests/outputs/builtins/regex/failure-not-matching-with-regex.yaml +72 -0
  100. package/manifests/outputs/builtins/regex/success.yaml +1 -1
  101. package/manifests/outputs/builtins/sci/failure-invalid-config-value.yaml +22 -23
  102. package/manifests/outputs/builtins/sci/failure-missing-input-param.yaml +1 -1
  103. package/manifests/outputs/builtins/sci/success.yaml +1 -1
  104. package/manifests/outputs/builtins/sci-embodied/failure-invalid-default-emission-value.yaml +22 -26
  105. package/manifests/outputs/builtins/sci-embodied/scenario-1.yaml +100 -0
  106. package/manifests/outputs/builtins/sci-embodied/scenario-2.yaml +101 -0
  107. package/manifests/outputs/builtins/sci-embodied/success.yaml +44 -20
  108. package/manifests/outputs/builtins/shell/failure-invalid-command.yaml +2 -2
  109. package/manifests/outputs/builtins/shell/success.yaml +1 -1
  110. package/manifests/outputs/builtins/subtract/success.yaml +1 -1
  111. package/manifests/outputs/builtins/sum/failure-missing-input-param.yaml +2 -2
  112. package/manifests/outputs/builtins/sum/failure-missing-output-param.yaml +2 -2
  113. package/manifests/outputs/builtins/sum/success.yaml +1 -1
  114. package/manifests/outputs/builtins/time-converter/success.yaml +73 -0
  115. package/manifests/outputs/builtins/time-sync/failure-config-start-later-end.yaml +3 -3
  116. package/manifests/outputs/builtins/time-sync/failure-missing-config.yaml +74 -0
  117. package/manifests/outputs/builtins/time-sync/success.yaml +50 -59
  118. package/manifests/outputs/features/aggregate-failure-invalid-metrics.yaml +1 -1
  119. package/manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yaml +1 -1
  120. package/manifests/outputs/features/aggregate-horizontal.yaml +4 -2
  121. package/manifests/outputs/features/aggregate-vertical.yaml +4 -2
  122. package/manifests/outputs/features/aggregate.yaml +4 -2
  123. package/manifests/outputs/features/regroup/failure-invalid-regroup.yaml +87 -0
  124. package/manifests/outputs/features/regroup/failure-missing-cloud-instance-type.yaml +87 -0
  125. package/manifests/outputs/pipelines/cloud-metadata-divide.yaml +2 -2
  126. package/manifests/outputs/pipelines/generics.yaml +28 -28
  127. package/manifests/outputs/pipelines/instance-metadata.yaml +14 -14
  128. package/manifests/outputs/pipelines/nesting.yaml +713 -486
  129. package/manifests/outputs/pipelines/pipeline-teads-sci.yaml +63 -32
  130. package/manifests/outputs/pipelines/scenario-4.yaml +105 -0
  131. package/manifests/outputs/pipelines/sci.yaml +56 -32
  132. package/manifests/outputs/pipelines/teads-curve.yaml +18 -18
  133. package/manifests/outputs/pipelines/zeros.yaml +27 -27
  134. package/package.json +4 -4
  135. package/src/__mocks__/mock-manifest.yaml +1 -2
  136. package/src/if-env/config/env-template.yml +1 -2
  137. package/src/if-run/builtins/coefficient/README.md +41 -17
  138. package/src/if-run/builtins/copy-param/README.md +28 -8
  139. package/src/if-run/builtins/csv-lookup/README.md +31 -11
  140. package/src/if-run/builtins/divide/README.md +34 -12
  141. package/src/if-run/builtins/exponent/README.md +29 -11
  142. package/src/if-run/builtins/interpolation/README.md +37 -22
  143. package/src/if-run/builtins/mock-observations/README.md +27 -7
  144. package/src/if-run/builtins/multiply/README.md +27 -9
  145. package/src/if-run/builtins/regex/README.md +31 -11
  146. package/src/if-run/builtins/sci/README.md +29 -8
  147. package/src/if-run/builtins/sci-embodied/README.md +76 -75
  148. package/src/if-run/builtins/shell/README.md +15 -7
  149. package/src/if-run/builtins/subtract/README.md +28 -11
  150. package/src/if-run/builtins/sum/README.md +47 -14
  151. package/src/if-run/builtins/time-converter/README.md +8 -8
  152. package/src/if-run/builtins/time-sync/README.md +44 -22
  153. package/.gitmodules +0 -3
  154. package/build/common/config/index.d.ts +0 -1
  155. package/build/common/config/index.js +0 -6
  156. package/build/common/config/strings.d.ts +0 -9
  157. package/build/common/config/strings.js +0 -17
  158. package/build/common/lib/load.d.ts +0 -6
  159. package/build/common/lib/load.js +0 -18
  160. package/build/common/types/manifest.d.ts +0 -13
  161. package/build/common/types/manifest.js +0 -3
  162. package/build/common/util/debug-logger.d.ts +0 -4
  163. package/build/common/util/debug-logger.js +0 -115
  164. package/build/common/util/fs.d.ts +0 -20
  165. package/build/common/util/fs.js +0 -94
  166. package/build/common/util/helpers.d.ts +0 -15
  167. package/build/common/util/helpers.js +0 -80
  168. package/build/common/util/logger.d.ts +0 -5
  169. package/build/common/util/logger.js +0 -39
  170. package/build/common/util/validations.d.ts +0 -367
  171. package/build/common/util/validations.js +0 -141
  172. package/build/common/util/yaml.d.ts +0 -12
  173. package/build/common/util/yaml.js +0 -59
  174. package/build/if-check/config/config.d.ts +0 -6
  175. package/build/if-check/config/config.js +0 -31
  176. package/build/if-check/config/index.d.ts +0 -2
  177. package/build/if-check/config/index.js +0 -8
  178. package/build/if-check/config/strings.d.ts +0 -11
  179. package/build/if-check/config/strings.js +0 -15
  180. package/build/if-check/index.d.ts +0 -2
  181. package/build/if-check/index.js +0 -98
  182. package/build/if-check/types/process-args.d.ts +0 -4
  183. package/build/if-check/types/process-args.js +0 -3
  184. package/build/if-check/util/args.d.ts +0 -10
  185. package/build/if-check/util/args.js +0 -56
  186. package/build/if-check/util/helpers.d.ts +0 -4
  187. package/build/if-check/util/helpers.js +0 -18
  188. package/build/if-check/util/npm.d.ts +0 -4
  189. package/build/if-check/util/npm.js +0 -59
  190. package/build/if-csv/config/config.d.ts +0 -6
  191. package/build/if-csv/config/config.js +0 -36
  192. package/build/if-csv/config/index.d.ts +0 -2
  193. package/build/if-csv/config/index.js +0 -8
  194. package/build/if-csv/config/strings.d.ts +0 -3
  195. package/build/if-csv/config/strings.js +0 -7
  196. package/build/if-csv/index.d.ts +0 -2
  197. package/build/if-csv/index.js +0 -63
  198. package/build/if-csv/types/csv.d.ts +0 -7
  199. package/build/if-csv/types/csv.js +0 -3
  200. package/build/if-csv/types/process-args.d.ts +0 -5
  201. package/build/if-csv/types/process-args.js +0 -3
  202. package/build/if-csv/util/args.d.ts +0 -12
  203. package/build/if-csv/util/args.js +0 -47
  204. package/build/if-csv/util/helpers.d.ts +0 -9
  205. package/build/if-csv/util/helpers.js +0 -95
  206. package/build/if-diff/config/config.d.ts +0 -6
  207. package/build/if-diff/config/config.js +0 -31
  208. package/build/if-diff/config/index.d.ts +0 -2
  209. package/build/if-diff/config/index.js +0 -8
  210. package/build/if-diff/config/strings.d.ts +0 -6
  211. package/build/if-diff/config/strings.js +0 -10
  212. package/build/if-diff/index.d.ts +0 -2
  213. package/build/if-diff/index.js +0 -46
  214. package/build/if-diff/lib/compare.d.ts +0 -10
  215. package/build/if-diff/lib/compare.js +0 -56
  216. package/build/if-diff/lib/load.d.ts +0 -55
  217. package/build/if-diff/lib/load.js +0 -51
  218. package/build/if-diff/types/args.d.ts +0 -5
  219. package/build/if-diff/types/args.js +0 -3
  220. package/build/if-diff/types/compare.d.ts +0 -7
  221. package/build/if-diff/types/compare.js +0 -3
  222. package/build/if-diff/types/process-args.d.ts +0 -4
  223. package/build/if-diff/types/process-args.js +0 -3
  224. package/build/if-diff/util/args.d.ts +0 -5
  225. package/build/if-diff/util/args.js +0 -51
  226. package/build/if-diff/util/helpers.d.ts +0 -13
  227. package/build/if-diff/util/helpers.js +0 -75
  228. package/build/if-env/config/config.d.ts +0 -6
  229. package/build/if-env/config/config.js +0 -37
  230. package/build/if-env/config/index.d.ts +0 -2
  231. package/build/if-env/config/index.js +0 -8
  232. package/build/if-env/config/strings.d.ts +0 -7
  233. package/build/if-env/config/strings.js +0 -11
  234. package/build/if-env/index.d.ts +0 -2
  235. package/build/if-env/index.js +0 -40
  236. package/build/if-env/types/if-env.d.ts +0 -8
  237. package/build/if-env/types/if-env.js +0 -3
  238. package/build/if-env/types/npm.d.ts +0 -9
  239. package/build/if-env/types/npm.js +0 -3
  240. package/build/if-env/types/process-args.d.ts +0 -5
  241. package/build/if-env/types/process-args.js +0 -3
  242. package/build/if-env/util/args.d.ts +0 -12
  243. package/build/if-env/util/args.js +0 -47
  244. package/build/if-env/util/helpers.d.ts +0 -20
  245. package/build/if-env/util/helpers.js +0 -94
  246. package/build/if-env/util/npm.d.ts +0 -24
  247. package/build/if-env/util/npm.js +0 -126
  248. package/build/if-merge/config/config.d.ts +0 -6
  249. package/build/if-merge/config/config.js +0 -43
  250. package/build/if-merge/config/index.d.ts +0 -2
  251. package/build/if-merge/config/index.js +0 -8
  252. package/build/if-merge/config/strings.d.ts +0 -5
  253. package/build/if-merge/config/strings.js +0 -9
  254. package/build/if-merge/index.d.ts +0 -2
  255. package/build/if-merge/index.js +0 -26
  256. package/build/if-merge/types/process-args.d.ts +0 -6
  257. package/build/if-merge/types/process-args.js +0 -3
  258. package/build/if-merge/util/args.d.ts +0 -9
  259. package/build/if-merge/util/args.js +0 -59
  260. package/build/if-merge/util/helpers.d.ts +0 -5
  261. package/build/if-merge/util/helpers.js +0 -83
  262. package/build/if-run/builtins/coefficient/index.d.ts +0 -2
  263. package/build/if-run/builtins/coefficient/index.js +0 -67
  264. package/build/if-run/builtins/copy-param/index.d.ts +0 -2
  265. package/build/if-run/builtins/copy-param/index.js +0 -70
  266. package/build/if-run/builtins/csv-lookup/index.d.ts +0 -2
  267. package/build/if-run/builtins/csv-lookup/index.js +0 -190
  268. package/build/if-run/builtins/divide/index.d.ts +0 -2
  269. package/build/if-run/builtins/divide/index.js +0 -80
  270. package/build/if-run/builtins/exponent/index.d.ts +0 -2
  271. package/build/if-run/builtins/exponent/index.js +0 -60
  272. package/build/if-run/builtins/export-log.d.ts +0 -4
  273. package/build/if-run/builtins/export-log.js +0 -44
  274. package/build/if-run/builtins/export-yaml.d.ts +0 -4
  275. package/build/if-run/builtins/export-yaml.js +0 -30
  276. package/build/if-run/builtins/index.d.ts +0 -16
  277. package/build/if-run/builtins/index.js +0 -36
  278. package/build/if-run/builtins/interpolation/index.d.ts +0 -2
  279. package/build/if-run/builtins/interpolation/index.js +0 -151
  280. package/build/if-run/builtins/mock-observations/helpers/common-generator.d.ts +0 -3
  281. package/build/if-run/builtins/mock-observations/helpers/common-generator.js +0 -29
  282. package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.d.ts +0 -3
  283. package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.js +0 -48
  284. package/build/if-run/builtins/mock-observations/index.d.ts +0 -2
  285. package/build/if-run/builtins/mock-observations/index.js +0 -116
  286. package/build/if-run/builtins/mock-observations/interfaces/index.d.ts +0 -6
  287. package/build/if-run/builtins/mock-observations/interfaces/index.js +0 -3
  288. package/build/if-run/builtins/multiply/index.d.ts +0 -2
  289. package/build/if-run/builtins/multiply/index.js +0 -59
  290. package/build/if-run/builtins/regex/index.d.ts +0 -2
  291. package/build/if-run/builtins/regex/index.js +0 -76
  292. package/build/if-run/builtins/sci/index.d.ts +0 -2
  293. package/build/if-run/builtins/sci/index.js +0 -92
  294. package/build/if-run/builtins/sci-embodied/index.d.ts +0 -2
  295. package/build/if-run/builtins/sci-embodied/index.js +0 -156
  296. package/build/if-run/builtins/shell/index.d.ts +0 -2
  297. package/build/if-run/builtins/shell/index.js +0 -60
  298. package/build/if-run/builtins/subtract/index.d.ts +0 -2
  299. package/build/if-run/builtins/subtract/index.js +0 -61
  300. package/build/if-run/builtins/sum/index.d.ts +0 -2
  301. package/build/if-run/builtins/sum/index.js +0 -66
  302. package/build/if-run/builtins/time-converter/config.d.ts +0 -1
  303. package/build/if-run/builtins/time-converter/config.js +0 -44
  304. package/build/if-run/builtins/time-converter/index.d.ts +0 -2
  305. package/build/if-run/builtins/time-converter/index.js +0 -79
  306. package/build/if-run/builtins/time-sync/index.d.ts +0 -17
  307. package/build/if-run/builtins/time-sync/index.js +0 -339
  308. package/build/if-run/config/config.d.ts +0 -9
  309. package/build/if-run/config/config.js +0 -73
  310. package/build/if-run/config/index.d.ts +0 -2
  311. package/build/if-run/config/index.js +0 -8
  312. package/build/if-run/config/strings.d.ts +0 -64
  313. package/build/if-run/config/strings.js +0 -76
  314. package/build/if-run/index.d.ts +0 -2
  315. package/build/if-run/index.js +0 -63
  316. package/build/if-run/lib/aggregate.d.ts +0 -15
  317. package/build/if-run/lib/aggregate.js +0 -123
  318. package/build/if-run/lib/compute.d.ts +0 -5
  319. package/build/if-run/lib/compute.js +0 -142
  320. package/build/if-run/lib/environment.d.ts +0 -5
  321. package/build/if-run/lib/environment.js +0 -75
  322. package/build/if-run/lib/exhaust.d.ts +0 -7
  323. package/build/if-run/lib/exhaust.js +0 -27
  324. package/build/if-run/lib/explain.d.ts +0 -9
  325. package/build/if-run/lib/explain.js +0 -43
  326. package/build/if-run/lib/initialize.d.ts +0 -6
  327. package/build/if-run/lib/initialize.js +0 -109
  328. package/build/if-run/lib/regroup.d.ts +0 -5
  329. package/build/if-run/lib/regroup.js +0 -64
  330. package/build/if-run/types/aggregation.d.ts +0 -5
  331. package/build/if-run/types/aggregation.js +0 -6
  332. package/build/if-run/types/compute.d.ts +0 -29
  333. package/build/if-run/types/compute.js +0 -3
  334. package/build/if-run/types/environment.d.ts +0 -18
  335. package/build/if-run/types/environment.js +0 -3
  336. package/build/if-run/types/exhaust-plugin-interface.d.ts +0 -7
  337. package/build/if-run/types/exhaust-plugin-interface.js +0 -3
  338. package/build/if-run/types/explain.d.ts +0 -10
  339. package/build/if-run/types/explain.js +0 -3
  340. package/build/if-run/types/interface.d.ts +0 -3
  341. package/build/if-run/types/interface.js +0 -6
  342. package/build/if-run/types/plugin-storage.d.ts +0 -6
  343. package/build/if-run/types/plugin-storage.js +0 -3
  344. package/build/if-run/types/process-args.d.ts +0 -25
  345. package/build/if-run/types/process-args.js +0 -3
  346. package/build/if-run/types/time-sync.d.ts +0 -17
  347. package/build/if-run/types/time-sync.js +0 -3
  348. package/build/if-run/util/aggregation-helper.d.ts +0 -7
  349. package/build/if-run/util/aggregation-helper.js +0 -47
  350. package/build/if-run/util/args.d.ts +0 -9
  351. package/build/if-run/util/args.js +0 -60
  352. package/build/if-run/util/helpers.d.ts +0 -14
  353. package/build/if-run/util/helpers.js +0 -57
  354. package/build/if-run/util/log-memoize.d.ts +0 -3
  355. package/build/if-run/util/log-memoize.js +0 -19
  356. package/build/if-run/util/os-checker.d.ts +0 -7
  357. package/build/if-run/util/os-checker.js +0 -97
  358. package/build/if-run/util/plugin-storage.d.ts +0 -14
  359. package/build/if-run/util/plugin-storage.js +0 -34
  360. package/grafana/IF_GRAFANA_SETUP.md +0 -71
  361. package/grafana/if_grafana_config.json +0 -370
  362. package/manifests/examples/builtins/divide/failure-denominator-equal-zero.yml +0 -38
  363. package/manifests/examples/builtins/interpolation/interpolation.yml +0 -24
  364. package/manifests/examples/builtins/sci-embodied/failure-invalid-default-emission-value.yml +0 -23
  365. package/manifests/examples/builtins/sci-embodied/failure-missing-expected-lifespan.yml +0 -23
  366. package/manifests/examples/pipelines/scenario-1.yml +0 -34
  367. package/manifests/examples/pipelines/scenario-2.yml +0 -52
  368. package/manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml +0 -72
  369. package/manifests/outputs/builtins/sci-embodied/failure-missing-expected-lifespan.yaml +0 -69
  370. package/manifests/outputs/pipelines/mock-obs-time-sync.yaml +0 -449
@@ -105,10 +105,10 @@ There have also been some changes to the structure of manifest files. Some of th
105
105
  method: SciEmbodied
106
106
  ```
107
107
 
108
- - **Global config**
109
- We have introduced the concept of global config to the plugins. This is truly global configuration data that should be kept constant regardless of where the plugin is invoked across the manifest file.
108
+ - **Config**
109
+ We have introduced the concept of config to the plugins. This is truly configuration data that should be kept constant regardless of where the plugin is invoked across the manifest file.
110
110
 
111
- A good example is the `interpolation` method to use in the Teads curve plugin - this is not expected to vary from component to component and can therefore be defined in global config. The plugin code itself must expect the global config. Then, the config can be passed in the `Initialize` block, for example:
111
+ A good example is the `interpolation` method to use in the Teads curve plugin - this is not expected to vary from component to component and can therefore be defined in config. The plugin code itself must expect the config. Then, the config can be passed in the `Initialize` block, for example:
112
112
 
113
113
  ```yaml
114
114
  initialize:
@@ -116,34 +116,13 @@ There have also been some changes to the structure of manifest files. Some of th
116
116
  'time-sync':
117
117
  method: TimeSync
118
118
  path: 'builtin'
119
- global-config:
119
+ config:
120
120
  start-time: '2023-12-12T00:00:00.000Z'
121
121
  end-time: '2023-12-12T00:01:00.000Z'
122
122
  interval: 5
123
123
  allow-padding: true
124
124
  ```
125
125
 
126
- - **Node level config**
127
-
128
- We have also introduced the concept of node-level config. This is designed for pluin configuration that might vary between components in the tree. For example, for each child in the tree you might wish to use the `regroup` feature to group the outputs according to a different set of keys.
129
-
130
- ```yaml
131
- tree:
132
- children:
133
- child-1:
134
- pipeline:
135
- compute:
136
- - teads-curve
137
- - sci-e
138
- - sci-embodied
139
- - sci-o
140
- - time-sync
141
- - sci
142
- regroup:
143
- - region
144
- - cloud/instance-type
145
- ```
146
-
147
126
  - **Defaults**
148
127
 
149
128
  We have also introduced the concept of `defaults`. This is a section in each component's definition that can be used to provide fallbacks for missing input data. For example, perhaps you have a value arriving from an external API that should be present in every observation in your inputs array, but for soem reason the API fails to deliver a value for some timestamps. In this case, IF would fallback to the value provided for that metric in the `defaults` section of the manifest for that component.
@@ -178,7 +157,7 @@ There have also been some changes to the structure of manifest files. Some of th
178
157
 
179
158
  Technically time-sync is not a new feature as it was present in IF before the refactor, but there are some tweaks to how the plugin is configured that are worth explaining here. Time sync snaps all input arrays across an entire graph to a common time grid.
180
159
 
181
- This means you have to define a global start time, end time and interval to use everywhere. There is also a boolean to toggle whether you should allow the time sync model to pad the start and end of your time series with zeroes. You should default to `true` unless you have a specific reason not to. In the refactored IF we expect this information to be provided in global config, as follows:
160
+ This means you have to define a start time, end time and interval to use everywhere. There is also a boolean to toggle whether you should allow the time sync model to pad the start and end of your time series with zeroes. You should default to `true` unless you have a specific reason not to. In the refactored IF we expect this information to be provided in config, as follows:
182
161
 
183
162
  ```yaml
184
163
  initialize:
@@ -186,7 +165,7 @@ initialize:
186
165
  'time-sync':
187
166
  method: TimeSync
188
167
  path: 'builtin'
189
- global-config:
168
+ config:
190
169
  start-time: '2023-12-12T00:00:00.000Z'
191
170
  end-time: '2023-12-12T00:01:00.000Z'
192
171
  interval: 5
@@ -220,68 +199,75 @@ Details tbc...
220
199
 
221
200
  ## Plugins
222
201
 
223
- The plugins themselves require some changes to keep them compatible with the refactored IF.
202
+ Plugins require some modifications to remain compatible with the refactored IF interface.
224
203
 
225
- Instead of the old class-based model, plugins are now functions. They conform to the following interface:
204
+ Each plugin follows the `PluginFactory` interface, which is a higher-order function that accepts a `params` object of type `PluginFactoryParams`. This function returns another function (the inner function), which handles the plugin’s `config`, `parametersMetadata`, and `mapping`.
226
205
 
227
206
  ```ts
228
- export type PluginInterface = {
229
- execute: (
230
- inputs: PluginParams[],
231
- config?: Record<string, any>
232
- ) => PluginParams[];
233
- metadata: {
234
- kind: string;
235
- };
236
- [key: string]: any;
237
- };
207
+ export const PluginFactory =
208
+ (params: PluginFactoryParams) =>
209
+ (
210
+ config: ConfigParams = {},
211
+ parametersMetadata: PluginParametersMetadata,
212
+ mapping: MappingParams
213
+ ) => ({
214
+ metadata: {
215
+ inputs: {...params.metadata.inputs, ...parametersMetadata?.inputs},
216
+ outputs: parametersMetadata?.outputs || params.metadata.outputs,
217
+ },
218
+ execute: async (inputs: PluginParams[]) => {
219
+ // Generic plugin functionality goes here
220
+ // E.g., mapping, arithmetic operations, validation
221
+ // Process inputs and mapping logic
222
+ });
223
+ })
238
224
  ```
239
225
 
240
- The plugin still requires an execute function. This is where you implement the plugin logic.
226
+ Inner Function Parameters:
227
+
228
+ - `config`: This is of type `ConfigParams` and has a default value of an empty object ({}). This might hold configuration settings for the plugin.
229
+ - `parametersMetadata`: A `PluginParametersMetadata` object that describes the metadata for the plugin’s parameters.
230
+ - `mapping`: A `MappingParams` object, describing parameters are mapped.
231
+
232
+ Implementation Function:
241
233
 
242
- Here's a minimal example for a plugin that sums some inputs defined in global config - see inline comments for some important notes:
234
+ The plugin requires an `implementation` function, where the actual plugin logic is defined.
235
+ Here’s a minimal example of a plugin that sums inputs as defined in the config. See the inline comments for further clarification.
243
236
 
244
237
  ```ts
245
- // Here's the function definition - notice that global config is passed in here!
246
- export const Sum = (globalConfig: SumConfig): PluginInterface => {
247
- const inputParameters = globalConfig['input-parameters'] || [];
248
- const outputParameter = globalConfig['output-parameter'];
249
-
250
- // we also return metadata now too - you can add more or just use this default
251
- const metadata = {
252
- kind: 'execute',
253
- };
254
-
255
- /**
256
- * Calculate the sum of the input metrics for each timestamp.
257
- */
258
- const execute = async (inputs: PluginParams[]): Promise<PluginParams[]> => {
259
- inputs.map(input => {
260
- return calculateSum(input, inputParameters, outputParameter);
238
+ // Here's the function definition!
239
+ export const Sum = PluginFactory({
240
+ configValidation: z.object({
241
+ 'input-parameters': z.array(z.string()),
242
+ 'output-parameter': z.string().min(1),
243
+ }),
244
+ inputValidation: (input: PluginParams, config: ConfigParams) => {
245
+ return validate(validationSchema, inputData);
246
+ },
247
+ implementation: async (inputs: PluginParams[], config: ConfigParams) => {
248
+ const {
249
+ 'input-parameters': inputParameters,
250
+ 'output-parameter': outputParameter,
251
+ } = config;
252
+
253
+ return inputs.map(input => {
254
+ const calculatedResult = calculateSum(input, inputParameters);
255
+
256
+ return {
257
+ ...input,
258
+ [outputParameter]: calculatedResult,
259
+ };
261
260
  });
262
- return inputs;
263
- };
264
-
265
- /**
266
- * Calculates the sum of the energy components.
267
- */
268
- const calculateSum = (
269
- input: PluginParams,
270
- inputParameters: string[],
271
- outputParameter: string
272
- ) => {
273
- input[outputParameter] = inputParameters.reduce(
274
- (accumulator, metricToSum) => {
275
- return accumulator + input[metricToSum];
276
- },
277
- 0
278
- );
279
- };
280
-
281
- // return the metadata and the execute function
282
- return {
283
- metadata,
284
- execute,
285
- };
286
- };
261
+ },
262
+ allowArithmeticExpressions: [],
263
+ });
264
+
265
+ /**
266
+ * Calculates the sum of the energy components.
267
+ */
268
+ const calculateSum = (input: PluginParams, inputParameters: string[]) =>
269
+ inputParameters.reduce(
270
+ (accumulator, metricToSum) => accumulator + input[metricToSum],
271
+ 0
272
+ );
287
273
  ```
@@ -3,24 +3,18 @@
3
3
 
4
4
  - [`if`](https://github.com/Green-Software-Foundation/if)
5
5
  - source code for the IF
6
+ - [`if-core`](https://github.com/Green-Software-Foundation/if-core)
7
+ - helper types, interfaces and utilities for IF and plugin development
6
8
  - [`if-plugins`](https://github.com/Green-Software-Foundation/if-plugins) **DEPRECATED**
7
9
  - source code for standard library of plugins
8
10
  - IF core team commit to maintaining these plugins
9
- - [`if-unofficial-plugins`](https://github.com/Green-Software-Foundation/if-unofficial-plugins)
11
+ - [`if-unofficial-plugins`](https://github.com/Green-Software-Foundation/if-unofficial-plugins) **DEPRECATED**
10
12
  - source code for plugins relying on third-party data/APIs
11
13
  - intended to be deprecated and removed in mid-term future
12
14
  - plugins in this repo should be handed over to relevant organizations to maintain
13
15
  - [`if-plugin-template`](https://github.com/Green-Software-Foundation/if-plugin-template)
14
16
  - template for new plugins
15
17
  - intended for builders to bootstrap IF-compatible plugin development
16
- - [`if-standards`](https://github.com/Green-Software-Foundation/if-standards)
17
- - not currently used, but intended to be the home of params.ts
18
- - will have a dedicated discussion board and governance to set IF standards
19
- - [`if-exhaust plugins`](https://github.com/Green-Software-Foundation/if-exhaust-plugins)
20
- - not currently used
21
- - intended to become a separate repo just for exhaust plugins
22
- - requires strict rules from if
23
-
24
18
 
25
19
  ## Branch names and purposes
26
20
 
@@ -1,12 +1,12 @@
1
1
  name: coefficient-demo
2
- description: failure with ivalid `global-config.input-parameter`
2
+ description: failure with ivalid `config.input-parameter`
3
3
  tags:
4
4
  initialize:
5
5
  plugins:
6
6
  coefficient:
7
7
  method: Coefficient
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  input-parameter: 4
11
11
  coefficient: 3
12
12
  output-parameter: "carbon-product"
@@ -16,8 +16,6 @@ tree:
16
16
  pipeline:
17
17
  compute:
18
18
  - coefficient
19
- config:
20
- sum:
21
19
  inputs:
22
20
  - timestamp: 2023-08-06T00:00
23
21
  duration: 3600
@@ -6,7 +6,7 @@ initialize:
6
6
  coefficient:
7
7
  method: Coefficient
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  input-parameter: "carbon"
11
11
  coefficient: 3
12
12
  output-parameter:
@@ -16,8 +16,6 @@ tree:
16
16
  pipeline:
17
17
  compute:
18
18
  - coefficient
19
- config:
20
- sum:
21
19
  inputs:
22
20
  - timestamp: 2023-08-06T00:00
23
21
  duration: 3600
@@ -6,7 +6,7 @@ initialize:
6
6
  coefficient:
7
7
  method: Coefficient
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  input-parameter: "carbon"
11
11
  coefficient: 3
12
12
  output-parameter: "carbon-product"
@@ -16,8 +16,6 @@ tree:
16
16
  pipeline:
17
17
  compute:
18
18
  - coefficient
19
- config:
20
- sum:
21
19
  inputs:
22
20
  - timestamp: 2023-08-06T00:00
23
21
  duration: 3600
@@ -6,7 +6,7 @@ initialize:
6
6
  cloud-metadata:
7
7
  path: builtin
8
8
  method: CSVLookup
9
- global-config:
9
+ config:
10
10
  filepath: >-
11
11
  https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
12
  query:
@@ -18,7 +18,6 @@ tree:
18
18
  pipeline:
19
19
  compute:
20
20
  - cloud-metadata
21
- config:
22
21
  inputs:
23
22
  - timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
24
23
  cloud/vendor: aws
@@ -6,19 +6,18 @@ initialize:
6
6
  cloud-metadata:
7
7
  path: builtin
8
8
  method: CSVLookup
9
- global-config:
9
+ config:
10
10
  filepath: >-
11
11
  https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
12
  query:
13
- instance-class: cloud/instance-type
14
- output: ["cpu-cores-utilized", "vcpus-allocated"]
13
+ instance-class: cloud/vendor
14
+ output: ["cpu-cores-utilized", "cloud/instance-type"]
15
15
  tree:
16
16
  children:
17
17
  child:
18
18
  pipeline:
19
19
  compute:
20
20
  - cloud-metadata
21
- config:
22
21
  inputs:
23
22
  - timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
24
23
  cloud/vendor: gcp
@@ -6,11 +6,11 @@ initialize:
6
6
  cloud-metadata:
7
7
  path: builtin
8
8
  method: CSVLookup
9
- global-config:
9
+ config:
10
10
  filepath: >-
11
11
  https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
12
  query:
13
- instance-class: cloud/instance-type
13
+ instance-class: cloud/vendor
14
14
  output: ["cpu-cores-utilized", "vcpus-allocated"]
15
15
  tree:
16
16
  children:
@@ -18,7 +18,6 @@ tree:
18
18
  pipeline:
19
19
  compute:
20
20
  - cloud-metadata
21
- config:
22
21
  inputs:
23
22
  - timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
24
23
  #cloud/vendor: aws
@@ -6,7 +6,7 @@ initialize:
6
6
  cloud-metadata:
7
7
  path: builtin
8
8
  method: CSVLookup
9
- global-config:
9
+ config:
10
10
  filepath: >-
11
11
  https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
12
  query:
@@ -18,7 +18,6 @@ tree:
18
18
  pipeline:
19
19
  compute:
20
20
  - cloud-metadata
21
- config:
22
21
  inputs:
23
22
  - timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
24
23
  cloud/vendor: aws
@@ -6,7 +6,7 @@ initialize:
6
6
  cloud-metadata:
7
7
  method: CSVLookup
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
11
11
  query:
12
12
  cloud-provider: "nonexistant"
@@ -6,12 +6,12 @@ initialize:
6
6
  cloud-metadata:
7
7
  method: CSVLookup
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
11
11
  query:
12
12
  cloud-provider: "cloud/provider"
13
13
  cloud-region: "cloud/region"
14
- output: "*"
14
+ output:
15
15
  tree:
16
16
  children:
17
17
  child:
@@ -6,7 +6,7 @@ initialize:
6
6
  cloud-metadata:
7
7
  method: CSVLookup
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
11
11
  query:
12
12
  cloud-provider: "cloud/provider"
@@ -6,7 +6,7 @@ initialize:
6
6
  cloud-metadata:
7
7
  method: CSVLookup
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
11
11
  query:
12
12
  cloud-provider: "cloud/provider"
@@ -6,7 +6,7 @@ initialize:
6
6
  tdp-finder:
7
7
  method: CSVLookup
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/tdp-data-1.csv
11
11
  query:
12
12
  name: physical-processor
@@ -17,7 +17,6 @@ tree:
17
17
  pipeline:
18
18
  compute:
19
19
  - tdp-finder
20
- config:
21
20
  inputs:
22
21
  - timestamp: 2023-07-06T00:00
23
22
  duration: 300
@@ -6,7 +6,7 @@ initialize:
6
6
  tdp-finder:
7
7
  method: CSVLookup
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/tdp-data-1.csv
11
11
  query:
12
12
  name: physical-processor
@@ -17,7 +17,6 @@ tree:
17
17
  pipeline:
18
18
  compute:
19
19
  - tdp-finder
20
- config:
21
20
  inputs:
22
21
  - timestamp: 2023-07-06T00:00
23
22
  duration: 300
@@ -6,7 +6,7 @@ initialize:
6
6
  tdp-finder:
7
7
  method: CSVLookup
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/tdp-data-1.csv
11
11
  query:
12
12
  name: physical-processor
@@ -17,7 +17,6 @@ tree:
17
17
  pipeline:
18
18
  compute:
19
19
  - tdp-finder
20
- config:
21
20
  inputs:
22
21
  - timestamp: 2023-07-06T00:00
23
22
  duration: 300
@@ -1,12 +1,12 @@
1
1
  name: divide
2
- description: failure when `global-config.denominator` is string
2
+ description: failure when `config.denominator` is string
3
3
  tags:
4
4
  initialize:
5
5
  plugins:
6
6
  cloud-metadata:
7
7
  path: builtin
8
8
  method: CSVLookup
9
- global-config:
9
+ config:
10
10
  filepath: >-
11
11
  https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
12
  query:
@@ -15,7 +15,7 @@ initialize:
15
15
  divide:
16
16
  method: Divide
17
17
  path: "builtin"
18
- global-config:
18
+ config:
19
19
  numerator: vcpus-allocated
20
20
  denominator: "vcpus"
21
21
  output: cpu/number-cores
@@ -26,8 +26,6 @@ tree:
26
26
  compute:
27
27
  - cloud-metadata
28
28
  - divide
29
- config:
30
- divide:
31
29
  defaults:
32
30
  cloud/vendor: aws
33
31
  cloud/instance-type: m5n.large
@@ -6,7 +6,7 @@ initialize:
6
6
  cloud-metadata:
7
7
  path: builtin
8
8
  method: CSVLookup
9
- global-config:
9
+ config:
10
10
  filepath: >-
11
11
  https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
12
  query:
@@ -15,7 +15,7 @@ initialize:
15
15
  divide:
16
16
  method: Divide
17
17
  path: "builtin"
18
- global-config:
18
+ config:
19
19
  #numerator: vcpus-allocated
20
20
  denominator: 2
21
21
  output: cpu/number-cores
@@ -26,8 +26,6 @@ tree:
26
26
  compute:
27
27
  - cloud-metadata
28
28
  - divide
29
- config:
30
- divide:
31
29
  defaults:
32
30
  cloud/vendor: aws
33
31
  cloud/instance-type: m5n.large
@@ -6,7 +6,7 @@ initialize:
6
6
  cloud-metadata:
7
7
  path: builtin
8
8
  method: CSVLookup
9
- global-config:
9
+ config:
10
10
  filepath: >-
11
11
  https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
12
12
  query:
@@ -15,7 +15,7 @@ initialize:
15
15
  divide:
16
16
  method: Divide
17
17
  path: "builtin"
18
- global-config:
18
+ config:
19
19
  numerator: vcpus-allocated
20
20
  denominator: 2
21
21
  output: cpu/number-cores
@@ -6,7 +6,7 @@ initialize:
6
6
  exponent:
7
7
  method: Exponent
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  input-parameter: "cpu/energy"
11
11
  exponent: 2
12
12
  output-parameter: "energy"
@@ -6,7 +6,7 @@ initialize:
6
6
  interpolation:
7
7
  method: Interpolation
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  method: linear
11
11
  x: [0, 10, 50, 100]
12
12
  y: [0.12, 0.32, 0.75, 1.02]
@@ -1,5 +1,5 @@
1
1
  name: mock-observation-demo
2
- description: failure with `global-config->generators->randint->cpu/utilization->min` is greater than `max`
2
+ description: failure with `config->generators->randint->cpu/utilization->min` is greater than `max`
3
3
  tags:
4
4
  initialize:
5
5
  plugins:
@@ -7,7 +7,7 @@ initialize:
7
7
  kind: plugin
8
8
  method: MockObservations
9
9
  path: "builtin"
10
- global-config:
10
+ config:
11
11
  timestamp-from: 2023-07-06T00:00
12
12
  timestamp-to: 2023-07-06T00:10
13
13
  duration: 60
@@ -7,7 +7,7 @@ initialize:
7
7
  kind: plugin
8
8
  method: MockObservations
9
9
  path: "builtin"
10
- global-config:
10
+ config:
11
11
  timestamp-from: 2023-07-06T00:00
12
12
  timestamp-to: 2023-07-06T00:10
13
13
  duration: 60
@@ -7,7 +7,7 @@ initialize:
7
7
  kind: plugin
8
8
  method: MockObservations
9
9
  path: "builtin"
10
- global-config:
10
+ config:
11
11
  #timestamp-from: 2023-07-06T00:00
12
12
  timestamp-to: 2023-07-06T00:10
13
13
  duration: 60
@@ -7,7 +7,7 @@ initialize:
7
7
  kind: plugin
8
8
  method: MockObservations
9
9
  path: "builtin"
10
- global-config:
10
+ config:
11
11
  timestamp-from: 2023-07-06T00:00
12
12
  timestamp-to: 2023-07-06T00:10
13
13
  duration: 60
@@ -6,7 +6,7 @@ initialize:
6
6
  multiply:
7
7
  method: Multiply
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  input-parameters: ["cpu/energy", "network/energy"]
11
11
  output-parameter: "energy-product"
12
12
  tree:
@@ -6,7 +6,7 @@ initialize:
6
6
  multiply:
7
7
  method: Multiply
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  input-parameters: ["cpu/energy", "network/energy"]
11
11
  output-parameter: "energy-product"
12
12
  tree:
@@ -7,7 +7,7 @@ initialize:
7
7
  multiply:
8
8
  method: Multiply
9
9
  path: builtin
10
- global-config:
10
+ config:
11
11
  input-parameters: ["cpu/energy", "network/energy"]
12
12
  output-parameter: "energy-product"
13
13
  tree:
@@ -6,7 +6,7 @@ initialize:
6
6
  regex:
7
7
  method: Regex
8
8
  path: "builtin"
9
- global-config:
9
+ config:
10
10
  parameter: physical-processor
11
11
  match: ^(.*),
12
12
  output: cpu/name