@grnsft/if 0.5.0 → 0.6.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.
- package/README.md +5 -17
- package/Refactor-migration-guide.md +110 -164
- package/build/common/config/index.d.ts +1 -0
- package/build/common/config/index.js +6 -0
- package/build/common/config/strings.d.ts +8 -0
- package/build/common/config/strings.js +16 -0
- package/build/common/lib/load.d.ts +6 -0
- package/build/common/lib/load.js +18 -0
- package/build/{types → common/types}/manifest.d.ts +4 -1
- package/build/common/types/manifest.js +3 -0
- package/build/common/util/debug-logger.js +115 -0
- package/build/common/util/fs.js +94 -0
- package/build/common/util/helpers.d.ts +15 -0
- package/build/common/util/helpers.js +80 -0
- package/build/{util → common/util}/logger.js +1 -1
- package/build/{util → common/util}/validations.d.ts +149 -47
- package/build/common/util/validations.js +141 -0
- package/build/common/util/yaml.js +59 -0
- package/build/if-check/config/config.d.ts +6 -0
- package/build/if-check/config/config.js +31 -0
- package/build/{config → if-check/config}/index.d.ts +0 -1
- package/build/if-check/config/index.js +8 -0
- package/build/if-check/config/strings.d.ts +12 -0
- package/build/if-check/config/strings.js +16 -0
- package/build/if-check/index.js +98 -0
- package/build/if-check/types/process-args.d.ts +4 -0
- package/build/if-check/types/process-args.js +3 -0
- package/build/if-check/util/args.d.ts +10 -0
- package/build/if-check/util/args.js +56 -0
- package/build/if-check/util/helpers.d.ts +4 -0
- package/build/if-check/util/helpers.js +18 -0
- package/build/if-check/util/npm.d.ts +4 -0
- package/build/if-check/util/npm.js +59 -0
- package/build/if-csv/config/config.d.ts +6 -0
- package/build/if-csv/config/config.js +37 -0
- package/build/if-csv/config/index.d.ts +2 -0
- package/build/if-csv/config/index.js +8 -0
- package/build/if-csv/config/strings.d.ts +4 -0
- package/build/if-csv/config/strings.js +8 -0
- package/build/if-csv/index.js +63 -0
- package/build/if-csv/types/csv.d.ts +7 -0
- package/build/if-csv/types/csv.js +3 -0
- package/build/if-csv/types/process-args.d.ts +5 -0
- package/build/if-csv/types/process-args.js +3 -0
- package/build/if-csv/util/args.d.ts +12 -0
- package/build/if-csv/util/args.js +51 -0
- package/build/if-csv/util/helpers.d.ts +9 -0
- package/build/if-csv/util/helpers.js +95 -0
- package/build/if-diff/config/config.d.ts +6 -0
- package/build/if-diff/config/config.js +31 -0
- package/build/if-diff/config/index.d.ts +2 -0
- package/build/if-diff/config/index.js +8 -0
- package/build/if-diff/config/strings.d.ts +6 -0
- package/build/if-diff/config/strings.js +10 -0
- package/build/if-diff/index.js +46 -0
- package/build/{lib → if-diff/lib}/compare.d.ts +1 -1
- package/build/if-diff/lib/compare.js +56 -0
- package/build/{lib → if-diff/lib}/load.d.ts +16 -18
- package/build/if-diff/lib/load.js +51 -0
- package/build/if-diff/types/args.js +3 -0
- package/build/if-diff/types/compare.js +3 -0
- package/build/if-diff/types/process-args.d.ts +4 -0
- package/build/if-diff/types/process-args.js +3 -0
- package/build/if-diff/util/args.d.ts +5 -0
- package/build/if-diff/util/args.js +51 -0
- package/build/if-diff/util/helpers.d.ts +13 -0
- package/build/if-diff/util/helpers.js +75 -0
- package/build/if-env/config/config.d.ts +6 -0
- package/build/if-env/config/config.js +37 -0
- package/build/if-env/config/index.d.ts +2 -0
- package/build/if-env/config/index.js +8 -0
- package/build/if-env/config/strings.d.ts +7 -0
- package/build/if-env/config/strings.js +11 -0
- package/build/if-env/index.js +40 -0
- package/build/if-env/types/if-env.js +3 -0
- package/build/if-env/types/npm.js +3 -0
- package/build/if-env/types/process-args.d.ts +5 -0
- package/build/if-env/types/process-args.js +3 -0
- package/build/if-env/util/args.d.ts +12 -0
- package/build/if-env/util/args.js +47 -0
- package/build/if-env/util/helpers.d.ts +20 -0
- package/build/if-env/util/helpers.js +94 -0
- package/build/{util → if-env/util}/npm.d.ts +0 -4
- package/build/if-env/util/npm.js +126 -0
- package/build/if-run/builtins/coefficient/index.d.ts +2 -0
- package/build/if-run/builtins/coefficient/index.js +67 -0
- package/build/if-run/builtins/copy-param/index.d.ts +2 -0
- package/build/if-run/builtins/copy-param/index.js +70 -0
- package/build/if-run/builtins/csv-lookup/index.d.ts +2 -0
- package/build/if-run/builtins/csv-lookup/index.js +190 -0
- package/build/if-run/builtins/divide/index.d.ts +2 -0
- package/build/if-run/builtins/divide/index.js +80 -0
- package/build/if-run/builtins/exponent/index.d.ts +2 -0
- package/build/if-run/builtins/exponent/index.js +60 -0
- package/build/{builtins → if-run/builtins}/export-log.d.ts +1 -1
- package/build/{builtins → if-run/builtins}/export-log.js +1 -1
- package/build/{builtins → if-run/builtins}/export-yaml.d.ts +1 -1
- package/build/if-run/builtins/export-yaml.js +30 -0
- package/build/{builtins → if-run/builtins}/index.d.ts +1 -2
- package/build/{builtins → if-run/builtins}/index.js +4 -6
- package/build/if-run/builtins/interpolation/index.d.ts +2 -0
- package/build/if-run/builtins/interpolation/index.js +151 -0
- package/build/if-run/builtins/mock-observations/helpers/common-generator.js +29 -0
- package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.js +48 -0
- package/build/if-run/builtins/mock-observations/index.d.ts +2 -0
- package/build/if-run/builtins/mock-observations/index.js +116 -0
- package/build/if-run/builtins/mock-observations/interfaces/index.js +3 -0
- package/build/if-run/builtins/multiply/index.d.ts +2 -0
- package/build/if-run/builtins/multiply/index.js +59 -0
- package/build/if-run/builtins/regex/index.d.ts +2 -0
- package/build/if-run/builtins/regex/index.js +76 -0
- package/build/if-run/builtins/sci/config.js +44 -0
- package/build/if-run/builtins/sci/index.d.ts +2 -0
- package/build/if-run/builtins/sci/index.js +92 -0
- package/build/if-run/builtins/sci-embodied/index.d.ts +2 -0
- package/build/if-run/builtins/sci-embodied/index.js +156 -0
- package/build/if-run/builtins/shell/index.d.ts +2 -0
- package/build/if-run/builtins/shell/index.js +60 -0
- package/build/if-run/builtins/subtract/index.d.ts +2 -0
- package/build/if-run/builtins/subtract/index.js +61 -0
- package/build/if-run/builtins/sum/index.d.ts +2 -0
- package/build/if-run/builtins/sum/index.js +66 -0
- package/build/if-run/builtins/time-sync/index.d.ts +17 -0
- package/build/if-run/builtins/time-sync/index.js +339 -0
- package/build/if-run/config/config.d.ts +9 -0
- package/build/if-run/config/config.js +73 -0
- package/build/if-run/config/index.d.ts +2 -0
- package/build/if-run/config/index.js +8 -0
- package/build/{config → if-run/config}/strings.d.ts +28 -54
- package/build/if-run/config/strings.js +76 -0
- package/build/if-run/index.d.ts +2 -0
- package/build/if-run/index.js +63 -0
- package/build/if-run/lib/aggregate.d.ts +15 -0
- package/build/if-run/lib/aggregate.js +123 -0
- package/build/if-run/lib/compute.js +136 -0
- package/build/{lib → if-run/lib}/environment.d.ts +1 -1
- package/build/if-run/lib/environment.js +75 -0
- package/build/{lib → if-run/lib}/exhaust.d.ts +1 -1
- package/build/if-run/lib/exhaust.js +27 -0
- package/build/if-run/lib/explain.d.ts +9 -0
- package/build/if-run/lib/explain.js +43 -0
- package/build/if-run/lib/initialize.d.ts +6 -0
- package/build/if-run/lib/initialize.js +109 -0
- package/build/if-run/lib/regroup.d.ts +5 -0
- package/build/if-run/lib/regroup.js +64 -0
- package/build/if-run/types/aggregation.d.ts +5 -0
- package/build/if-run/types/aggregation.js +6 -0
- package/build/{types → if-run/types}/compute.d.ts +12 -8
- package/build/if-run/types/compute.js +3 -0
- package/build/if-run/types/environment.js +3 -0
- package/build/{types → if-run/types}/exhaust-plugin-interface.d.ts +1 -1
- package/build/if-run/types/exhaust-plugin-interface.js +3 -0
- package/build/if-run/types/explain.d.ts +10 -0
- package/build/if-run/types/explain.js +3 -0
- package/build/if-run/types/interface.d.ts +3 -0
- package/build/if-run/types/interface.js +6 -0
- package/build/if-run/types/plugin-storage.js +3 -0
- package/build/if-run/types/process-args.d.ts +25 -0
- package/build/if-run/types/process-args.js +3 -0
- package/build/if-run/types/time-sync.js +3 -0
- package/build/{util → if-run/util}/aggregation-helper.d.ts +2 -1
- package/build/if-run/util/aggregation-helper.js +47 -0
- package/build/if-run/util/args.d.ts +9 -0
- package/build/if-run/util/args.js +60 -0
- package/build/if-run/util/helpers.d.ts +14 -0
- package/build/if-run/util/helpers.js +57 -0
- package/build/if-run/util/log-memoize.js +19 -0
- package/build/if-run/util/os-checker.js +97 -0
- package/build/{util → if-run/util}/plugin-storage.d.ts +1 -1
- package/build/if-run/util/plugin-storage.js +34 -0
- package/jest.config.js +2 -6
- package/manifests/examples/builtins/coefficient/failure-invalid-config-input-param.yml +2 -2
- package/manifests/examples/builtins/coefficient/failure-output-param-is-null.yaml +3 -3
- package/manifests/examples/builtins/coefficient/success.yml +2 -2
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +3 -3
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +3 -3
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml +3 -3
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/success.yml +3 -3
- package/manifests/examples/builtins/csv-lookup/region-metadata/failure-missing-column.yml +3 -3
- package/manifests/examples/builtins/csv-lookup/region-metadata/failure-missing-output.yml +3 -3
- package/manifests/examples/builtins/csv-lookup/region-metadata/success-renaming.yml +4 -4
- package/manifests/examples/builtins/csv-lookup/region-metadata/success.yml +3 -3
- package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-missing-input-param.yml +2 -2
- package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml +2 -2
- package/manifests/examples/builtins/csv-lookup/tdp-finder/success.yml +2 -2
- package/manifests/examples/builtins/divide/failure-denominator-equal-zero.yml +4 -4
- package/manifests/examples/builtins/divide/failure-invalid-config-denominator.yml +5 -5
- package/manifests/examples/builtins/divide/failure-missing-numerator.yml +4 -4
- package/manifests/examples/builtins/divide/success.yml +4 -6
- package/manifests/examples/builtins/exponent/success.yml +5 -7
- package/manifests/examples/builtins/interpolation/interpolation.yml +2 -2
- package/manifests/examples/builtins/interpolation/success.yml +2 -1
- package/manifests/examples/builtins/mock-observations/failure-invalid-config-cpu-range.yml +2 -2
- package/manifests/examples/builtins/mock-observations/failure-invalid-memory-utilization-range.yml +2 -2
- package/manifests/examples/builtins/mock-observations/failure-missing-timestamp-from-param.yml +2 -2
- package/manifests/examples/builtins/mock-observations/success.yml +2 -2
- package/manifests/examples/builtins/multiply/failure-input-parameter-is-missing.yml +2 -4
- package/manifests/examples/builtins/multiply/success-with-multiple-inputs.yml +2 -4
- package/manifests/examples/builtins/multiply/success.yml +3 -4
- package/manifests/examples/builtins/regex/failure-missing-input-param.yml +2 -4
- package/manifests/examples/builtins/regex/failure-not-matching-with-regex.yml +2 -4
- package/manifests/examples/builtins/regex/success.yml +2 -4
- package/manifests/examples/builtins/sci/failure-invalid-config-value.yml +2 -2
- package/manifests/examples/builtins/sci/failure-missing-input-param.yml +3 -2
- package/manifests/examples/builtins/sci/success.yml +2 -3
- package/manifests/examples/builtins/sci-embodied/failure-invalid-default-emission-value.yml +3 -3
- package/manifests/examples/builtins/sci-embodied/failure-missing-expected-lifespan.yml +2 -2
- package/manifests/examples/builtins/sci-embodied/success.yml +2 -2
- package/manifests/examples/builtins/shell/failure-invalid-command.yml +2 -2
- package/manifests/examples/builtins/shell/success.yml +2 -1
- package/manifests/examples/builtins/subtract/success.yml +6 -8
- package/manifests/examples/builtins/sum/failure-missing-input-param.yml +2 -4
- package/manifests/examples/builtins/sum/failure-missing-output-param.yml +3 -5
- package/manifests/examples/builtins/sum/success.yml +2 -4
- package/manifests/examples/builtins/time-sync/failure-config-start-later-end.yml +3 -3
- package/manifests/examples/builtins/time-sync/failure-missing-global-config.yml +3 -3
- package/manifests/examples/builtins/time-sync/success.yml +2 -2
- package/manifests/examples/{builtins/groupby/failure-invalid-config-group.yml → features/regroup/failure-invalid-regroup.yml} +4 -11
- package/manifests/examples/{builtins/groupby → features/regroup}/failure-missing-cloud-instance-type.yml +5 -12
- package/manifests/examples/{builtins/groupby → features/regroup}/success.yml +4 -11
- package/manifests/examples/pipelines/generics.yml +12 -13
- package/manifests/examples/pipelines/instance-metadata.yml +4 -5
- package/manifests/examples/pipelines/nesting.yml +157 -50
- package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-aggregate.yaml +997 -0
- package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-mocks.yaml +1059 -0
- package/manifests/examples/pipelines/pipeline-teads-sci.yml +11 -11
- package/manifests/examples/pipelines/pipeline-with-aggregate.yml +114 -37
- package/manifests/examples/pipelines/pipeline-with-mocks.yml +193 -103
- package/manifests/examples/pipelines/scenario-1.yml +34 -0
- package/manifests/examples/pipelines/scenario-2.yml +52 -0
- package/manifests/examples/pipelines/scenario-3.yml +86 -0
- package/manifests/examples/pipelines/scenario-4.yml +46 -0
- package/manifests/examples/pipelines/scenario-5.yml +46 -0
- package/manifests/examples/pipelines/sci.yml +15 -17
- package/manifests/examples/pipelines/teads-curve.yml +7 -6
- package/manifests/examples/pipelines/zeros.yml +15 -16
- package/manifests/outputs/bugs/aggregation-error-wrong-metric.yaml +51 -59
- package/manifests/outputs/bugs/input-error-missing-duration.yaml +14 -16
- package/manifests/outputs/bugs/mock-observations-failure-duration-is-zero.yaml +14 -16
- package/manifests/outputs/bugs/pipeline-error-naming-mismatch.yaml +14 -16
- package/manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yaml +15 -17
- package/manifests/outputs/bugs/pipeline-ordering-error.yaml +23 -26
- package/manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml +13 -14
- package/manifests/outputs/{plugins → builtins}/coefficient/failure-invalid-config-input-param.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/coefficient/failure-output-param-is-null.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/coefficient/success.yaml +11 -16
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +76 -0
- package/manifests/outputs/{plugins → builtins}/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml +16 -19
- package/manifests/outputs/{plugins → builtins}/csv-lookup/cloud-metadata/success.yaml +16 -19
- package/manifests/outputs/{plugins → builtins}/csv-lookup/region-metadata/failure-missing-column.yaml +14 -15
- package/manifests/outputs/{plugins → builtins}/csv-lookup/region-metadata/failure-missing-output.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/csv-lookup/region-metadata/success-renaming.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/csv-lookup/region-metadata/success.yaml +14 -16
- package/manifests/outputs/{plugins → builtins}/csv-lookup/tdp-finder/failure-missing-input-param.yaml +13 -16
- package/manifests/outputs/{plugins → builtins}/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/csv-lookup/tdp-finder/success.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/divide/failure-invalid-config-denominator.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/divide/failure-missing-numerator.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/divide/success-denominator-equal-zero.yaml +14 -18
- package/manifests/outputs/{plugins → builtins}/divide/success.yaml +14 -18
- package/manifests/outputs/{plugins → builtins}/exponent/success.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/interpolation/interpolation.yaml +14 -16
- package/manifests/outputs/{plugins → builtins}/interpolation/success.yaml +14 -16
- package/manifests/outputs/{plugins → builtins}/mock-observations/failure-invalid-config-cpu-range.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/mock-observations/failure-invalid-memory-utilization-range.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/mock-observations/failure-missing-timestamp-from-param.yaml +13 -15
- package/manifests/outputs/builtins/mock-observations/success.yaml +358 -0
- package/manifests/outputs/{plugins → builtins}/multiply/failure-input-parameter-is-missing.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/multiply/success-with-multiple-inputs.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/multiply/success.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/regex/failure-missing-input-param.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/regex/success.yaml +14 -19
- package/manifests/outputs/{plugins → builtins}/sci/failure-invalid-config-value.yaml +14 -16
- package/manifests/outputs/{plugins → builtins}/sci/failure-missing-input-param.yaml +13 -15
- package/manifests/outputs/{plugins/sci/success.yml.yaml → builtins/sci/success.yaml} +13 -16
- package/manifests/outputs/{plugins → builtins}/sci-embodied/failure-invalid-default-emission-value.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/sci-embodied/failure-missing-expected-lifespan.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/sci-embodied/success.yaml +13 -15
- package/manifests/outputs/{plugins → builtins}/shell/failure-invalid-command.yaml +14 -16
- package/manifests/outputs/{plugins → builtins}/shell/success.yaml +14 -16
- package/manifests/outputs/{plugins → builtins}/subtract/success.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/sum/failure-missing-input-param.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/sum/failure-missing-output-param.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/sum/success.yaml +13 -17
- package/manifests/outputs/{plugins → builtins}/time-sync/failure-config-start-later-end.yaml +20 -23
- package/manifests/outputs/{plugins → builtins}/time-sync/success.yaml +38 -35
- package/manifests/outputs/features/aggregate-failure-invalid-metrics.yaml +17 -18
- package/manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yaml +17 -18
- package/manifests/outputs/features/aggregate-horizontal.yaml +27 -23
- package/manifests/outputs/features/aggregate-vertical.yaml +33 -29
- package/manifests/outputs/features/aggregate.yaml +33 -29
- package/manifests/outputs/{plugins/groupby/failure-invalid-config-group.yaml → features/failure-invalid-regroup.yaml} +16 -25
- package/manifests/outputs/{plugins/groupby → features}/failure-missing-cloud-instance-type.yaml +16 -25
- package/manifests/outputs/pipelines/cloud-metadata-divide.yaml +14 -18
- package/manifests/outputs/pipelines/generics.yaml +239 -0
- package/manifests/outputs/pipelines/instance-metadata.yaml +98 -0
- package/manifests/outputs/pipelines/mock-obs-time-sync.yaml +246 -147
- package/manifests/outputs/pipelines/nesting.yaml +1799 -0
- package/manifests/outputs/pipelines/pipeline-teads-sci.yaml +276 -0
- package/manifests/outputs/pipelines/sci.yaml +297 -0
- package/manifests/outputs/pipelines/teads-curve.yaml +188 -0
- package/manifests/outputs/pipelines/zeros.yaml +198 -0
- package/package.json +15 -16
- package/src/__mocks__/mock-manifest.yaml +2 -3
- package/src/{config → if-env/config}/env-template.yml +2 -3
- package/src/{builtins → if-run/builtins}/coefficient/README.md +31 -9
- package/src/{builtins → if-run/builtins}/copy-param/README.md +30 -11
- package/src/{builtins → if-run/builtins}/csv-lookup/README.md +32 -20
- package/src/{builtins → if-run/builtins}/divide/README.md +21 -8
- package/src/{builtins → if-run/builtins}/exponent/README.md +19 -8
- package/src/{builtins → if-run/builtins}/interpolation/README.md +21 -6
- package/src/{builtins → if-run/builtins}/mock-observations/README.md +18 -4
- package/src/{builtins → if-run/builtins}/multiply/README.md +20 -8
- package/src/{builtins → if-run/builtins}/regex/README.md +19 -9
- package/src/{builtins → if-run/builtins}/sci/README.md +19 -9
- package/src/{builtins → if-run/builtins}/sci-embodied/README.md +17 -5
- package/src/{builtins → if-run/builtins}/shell/README.md +19 -7
- package/src/{builtins → if-run/builtins}/subtract/README.md +17 -6
- package/src/{builtins → if-run/builtins}/sum/README.md +34 -8
- package/src/if-run/builtins/time-sync/README.md +267 -0
- package/build/builtins/coefficient/index.d.ts +0 -2
- package/build/builtins/coefficient/index.js +0 -65
- package/build/builtins/copy-param/index.d.ts +0 -2
- package/build/builtins/copy-param/index.js +0 -68
- package/build/builtins/csv-lookup/index.d.ts +0 -2
- package/build/builtins/csv-lookup/index.js +0 -188
- package/build/builtins/divide/index.d.ts +0 -2
- package/build/builtins/divide/index.js +0 -78
- package/build/builtins/exponent/index.d.ts +0 -2
- package/build/builtins/exponent/index.js +0 -58
- package/build/builtins/export-csv-raw.d.ts +0 -4
- package/build/builtins/export-csv-raw.js +0 -132
- package/build/builtins/export-csv.d.ts +0 -10
- package/build/builtins/export-csv.js +0 -96
- package/build/builtins/export-yaml.js +0 -30
- package/build/builtins/group-by.d.ts +0 -5
- package/build/builtins/group-by.js +0 -71
- package/build/builtins/interpolation/index.d.ts +0 -2
- package/build/builtins/interpolation/index.js +0 -148
- package/build/builtins/mock-observations/helpers/common-generator.js +0 -29
- package/build/builtins/mock-observations/helpers/rand-int-generator.js +0 -48
- package/build/builtins/mock-observations/index.d.ts +0 -2
- package/build/builtins/mock-observations/index.js +0 -114
- package/build/builtins/mock-observations/interfaces/index.js +0 -3
- package/build/builtins/multiply/index.d.ts +0 -2
- package/build/builtins/multiply/index.js +0 -57
- package/build/builtins/regex/index.d.ts +0 -2
- package/build/builtins/regex/index.js +0 -74
- package/build/builtins/sci/config.js +0 -44
- package/build/builtins/sci/index.d.ts +0 -2
- package/build/builtins/sci/index.js +0 -70
- package/build/builtins/sci-embodied/index.d.ts +0 -2
- package/build/builtins/sci-embodied/index.js +0 -114
- package/build/builtins/shell/index.d.ts +0 -2
- package/build/builtins/shell/index.js +0 -58
- package/build/builtins/subtract/index.d.ts +0 -2
- package/build/builtins/subtract/index.js +0 -59
- package/build/builtins/sum/index.d.ts +0 -2
- package/build/builtins/sum/index.js +0 -64
- package/build/builtins/time-sync.d.ts +0 -2
- package/build/builtins/time-sync.js +0 -300
- package/build/check.js +0 -95
- package/build/config/config.d.ts +0 -29
- package/build/config/config.js +0 -147
- package/build/config/index.js +0 -10
- package/build/config/params.d.ts +0 -2
- package/build/config/params.js +0 -196
- package/build/config/strings.js +0 -105
- package/build/diff.js +0 -46
- package/build/env.js +0 -38
- package/build/index.js +0 -48
- package/build/lib/aggregate.d.ts +0 -6
- package/build/lib/aggregate.js +0 -77
- package/build/lib/compare.js +0 -56
- package/build/lib/compute.js +0 -91
- package/build/lib/environment.js +0 -75
- package/build/lib/exhaust.js +0 -53
- package/build/lib/initialize.d.ts +0 -6
- package/build/lib/initialize.js +0 -101
- package/build/lib/load.js +0 -70
- package/build/lib/parameterize.d.ts +0 -6
- package/build/lib/parameterize.js +0 -55
- package/build/types/aggregation.d.ts +0 -2
- package/build/types/aggregation.js +0 -5
- package/build/types/compute.js +0 -3
- package/build/types/environment.js +0 -3
- package/build/types/exhaust-plugin-interface.js +0 -3
- package/build/types/if-env.js +0 -3
- package/build/types/interface.d.ts +0 -4
- package/build/types/interface.js +0 -8
- package/build/types/lib/compare.js +0 -3
- package/build/types/manifest.js +0 -3
- package/build/types/npm.js +0 -3
- package/build/types/parameters.d.ts +0 -5
- package/build/types/parameters.js +0 -5
- package/build/types/plugin-storage.js +0 -3
- package/build/types/process-args.d.ts +0 -33
- package/build/types/process-args.js +0 -3
- package/build/types/time-sync.js +0 -3
- package/build/types/util/args.js +0 -3
- package/build/util/aggregation-helper.js +0 -55
- package/build/util/args.d.ts +0 -37
- package/build/util/args.js +0 -205
- package/build/util/debug-logger.js +0 -118
- package/build/util/fs.js +0 -94
- package/build/util/helpers.d.ts +0 -57
- package/build/util/helpers.js +0 -251
- package/build/util/json.d.ts +0 -4
- package/build/util/json.js +0 -36
- package/build/util/log-memoize.js +0 -19
- package/build/util/npm.js +0 -152
- package/build/util/os-checker.js +0 -97
- package/build/util/plugin-storage.js +0 -34
- package/build/util/validations.js +0 -124
- package/build/util/yaml.js +0 -59
- package/manifests/outputs/bugs/initialize-error-no-config.yaml +0 -78
- package/manifests/outputs/bugs/initialize-error-no-path.yaml +0 -91
- package/manifests/outputs/bugs/initialize-error-no-plugins.yaml +0 -74
- package/manifests/outputs/divide.yaml +0 -93
- package/manifests/outputs/pipelines/mock-obs-group-by-cloud-meta.yaml +0 -645
- package/manifests/outputs/pipelines/mock-obs-groupby.yaml +0 -178
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +0 -27
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +0 -27
- package/manifests/outputs/plugins/groupby/success.yaml +0 -101
- package/manifests/outputs/plugins/mock-observations/success.yaml +0 -220
- package/manifests/outputs/plugins/regex/failure-not-matching-with-regex.yaml +0 -76
- package/manifests/outputs/plugins/time-sync/failure-missing-global-config.yaml +0 -78
- package/src/__tests__/integration/templates/integration.yaml +0 -16
- package/src/builtins/README.md +0 -848
- /package/build/{util → common/util}/debug-logger.d.ts +0 -0
- /package/build/{util → common/util}/fs.d.ts +0 -0
- /package/build/{util → common/util}/logger.d.ts +0 -0
- /package/build/{util → common/util}/yaml.d.ts +0 -0
- /package/build/{index.d.ts → if-check/index.d.ts} +0 -0
- /package/build/{check.d.ts → if-csv/index.d.ts} +0 -0
- /package/build/{diff.d.ts → if-diff/index.d.ts} +0 -0
- /package/build/{types/util → if-diff/types}/args.d.ts +0 -0
- /package/build/{types/lib → if-diff/types}/compare.d.ts +0 -0
- /package/build/{env.d.ts → if-env/index.d.ts} +0 -0
- /package/build/{types → if-env/types}/if-env.d.ts +0 -0
- /package/build/{types → if-env/types}/npm.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/mock-observations/helpers/common-generator.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/mock-observations/helpers/rand-int-generator.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/mock-observations/interfaces/index.d.ts +0 -0
- /package/build/{builtins → if-run/builtins}/sci/config.d.ts +0 -0
- /package/build/{lib → if-run/lib}/compute.d.ts +0 -0
- /package/build/{types → if-run/types}/environment.d.ts +0 -0
- /package/build/{types → if-run/types}/plugin-storage.d.ts +0 -0
- /package/build/{types → if-run/types}/time-sync.d.ts +0 -0
- /package/build/{util → if-run/util}/log-memoize.d.ts +0 -0
- /package/build/{util → if-run/util}/os-checker.d.ts +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: regroup demo
|
|
2
|
+
description:
|
|
3
|
+
initialize:
|
|
4
|
+
plugins:
|
|
5
|
+
interpolate:
|
|
6
|
+
method: Interpolation
|
|
7
|
+
path: "builtin"
|
|
8
|
+
global-config:
|
|
9
|
+
method: linear
|
|
10
|
+
x: [0, 10, 50, 100]
|
|
11
|
+
y: [0.12, 0.32, 0.75, 1.02]
|
|
12
|
+
input-parameter: "cpu/utilization"
|
|
13
|
+
output-parameter: "cpu-factor"
|
|
14
|
+
tree:
|
|
15
|
+
children:
|
|
16
|
+
child:
|
|
17
|
+
pipeline:
|
|
18
|
+
observe:
|
|
19
|
+
regroup:
|
|
20
|
+
- cloud/region
|
|
21
|
+
- cloud/instance-type
|
|
22
|
+
inputs:
|
|
23
|
+
- timestamp: 2023-07-06T00:00
|
|
24
|
+
duration: 300
|
|
25
|
+
cloud/instance-type: A1
|
|
26
|
+
cloud/region: uk-west
|
|
27
|
+
cpu/utilization: 99
|
|
28
|
+
- timestamp: 2023-07-06T05:00
|
|
29
|
+
duration: 300
|
|
30
|
+
cloud/instance-type: A1
|
|
31
|
+
cloud/region: uk-west
|
|
32
|
+
cpu/utilization: 23
|
|
33
|
+
- timestamp: 2023-07-06T10:00
|
|
34
|
+
duration: 300
|
|
35
|
+
cloud/instance-type: A1
|
|
36
|
+
cloud/region: uk-west
|
|
37
|
+
cpu/utilization: 12
|
|
38
|
+
- timestamp: 2023-07-06T00:00 # note this time restarts at the start timstamp
|
|
39
|
+
duration: 300
|
|
40
|
+
cloud/instance-type: B1
|
|
41
|
+
cloud/region: uk-west
|
|
42
|
+
cpu/utilization: 11
|
|
43
|
+
- timestamp: 2023-07-06T05:00
|
|
44
|
+
duration: 300
|
|
45
|
+
cloud/instance-type: B1
|
|
46
|
+
cloud/region: uk-west
|
|
47
|
+
cpu/utilization: 67
|
|
48
|
+
- timestamp: 2023-07-06T10:00
|
|
49
|
+
duration: 300
|
|
50
|
+
cloud/instance-type: B1
|
|
51
|
+
cloud/region: uk-west
|
|
52
|
+
cpu/utilization: 1
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
name: groupby
|
|
2
|
+
description: successful path
|
|
3
|
+
initialize:
|
|
4
|
+
plugins:
|
|
5
|
+
"sum":
|
|
6
|
+
path: "builtin"
|
|
7
|
+
method: Sum
|
|
8
|
+
global-config:
|
|
9
|
+
input-parameters:
|
|
10
|
+
- cpu/energy
|
|
11
|
+
- network/energy
|
|
12
|
+
output-parameter: energy
|
|
13
|
+
tree:
|
|
14
|
+
children:
|
|
15
|
+
my-app:
|
|
16
|
+
pipeline:
|
|
17
|
+
observe:
|
|
18
|
+
regroup:
|
|
19
|
+
- cloud/instance-type
|
|
20
|
+
- cloud/region
|
|
21
|
+
compute:
|
|
22
|
+
children:
|
|
23
|
+
uk-west:
|
|
24
|
+
inputs:
|
|
25
|
+
- timestamp: 2023-07-06T00:00
|
|
26
|
+
duration: 300
|
|
27
|
+
cloud/instance-type: A1
|
|
28
|
+
cloud/region: uk-west
|
|
29
|
+
cpu/utilization: 99
|
|
30
|
+
- timestamp: 2023-07-06T05:00
|
|
31
|
+
duration: 300
|
|
32
|
+
cloud/instance-type: A1
|
|
33
|
+
cloud/region: uk-west
|
|
34
|
+
cpu/utilization: 23
|
|
35
|
+
- timestamp: 2023-07-06T10:00
|
|
36
|
+
duration: 300
|
|
37
|
+
cloud/instance-type: A1
|
|
38
|
+
cloud/region: uk-west
|
|
39
|
+
cpu/utilization: 12
|
|
40
|
+
- timestamp: 2023-07-06T00:00
|
|
41
|
+
duration: 300
|
|
42
|
+
cloud/instance-type: B1
|
|
43
|
+
cloud/region: uk-west
|
|
44
|
+
cpu/utilization: 11
|
|
45
|
+
- timestamp: 2023-07-06T05:00
|
|
46
|
+
duration: 300
|
|
47
|
+
cloud/instance-type: B1
|
|
48
|
+
cloud/region: uk-west
|
|
49
|
+
cpu/utilization: 67
|
|
50
|
+
- timestamp: 2023-07-06T10:00
|
|
51
|
+
duration: 300
|
|
52
|
+
cloud/instance-type: B1
|
|
53
|
+
cloud/region: uk-west
|
|
54
|
+
cpu/utilization: 1
|
|
55
|
+
uk-east:
|
|
56
|
+
inputs:
|
|
57
|
+
- timestamp: 2023-07-06T00:00
|
|
58
|
+
duration: 300
|
|
59
|
+
cloud/instance-type: A1
|
|
60
|
+
cloud/region: uk-east
|
|
61
|
+
cpu/utilization: 9
|
|
62
|
+
- timestamp: 2023-07-06T05:00
|
|
63
|
+
duration: 300
|
|
64
|
+
cloud/instance-type: A1
|
|
65
|
+
cloud/region: uk-east
|
|
66
|
+
cpu/utilization: 23
|
|
67
|
+
- timestamp: 2023-07-06T10:00
|
|
68
|
+
duration: 300
|
|
69
|
+
cloud/instance-type: A1
|
|
70
|
+
cloud/region: uk-east
|
|
71
|
+
cpu/utilization: 12
|
|
72
|
+
- timestamp: 2023-07-06T00:00
|
|
73
|
+
duration: 300
|
|
74
|
+
cloud/instance-type: B1
|
|
75
|
+
cloud/region: uk-east
|
|
76
|
+
cpu/utilization: 11
|
|
77
|
+
- timestamp: 2023-07-06T05:00
|
|
78
|
+
duration: 300
|
|
79
|
+
cloud/instance-type: B1
|
|
80
|
+
cloud/region: uk-east
|
|
81
|
+
cpu/utilization: 67
|
|
82
|
+
- timestamp: 2023-07-06T10:00
|
|
83
|
+
duration: 300
|
|
84
|
+
cloud/instance-type: B1
|
|
85
|
+
cloud/region: uk-east
|
|
86
|
+
cpu/utilization: 1
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: demo
|
|
2
|
+
description:
|
|
3
|
+
tags:
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
"sum":
|
|
7
|
+
path: "builtin"
|
|
8
|
+
method: Sum
|
|
9
|
+
global-config:
|
|
10
|
+
input-parameters:
|
|
11
|
+
- cpu/energy
|
|
12
|
+
- network/energy
|
|
13
|
+
output-parameter: energy-sum
|
|
14
|
+
"coefficient":
|
|
15
|
+
path: "builtin"
|
|
16
|
+
method: Coefficient
|
|
17
|
+
global-config:
|
|
18
|
+
input-parameter: energy
|
|
19
|
+
coefficient: 2
|
|
20
|
+
output-parameter: energy-doubled
|
|
21
|
+
"multiply":
|
|
22
|
+
path: "builtin"
|
|
23
|
+
method: Multiply
|
|
24
|
+
global-config:
|
|
25
|
+
input-parameters: ["cpu/utilization", "duration"]
|
|
26
|
+
output-parameter: "cpu-times-duration"
|
|
27
|
+
tree:
|
|
28
|
+
children:
|
|
29
|
+
child-1:
|
|
30
|
+
pipeline:
|
|
31
|
+
observe:
|
|
32
|
+
compute:
|
|
33
|
+
- sum
|
|
34
|
+
- coefficient
|
|
35
|
+
- multiply
|
|
36
|
+
defaults:
|
|
37
|
+
cpu/thermal-design-power: 100
|
|
38
|
+
inputs:
|
|
39
|
+
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
40
|
+
cloud/instance-type: A1
|
|
41
|
+
cloud/region: uk-west
|
|
42
|
+
duration: 1
|
|
43
|
+
cpu/utilization: 50
|
|
44
|
+
cpu/energy: 20
|
|
45
|
+
network/energy: 10
|
|
46
|
+
energy: 5
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: demo
|
|
2
|
+
description:
|
|
3
|
+
tags:
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
mock-observations:
|
|
7
|
+
kind: plugin
|
|
8
|
+
method: MockObservations
|
|
9
|
+
path: "builtin"
|
|
10
|
+
global-config:
|
|
11
|
+
timestamp-from: 2023-07-06T00:00
|
|
12
|
+
timestamp-to: 2023-07-06T00:01
|
|
13
|
+
duration: 60
|
|
14
|
+
components:
|
|
15
|
+
- cloud/instance-type: A1
|
|
16
|
+
- cloud/instance-type: B1
|
|
17
|
+
generators:
|
|
18
|
+
common:
|
|
19
|
+
region: uk-west
|
|
20
|
+
common-key: common-val
|
|
21
|
+
randint:
|
|
22
|
+
cpu/utilization:
|
|
23
|
+
min: 1
|
|
24
|
+
max: 99
|
|
25
|
+
memory/utilization:
|
|
26
|
+
min: 1
|
|
27
|
+
max: 99
|
|
28
|
+
sum:
|
|
29
|
+
path: "builtin"
|
|
30
|
+
method: Sum
|
|
31
|
+
global-config:
|
|
32
|
+
input-parameters:
|
|
33
|
+
- cpu/utilization
|
|
34
|
+
- memory/utilization
|
|
35
|
+
output-parameter: util-sum
|
|
36
|
+
tree:
|
|
37
|
+
children:
|
|
38
|
+
child:
|
|
39
|
+
pipeline:
|
|
40
|
+
observe:
|
|
41
|
+
- mock-observations
|
|
42
|
+
regroup:
|
|
43
|
+
- cloud/instance-type
|
|
44
|
+
compute:
|
|
45
|
+
- sum
|
|
46
|
+
inputs: null
|
|
@@ -5,13 +5,13 @@ initialize:
|
|
|
5
5
|
plugins:
|
|
6
6
|
interpolate:
|
|
7
7
|
method: Interpolation
|
|
8
|
-
path:
|
|
8
|
+
path: "builtin"
|
|
9
9
|
global-config:
|
|
10
10
|
method: linear
|
|
11
11
|
x: [0, 10, 50, 100]
|
|
12
12
|
y: [0.12, 0.32, 0.75, 1.02]
|
|
13
|
-
input-parameter:
|
|
14
|
-
output-parameter:
|
|
13
|
+
input-parameter: "cpu/utilization"
|
|
14
|
+
output-parameter: "cpu-factor"
|
|
15
15
|
cpu-factor-to-wattage:
|
|
16
16
|
method: Multiply
|
|
17
17
|
path: builtin
|
|
@@ -75,24 +75,22 @@ initialize:
|
|
|
75
75
|
method: Sci
|
|
76
76
|
global-config:
|
|
77
77
|
functional-unit: "component"
|
|
78
|
-
outputs:
|
|
79
|
-
- yaml
|
|
80
78
|
tree:
|
|
81
79
|
children:
|
|
82
80
|
child-1:
|
|
83
81
|
pipeline:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
compute:
|
|
83
|
+
- interpolate
|
|
84
|
+
- cpu-factor-to-wattage
|
|
85
|
+
- wattage-times-duration
|
|
86
|
+
- wattage-to-energy-kwh
|
|
87
|
+
- calculate-vcpu-ratio
|
|
88
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
89
|
+
- sum-energy-components
|
|
90
|
+
- embodied-carbon
|
|
91
|
+
- operational-carbon
|
|
92
|
+
- sum-carbon
|
|
93
|
+
- sci
|
|
96
94
|
defaults:
|
|
97
95
|
cpu/thermal-design-power: 100
|
|
98
96
|
vcpus-total: 8
|
|
@@ -49,12 +49,13 @@ tree:
|
|
|
49
49
|
children:
|
|
50
50
|
child:
|
|
51
51
|
pipeline:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
compute:
|
|
53
|
+
- interpolate
|
|
54
|
+
- cpu-factor-to-wattage
|
|
55
|
+
- wattage-times-duration
|
|
56
|
+
- wattage-to-energy-kwh
|
|
57
|
+
- calculate-vcpu-ratio
|
|
58
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
58
59
|
defaults:
|
|
59
60
|
thermal-design-power: 100
|
|
60
61
|
vcpus-total: 8
|
|
@@ -106,22 +106,21 @@ tree:
|
|
|
106
106
|
children:
|
|
107
107
|
child-1:
|
|
108
108
|
pipeline:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
defaults:
|
|
109
|
+
compute:
|
|
110
|
+
- sum-zero-and-one
|
|
111
|
+
- sum-zero-and-zero
|
|
112
|
+
- subtract-one-and-zero
|
|
113
|
+
- subtract-zero-and-zero
|
|
114
|
+
- subtract-zero-and-one
|
|
115
|
+
- coefficient-one-times-zero
|
|
116
|
+
- coefficient-zero-times-one
|
|
117
|
+
- coefficient-zero-times-zero
|
|
118
|
+
- multiply-one-times-zero
|
|
119
|
+
- multiply-zero-times-one
|
|
120
|
+
- exponent-one-to-zero
|
|
121
|
+
- exponent-zero-to-one
|
|
122
|
+
- exponent-zero-to-zero
|
|
123
|
+
- sci
|
|
125
124
|
inputs:
|
|
126
125
|
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
127
126
|
duration: 1
|
|
@@ -8,8 +8,6 @@ aggregation:
|
|
|
8
8
|
- dummy-param
|
|
9
9
|
type: both
|
|
10
10
|
initialize:
|
|
11
|
-
outputs:
|
|
12
|
-
- yaml
|
|
13
11
|
plugins:
|
|
14
12
|
interpolate:
|
|
15
13
|
method: Interpolation
|
|
@@ -21,7 +19,7 @@ initialize:
|
|
|
21
19
|
- 10
|
|
22
20
|
- 50
|
|
23
21
|
- 100
|
|
24
|
-
|
|
22
|
+
"y":
|
|
25
23
|
- 0.12
|
|
26
24
|
- 0.32
|
|
27
25
|
- 0.75
|
|
@@ -85,13 +83,10 @@ initialize:
|
|
|
85
83
|
method: TimeSync
|
|
86
84
|
path: builtin
|
|
87
85
|
global-config:
|
|
88
|
-
start-time:
|
|
89
|
-
end-time:
|
|
86
|
+
start-time: "2023-12-12T00:00:00.000Z"
|
|
87
|
+
end-time: "2023-12-12T00:01:00.000Z"
|
|
90
88
|
interval: 5
|
|
91
89
|
allow-padding: true
|
|
92
|
-
group-by:
|
|
93
|
-
path: builtin
|
|
94
|
-
method: GroupBy
|
|
95
90
|
execution:
|
|
96
91
|
status: fail
|
|
97
92
|
command: >-
|
|
@@ -102,20 +97,20 @@ execution:
|
|
|
102
97
|
environment:
|
|
103
98
|
if-version: 0.4.0
|
|
104
99
|
os: macOS
|
|
105
|
-
os-version:
|
|
100
|
+
os-version: "13.2"
|
|
106
101
|
node-version: 18.14.2
|
|
107
102
|
date-time: 2024-07-01T19:25:34.759Z (UTC)
|
|
108
103
|
dependencies:
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
104
|
+
- "@babel/core@7.22.10"
|
|
105
|
+
- "@babel/preset-typescript@7.23.3"
|
|
106
|
+
- "@commitlint/cli@18.6.0"
|
|
107
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
108
|
+
- "@grnsft/if-core@0.0.10"
|
|
109
|
+
- "@jest/globals@29.7.0"
|
|
110
|
+
- "@types/jest@29.5.8"
|
|
111
|
+
- "@types/js-yaml@4.0.9"
|
|
112
|
+
- "@types/luxon@3.4.2"
|
|
113
|
+
- "@types/node@20.9.0"
|
|
119
114
|
- axios-mock-adapter@1.22.0
|
|
120
115
|
- axios@1.7.2
|
|
121
116
|
- cross-env@7.0.3
|
|
@@ -137,27 +132,25 @@ execution:
|
|
|
137
132
|
- winston@3.11.0
|
|
138
133
|
- zod@3.22.4
|
|
139
134
|
error: >-
|
|
140
|
-
|
|
141
|
-
inputs[0].
|
|
135
|
+
MissingInputDataError: `functional-unit` value is missing from input data or it is not a positive integer
|
|
142
136
|
tree:
|
|
143
137
|
children:
|
|
144
138
|
child-1:
|
|
145
139
|
pipeline:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
- cloud/instance-type
|
|
140
|
+
regroup:
|
|
141
|
+
- cloud/region
|
|
142
|
+
- cloud/instance-type
|
|
143
|
+
compute:
|
|
144
|
+
- interpolate
|
|
145
|
+
- cpu-factor-to-wattage
|
|
146
|
+
- wattage-times-duration
|
|
147
|
+
- wattage-to-energy-kwh
|
|
148
|
+
- calculate-vcpu-ratio
|
|
149
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
150
|
+
- sci-embodied
|
|
151
|
+
- operational-carbon
|
|
152
|
+
- time-sync
|
|
153
|
+
- sci
|
|
161
154
|
defaults:
|
|
162
155
|
cpu/thermal-design-power: 100
|
|
163
156
|
grid/carbon-intensity: 800
|
|
@@ -167,25 +160,25 @@ tree:
|
|
|
167
160
|
vcpus-allocated: 1
|
|
168
161
|
vcpus-total: 8
|
|
169
162
|
inputs:
|
|
170
|
-
- timestamp:
|
|
163
|
+
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
171
164
|
cloud/instance-type: A1
|
|
172
165
|
cloud/region: uk-west
|
|
173
166
|
duration: 1
|
|
174
167
|
cpu/utilization: 10
|
|
175
168
|
requests: 100
|
|
176
|
-
- timestamp:
|
|
169
|
+
- timestamp: "2023-12-12T00:00:01.000Z"
|
|
177
170
|
duration: 5
|
|
178
171
|
cpu/utilization: 20
|
|
179
172
|
cloud/instance-type: A1
|
|
180
173
|
cloud/region: uk-west
|
|
181
174
|
requests: 100
|
|
182
|
-
- timestamp:
|
|
175
|
+
- timestamp: "2023-12-12T00:00:06.000Z"
|
|
183
176
|
duration: 7
|
|
184
177
|
cpu/utilization: 15
|
|
185
178
|
cloud/instance-type: A1
|
|
186
179
|
cloud/region: uk-west
|
|
187
180
|
requests: 100
|
|
188
|
-
- timestamp:
|
|
181
|
+
- timestamp: "2023-12-12T00:00:13.000Z"
|
|
189
182
|
duration: 30
|
|
190
183
|
cloud/instance-type: A1
|
|
191
184
|
cloud/region: uk-west
|
|
@@ -193,21 +186,20 @@ tree:
|
|
|
193
186
|
requests: 100
|
|
194
187
|
child-2:
|
|
195
188
|
pipeline:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
- cloud/instance-type
|
|
189
|
+
regroup:
|
|
190
|
+
- cloud/region
|
|
191
|
+
- cloud/instance-type
|
|
192
|
+
compute:
|
|
193
|
+
- interpolate
|
|
194
|
+
- cpu-factor-to-wattage
|
|
195
|
+
- wattage-times-duration
|
|
196
|
+
- wattage-to-energy-kwh
|
|
197
|
+
- calculate-vcpu-ratio
|
|
198
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
199
|
+
- sci-embodied
|
|
200
|
+
- operational-carbon
|
|
201
|
+
- time-sync
|
|
202
|
+
- sci
|
|
211
203
|
defaults:
|
|
212
204
|
cpu/thermal-design-power: 100
|
|
213
205
|
grid/carbon-intensity: 800
|
|
@@ -217,25 +209,25 @@ tree:
|
|
|
217
209
|
vcpus-allocated: 1
|
|
218
210
|
vcpus-total: 8
|
|
219
211
|
inputs:
|
|
220
|
-
- timestamp:
|
|
212
|
+
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
221
213
|
duration: 1
|
|
222
214
|
cpu/utilization: 30
|
|
223
215
|
cloud/instance-type: A1
|
|
224
216
|
cloud/region: uk-west
|
|
225
217
|
requests: 100
|
|
226
|
-
- timestamp:
|
|
218
|
+
- timestamp: "2023-12-12T00:00:01.000Z"
|
|
227
219
|
duration: 5
|
|
228
220
|
cpu/utilization: 28
|
|
229
221
|
cloud/instance-type: A1
|
|
230
222
|
cloud/region: uk-west
|
|
231
223
|
requests: 100
|
|
232
|
-
- timestamp:
|
|
224
|
+
- timestamp: "2023-12-12T00:00:06.000Z"
|
|
233
225
|
duration: 7
|
|
234
226
|
cpu/utilization: 40
|
|
235
227
|
cloud/instance-type: A1
|
|
236
228
|
cloud/region: uk-west
|
|
237
229
|
requests: 100
|
|
238
|
-
- timestamp:
|
|
230
|
+
- timestamp: "2023-12-12T00:00:13.000Z"
|
|
239
231
|
duration: 30
|
|
240
232
|
cpu/utilization: 33
|
|
241
233
|
cloud/instance-type: A1
|
|
@@ -15,15 +15,13 @@ initialize:
|
|
|
15
15
|
- 10
|
|
16
16
|
- 50
|
|
17
17
|
- 100
|
|
18
|
-
|
|
18
|
+
"y":
|
|
19
19
|
- 0.12
|
|
20
20
|
- 0.32
|
|
21
21
|
- 0.75
|
|
22
22
|
- 1.02
|
|
23
23
|
input-parameter: cpu/utilization
|
|
24
24
|
output-parameter: cpu-factor
|
|
25
|
-
outputs:
|
|
26
|
-
- yaml
|
|
27
25
|
execution:
|
|
28
26
|
status: fail
|
|
29
27
|
command: >-
|
|
@@ -34,21 +32,20 @@ execution:
|
|
|
34
32
|
environment:
|
|
35
33
|
if-version: 0.4.0
|
|
36
34
|
os: macOS
|
|
37
|
-
os-version:
|
|
35
|
+
os-version: "13.2"
|
|
38
36
|
node-version: 18.14.2
|
|
39
37
|
date-time: 2024-07-01T19:59:58.987Z (UTC)
|
|
40
38
|
dependencies:
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
- '@types/node@20.9.0'
|
|
39
|
+
- "@babel/core@7.22.10"
|
|
40
|
+
- "@babel/preset-typescript@7.23.3"
|
|
41
|
+
- "@commitlint/cli@18.6.0"
|
|
42
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
43
|
+
- "@grnsft/if-core@0.0.10"
|
|
44
|
+
- "@jest/globals@29.7.0"
|
|
45
|
+
- "@types/jest@29.5.8"
|
|
46
|
+
- "@types/js-yaml@4.0.9"
|
|
47
|
+
- "@types/luxon@3.4.2"
|
|
48
|
+
- "@types/node@20.9.0"
|
|
52
49
|
- axios-mock-adapter@1.22.0
|
|
53
50
|
- axios@1.7.2
|
|
54
51
|
- cross-env@7.0.3
|
|
@@ -78,7 +75,8 @@ tree:
|
|
|
78
75
|
defaults:
|
|
79
76
|
cpu/thermal-design-power: 100
|
|
80
77
|
pipeline:
|
|
81
|
-
|
|
78
|
+
compute:
|
|
79
|
+
- interpolate
|
|
82
80
|
inputs:
|
|
83
81
|
- timestamp: 2023-07-06T00:00
|
|
84
82
|
cpu/utilization: 20
|
|
@@ -2,8 +2,6 @@ name: mock-observation-demo
|
|
|
2
2
|
description: a manifest demonstrating how to use the mock observations feature
|
|
3
3
|
tags: null
|
|
4
4
|
initialize:
|
|
5
|
-
outputs:
|
|
6
|
-
- yaml
|
|
7
5
|
plugins:
|
|
8
6
|
mock-observations:
|
|
9
7
|
kind: plugin
|
|
@@ -37,21 +35,20 @@ execution:
|
|
|
37
35
|
environment:
|
|
38
36
|
if-version: 0.4.0
|
|
39
37
|
os: macOS
|
|
40
|
-
os-version:
|
|
38
|
+
os-version: "13.2"
|
|
41
39
|
node-version: 18.14.2
|
|
42
40
|
date-time: 2024-07-01T20:02:22.596Z (UTC)
|
|
43
41
|
dependencies:
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
- '@types/node@20.9.0'
|
|
42
|
+
- "@babel/core@7.22.10"
|
|
43
|
+
- "@babel/preset-typescript@7.23.3"
|
|
44
|
+
- "@commitlint/cli@18.6.0"
|
|
45
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
46
|
+
- "@grnsft/if-core@0.0.10"
|
|
47
|
+
- "@jest/globals@29.7.0"
|
|
48
|
+
- "@types/jest@29.5.8"
|
|
49
|
+
- "@types/js-yaml@4.0.9"
|
|
50
|
+
- "@types/luxon@3.4.2"
|
|
51
|
+
- "@types/node@20.9.0"
|
|
55
52
|
- axios-mock-adapter@1.22.0
|
|
56
53
|
- axios@1.7.2
|
|
57
54
|
- cross-env@7.0.3
|
|
@@ -72,10 +69,11 @@ execution:
|
|
|
72
69
|
- typescript@5.2.2
|
|
73
70
|
- winston@3.11.0
|
|
74
71
|
- zod@3.22.4
|
|
75
|
-
error:
|
|
72
|
+
error: "InputValidationError: \"duration\" parameter is number must be greater than 0. Error code: too_small."
|
|
76
73
|
tree:
|
|
77
74
|
children:
|
|
78
75
|
child:
|
|
79
76
|
pipeline:
|
|
80
|
-
|
|
77
|
+
observe:
|
|
78
|
+
- mock-observations
|
|
81
79
|
inputs: null
|