@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
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
name:
|
|
2
|
-
description: failure when `
|
|
1
|
+
name: regroup
|
|
2
|
+
description: failure when `regroup` is not an array
|
|
3
3
|
initialize:
|
|
4
|
-
|
|
5
|
-
plugins:
|
|
6
|
-
group-by:
|
|
7
|
-
path: "builtin"
|
|
8
|
-
method: GroupBy
|
|
4
|
+
plugins: {}
|
|
9
5
|
tree:
|
|
10
6
|
children:
|
|
11
7
|
my-app:
|
|
12
8
|
pipeline:
|
|
13
|
-
|
|
14
|
-
config:
|
|
15
|
-
group-by:
|
|
16
|
-
group: cloud/region
|
|
9
|
+
regroup: cloud/region
|
|
17
10
|
inputs:
|
|
18
11
|
- timestamp: 2023-07-06T00:00
|
|
19
12
|
duration: 300
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
name:
|
|
2
|
-
description:
|
|
1
|
+
name: regroup
|
|
2
|
+
description:
|
|
3
3
|
initialize:
|
|
4
|
-
# outputs: ['yaml']
|
|
5
4
|
plugins:
|
|
6
|
-
group-by:
|
|
7
|
-
path: "builtin"
|
|
8
|
-
method: GroupBy
|
|
9
5
|
tree:
|
|
10
6
|
children:
|
|
11
7
|
my-app:
|
|
12
8
|
pipeline:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
group:
|
|
17
|
-
- cloud/region
|
|
18
|
-
- cloud/instance-type
|
|
9
|
+
regroup:
|
|
10
|
+
- cloud/region
|
|
11
|
+
- cloud/instance-type
|
|
19
12
|
inputs:
|
|
20
13
|
- timestamp: 2023-07-06T00:00
|
|
21
14
|
duration: 300
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: regroup
|
|
2
2
|
description: successful path
|
|
3
3
|
initialize:
|
|
4
|
-
# outputs: ['yaml']
|
|
5
4
|
plugins:
|
|
6
|
-
group-by:
|
|
7
|
-
path: "builtin"
|
|
8
|
-
method: GroupBy
|
|
9
5
|
tree:
|
|
10
6
|
children:
|
|
11
7
|
my-app:
|
|
12
8
|
pipeline:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
group:
|
|
17
|
-
- cloud/region
|
|
18
|
-
- cloud/instance-type
|
|
9
|
+
regroup:
|
|
10
|
+
- cloud/region
|
|
11
|
+
- cloud/instance-type
|
|
19
12
|
inputs:
|
|
20
13
|
- timestamp: 2023-07-06T00:00
|
|
21
14
|
duration: 300
|
|
@@ -2,17 +2,16 @@ name: generics
|
|
|
2
2
|
description: a pipeline that does arbitrary calculations using our generic arithmetic builtins
|
|
3
3
|
tags:
|
|
4
4
|
initialize:
|
|
5
|
-
# outputs: [yaml]
|
|
6
5
|
plugins:
|
|
7
6
|
"interpolate":
|
|
8
7
|
method: Interpolation
|
|
9
|
-
path:
|
|
8
|
+
path: "builtin"
|
|
10
9
|
global-config:
|
|
11
10
|
method: linear
|
|
12
11
|
x: [0, 10, 50, 100]
|
|
13
12
|
y: [0.12, 0.32, 0.75, 1.02]
|
|
14
|
-
input-parameter:
|
|
15
|
-
output-parameter:
|
|
13
|
+
input-parameter: "cpu/utilization"
|
|
14
|
+
output-parameter: "cpu-factor"
|
|
16
15
|
"cpu-factor-to-wattage":
|
|
17
16
|
method: Multiply
|
|
18
17
|
path: builtin
|
|
@@ -63,15 +62,15 @@ tree:
|
|
|
63
62
|
children:
|
|
64
63
|
child-1:
|
|
65
64
|
pipeline:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
65
|
+
compute:
|
|
66
|
+
- interpolate
|
|
67
|
+
- cpu-factor-to-wattage
|
|
68
|
+
- wattage-times-duration
|
|
69
|
+
- wattage-to-energy-kwh
|
|
70
|
+
- calculate-vcpu-ratio
|
|
71
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
72
|
+
- coefficient
|
|
73
|
+
- multiply
|
|
75
74
|
defaults:
|
|
76
75
|
cpu/thermal-design-power: 100
|
|
77
76
|
vcpus-allocated: 1
|
|
@@ -11,7 +11,7 @@ initialize:
|
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-azure-instances.csv
|
|
12
12
|
query:
|
|
13
13
|
instance-class: cloud/instance-type
|
|
14
|
-
output:
|
|
14
|
+
output: "*"
|
|
15
15
|
extract-processor-name:
|
|
16
16
|
path: builtin
|
|
17
17
|
method: Regex
|
|
@@ -19,14 +19,13 @@ initialize:
|
|
|
19
19
|
parameter: cpu-model-name
|
|
20
20
|
match: /^([^,])+/g
|
|
21
21
|
output: cpu/name
|
|
22
|
-
outputs:
|
|
23
|
-
- yaml
|
|
24
22
|
tree:
|
|
25
23
|
children:
|
|
26
24
|
child:
|
|
27
25
|
pipeline:
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
compute:
|
|
27
|
+
- cloud-instance-metadata
|
|
28
|
+
- extract-processor-name
|
|
30
29
|
inputs:
|
|
31
30
|
- timestamp: 2023-08-06T00:00
|
|
32
31
|
duration: 3600
|
|
@@ -6,27 +6,51 @@ tags:
|
|
|
6
6
|
category: on-premise
|
|
7
7
|
aggregation:
|
|
8
8
|
metrics:
|
|
9
|
-
-
|
|
9
|
+
- carbon
|
|
10
10
|
type: "both"
|
|
11
|
-
params:
|
|
12
11
|
initialize:
|
|
13
|
-
# outputs: ['yaml']
|
|
14
12
|
plugins:
|
|
15
13
|
"interpolate":
|
|
16
14
|
method: Interpolation
|
|
17
|
-
path:
|
|
15
|
+
path: "builtin"
|
|
18
16
|
global-config:
|
|
19
17
|
method: linear
|
|
20
18
|
x: [0, 10, 50, 100]
|
|
21
19
|
y: [0.12, 0.32, 0.75, 1.02]
|
|
22
|
-
input-parameter:
|
|
23
|
-
output-parameter:
|
|
20
|
+
input-parameter: "cpu/utilization"
|
|
21
|
+
output-parameter: "cpu-factor"
|
|
22
|
+
parameter-metadata:
|
|
23
|
+
inputs:
|
|
24
|
+
cpu/utilization:
|
|
25
|
+
unit: percentage
|
|
26
|
+
description: refers to CPU utilization.
|
|
27
|
+
aggregation-method: avg
|
|
28
|
+
outputs:
|
|
29
|
+
cpu-factor:
|
|
30
|
+
unit: kWh
|
|
31
|
+
description: result of interpolate
|
|
32
|
+
aggregation-method: avg
|
|
24
33
|
"cpu-factor-to-wattage":
|
|
25
34
|
method: Multiply
|
|
26
35
|
path: builtin
|
|
27
36
|
global-config:
|
|
28
37
|
input-parameters: ["cpu-factor", "cpu/thermal-design-power"]
|
|
29
38
|
output-parameter: "cpu-wattage"
|
|
39
|
+
parameter-metadata:
|
|
40
|
+
inputs:
|
|
41
|
+
cpu-factor:
|
|
42
|
+
unit: kWh
|
|
43
|
+
description: result of interpolate
|
|
44
|
+
aggregation-method: avg
|
|
45
|
+
cpu/thermal-design-power:
|
|
46
|
+
unit: kWh
|
|
47
|
+
description: thermal design power for a processor
|
|
48
|
+
aggregation-method: avg
|
|
49
|
+
outputs:
|
|
50
|
+
cpu-wattage:
|
|
51
|
+
unit: kWh
|
|
52
|
+
description: the energy used by the CPU
|
|
53
|
+
aggregation-method: sum
|
|
30
54
|
"wattage-times-duration":
|
|
31
55
|
method: Multiply
|
|
32
56
|
path: builtin
|
|
@@ -40,6 +64,17 @@ initialize:
|
|
|
40
64
|
numerator: cpu-wattage-times-duration
|
|
41
65
|
denominator: 3600000
|
|
42
66
|
output: cpu-energy-raw
|
|
67
|
+
parameter-metadata:
|
|
68
|
+
inputs:
|
|
69
|
+
cpu-wattage-times-duration:
|
|
70
|
+
unit: kWh
|
|
71
|
+
description: CPU wattage multiplied by duration
|
|
72
|
+
aggregation-method: sum
|
|
73
|
+
outputs:
|
|
74
|
+
cpu-energy-raw:
|
|
75
|
+
unit: kWh
|
|
76
|
+
description: Raw energy used by CPU in kWh
|
|
77
|
+
aggregation-method: sum
|
|
43
78
|
"calculate-vcpu-ratio":
|
|
44
79
|
method: Divide
|
|
45
80
|
path: "builtin"
|
|
@@ -47,6 +82,12 @@ initialize:
|
|
|
47
82
|
numerator: vcpus-total
|
|
48
83
|
denominator: vcpus-allocated
|
|
49
84
|
output: vcpu-ratio
|
|
85
|
+
parameter-metadata:
|
|
86
|
+
outputs:
|
|
87
|
+
vcpu-ratio:
|
|
88
|
+
unit: none
|
|
89
|
+
description: Ratio of vCPUs
|
|
90
|
+
aggregation-method: none
|
|
50
91
|
"correct-cpu-energy-for-vcpu-ratio":
|
|
51
92
|
method: Divide
|
|
52
93
|
path: "builtin"
|
|
@@ -63,11 +104,32 @@ initialize:
|
|
|
63
104
|
global-config:
|
|
64
105
|
input-parameters: ["cpu-energy-kwh", "grid/carbon-intensity"]
|
|
65
106
|
output-parameter: "carbon-operational"
|
|
107
|
+
parameter-metadata:
|
|
108
|
+
inputs:
|
|
109
|
+
cpu-energy-kwh:
|
|
110
|
+
unit: kWh
|
|
111
|
+
description: Corrected CPU energy in kWh
|
|
112
|
+
aggregation-method: sum
|
|
113
|
+
grid/carbon-intensity:
|
|
114
|
+
unit: gCO2eq/kWh
|
|
115
|
+
description: Carbon intensity for the grid
|
|
116
|
+
aggregation-method: avg
|
|
117
|
+
outputs:
|
|
118
|
+
carbon-operational:
|
|
119
|
+
unit: gCO2eq
|
|
120
|
+
description: Operational carbon footprint
|
|
121
|
+
aggregation-method: sum
|
|
66
122
|
sci:
|
|
67
123
|
path: "builtin"
|
|
68
124
|
method: Sci
|
|
69
125
|
global-config:
|
|
70
126
|
functional-unit: "requests"
|
|
127
|
+
parameter-metadata:
|
|
128
|
+
inputs:
|
|
129
|
+
requests:
|
|
130
|
+
unit: none
|
|
131
|
+
description: expressed the final SCI value
|
|
132
|
+
aggregation-method: sum
|
|
71
133
|
"sum-carbon":
|
|
72
134
|
path: "builtin"
|
|
73
135
|
method: Sum
|
|
@@ -76,6 +138,21 @@ initialize:
|
|
|
76
138
|
- carbon-operational
|
|
77
139
|
- carbon-embodied
|
|
78
140
|
output-parameter: carbon
|
|
141
|
+
parameter-metadata:
|
|
142
|
+
inputs:
|
|
143
|
+
carbon-operational:
|
|
144
|
+
description: Operational carbon footprint
|
|
145
|
+
unit: gCO2eq
|
|
146
|
+
aggregation-method: sum
|
|
147
|
+
carbon-embodied:
|
|
148
|
+
description: Embodied carbon footprint
|
|
149
|
+
unit: gCO2eq
|
|
150
|
+
aggregation-method: sum
|
|
151
|
+
outputs:
|
|
152
|
+
carbon:
|
|
153
|
+
description: Total carbon footprint
|
|
154
|
+
unit: gCO2eq
|
|
155
|
+
aggregation-method: sum
|
|
79
156
|
time-sync:
|
|
80
157
|
method: TimeSync
|
|
81
158
|
path: "builtin"
|
|
@@ -84,6 +161,32 @@ initialize:
|
|
|
84
161
|
end-time: "2023-12-12T00:01:00.000Z"
|
|
85
162
|
interval: 5
|
|
86
163
|
allow-padding: true
|
|
164
|
+
parameter-metadata:
|
|
165
|
+
inputs:
|
|
166
|
+
timestamp:
|
|
167
|
+
unit: RFC3339
|
|
168
|
+
description: refers to the time of occurrence of the input
|
|
169
|
+
aggregation-method: none
|
|
170
|
+
duration:
|
|
171
|
+
unit: seconds
|
|
172
|
+
description: refers to the duration of the input
|
|
173
|
+
aggregation-method: sum
|
|
174
|
+
cloud/instance-type:
|
|
175
|
+
unit: none
|
|
176
|
+
description: type of Cloud Instance name used in the cloud provider APIs
|
|
177
|
+
aggregation-method: none
|
|
178
|
+
cloud/region:
|
|
179
|
+
unit: none
|
|
180
|
+
description: region cloud instance
|
|
181
|
+
aggregation-method: none
|
|
182
|
+
time-reserved:
|
|
183
|
+
unit: seconds
|
|
184
|
+
description: time reserved for a component
|
|
185
|
+
aggregation-method: avg
|
|
186
|
+
network/energy:
|
|
187
|
+
description: "Energy consumed by the Network of the component"
|
|
188
|
+
unit: "kWh"
|
|
189
|
+
aggregation-method: "sum"
|
|
87
190
|
tree:
|
|
88
191
|
children:
|
|
89
192
|
child-0:
|
|
@@ -96,17 +199,18 @@ tree:
|
|
|
96
199
|
vcpus-allocated: 1
|
|
97
200
|
vcpus-total: 8
|
|
98
201
|
pipeline:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
202
|
+
compute:
|
|
203
|
+
- interpolate
|
|
204
|
+
- cpu-factor-to-wattage
|
|
205
|
+
- wattage-times-duration
|
|
206
|
+
- wattage-to-energy-kwh
|
|
207
|
+
- calculate-vcpu-ratio
|
|
208
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
209
|
+
- sci-embodied
|
|
210
|
+
- operational-carbon
|
|
211
|
+
- sum-carbon
|
|
212
|
+
- time-sync
|
|
213
|
+
- sci
|
|
110
214
|
inputs:
|
|
111
215
|
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
112
216
|
cloud/instance-type: A1
|
|
@@ -146,17 +250,18 @@ tree:
|
|
|
146
250
|
vcpus-allocated: 1
|
|
147
251
|
vcpus-total: 8
|
|
148
252
|
pipeline:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
253
|
+
compute:
|
|
254
|
+
- interpolate
|
|
255
|
+
- cpu-factor-to-wattage
|
|
256
|
+
- wattage-times-duration
|
|
257
|
+
- wattage-to-energy-kwh
|
|
258
|
+
- calculate-vcpu-ratio
|
|
259
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
260
|
+
- sci-embodied
|
|
261
|
+
- operational-carbon
|
|
262
|
+
- sum-carbon
|
|
263
|
+
- time-sync
|
|
264
|
+
- sci
|
|
160
265
|
inputs:
|
|
161
266
|
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
162
267
|
cloud/instance-type: A1
|
|
@@ -198,17 +303,18 @@ tree:
|
|
|
198
303
|
vcpus-allocated: 1
|
|
199
304
|
vcpus-total: 8
|
|
200
305
|
pipeline:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
306
|
+
compute:
|
|
307
|
+
- interpolate
|
|
308
|
+
- cpu-factor-to-wattage
|
|
309
|
+
- wattage-times-duration
|
|
310
|
+
- wattage-to-energy-kwh
|
|
311
|
+
- calculate-vcpu-ratio
|
|
312
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
313
|
+
- sci-embodied
|
|
314
|
+
- operational-carbon
|
|
315
|
+
- sum-carbon
|
|
316
|
+
- time-sync
|
|
317
|
+
- sci
|
|
212
318
|
inputs:
|
|
213
319
|
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
214
320
|
cloud/instance-type: A1
|
|
@@ -248,17 +354,18 @@ tree:
|
|
|
248
354
|
vcpus-allocated: 1
|
|
249
355
|
vcpus-total: 8
|
|
250
356
|
pipeline:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
357
|
+
compute:
|
|
358
|
+
- interpolate
|
|
359
|
+
- cpu-factor-to-wattage
|
|
360
|
+
- wattage-times-duration
|
|
361
|
+
- wattage-to-energy-kwh
|
|
362
|
+
- calculate-vcpu-ratio
|
|
363
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
364
|
+
- sci-embodied
|
|
365
|
+
- operational-carbon
|
|
366
|
+
- sum-carbon
|
|
367
|
+
- time-sync
|
|
368
|
+
- sci
|
|
262
369
|
inputs:
|
|
263
370
|
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
264
371
|
cloud/instance-type: A1
|