@grnsft/if 0.6.0-beta.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.
- package/Refactor-migration-guide.md +68 -82
- package/github-processes.md +3 -9
- package/manifests/examples/builtins/coefficient/failure-invalid-config-input-param.yml +2 -4
- package/manifests/examples/builtins/coefficient/failure-output-param-is-null.yaml +1 -3
- package/manifests/examples/builtins/coefficient/success.yml +1 -3
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +1 -2
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +3 -4
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml +2 -3
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/success.yml +1 -2
- package/manifests/examples/builtins/csv-lookup/region-metadata/failure-missing-column.yml +1 -1
- package/manifests/examples/builtins/csv-lookup/region-metadata/failure-missing-output.yml +2 -2
- package/manifests/examples/builtins/csv-lookup/region-metadata/success-renaming.yml +1 -1
- package/manifests/examples/builtins/csv-lookup/region-metadata/success.yml +1 -1
- package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-missing-input-param.yml +1 -2
- package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml +1 -2
- package/manifests/examples/builtins/csv-lookup/tdp-finder/success.yml +1 -2
- package/manifests/examples/builtins/divide/failure-invalid-config-denominator.yml +3 -5
- package/manifests/examples/builtins/divide/failure-missing-numerator.yml +2 -4
- package/manifests/examples/builtins/divide/success.yml +2 -2
- package/manifests/examples/builtins/exponent/success.yml +1 -1
- package/manifests/examples/builtins/interpolation/success.yml +1 -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 +1 -1
- package/manifests/examples/builtins/mock-observations/failure-missing-timestamp-from-param.yml +1 -1
- package/manifests/examples/builtins/mock-observations/success.yml +1 -1
- package/manifests/examples/builtins/multiply/failure-input-parameter-is-missing.yml +1 -1
- package/manifests/examples/builtins/multiply/success-with-multiple-inputs.yml +1 -1
- package/manifests/examples/builtins/multiply/success.yml +1 -1
- package/manifests/examples/builtins/regex/failure-missing-input-param.yml +1 -1
- package/manifests/examples/builtins/regex/failure-not-matching-with-regex.yml +2 -2
- package/manifests/examples/builtins/regex/success.yml +1 -1
- package/manifests/examples/builtins/sci/failure-invalid-config-value.yml +3 -4
- package/manifests/examples/builtins/sci/failure-missing-input-param.yml +1 -1
- package/manifests/examples/builtins/sci/success.yml +1 -1
- package/manifests/examples/builtins/sci-embodied/scenario-1.yml +27 -0
- package/manifests/examples/builtins/sci-embodied/scenario-2.yml +37 -0
- package/manifests/examples/builtins/sci-embodied/success.yml +13 -0
- package/manifests/examples/builtins/shell/failure-invalid-command.yml +2 -2
- package/manifests/examples/builtins/shell/success.yml +2 -2
- package/manifests/examples/builtins/subtract/success.yml +1 -1
- package/manifests/examples/builtins/sum/failure-missing-input-param.yml +2 -2
- package/manifests/examples/builtins/sum/failure-missing-output-param.yml +2 -2
- package/manifests/examples/builtins/sum/success.yml +1 -1
- package/manifests/examples/builtins/time-converter/success.yaml +24 -0
- package/manifests/examples/builtins/time-sync/failure-config-start-later-end.yml +10 -12
- package/manifests/examples/builtins/time-sync/{failure-missing-global-config.yml → failure-missing-config.yml} +3 -8
- package/manifests/examples/builtins/time-sync/success.yml +2 -2
- package/manifests/examples/features/regroup/failure-missing-cloud-instance-type.yml +1 -1
- package/manifests/examples/features/regroup/success.yml +1 -1
- package/manifests/examples/pipelines/generics.yml +8 -8
- package/manifests/examples/pipelines/instance-metadata.yml +2 -2
- package/manifests/examples/pipelines/nesting.yml +75 -33
- package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-aggregate.yaml +166 -122
- package/manifests/examples/pipelines/outputs-if-diff/pipeline-with-mocks.yaml +130 -70
- package/manifests/examples/pipelines/pipeline-teads-sci.yml +15 -15
- package/manifests/examples/pipelines/pipeline-with-aggregate.yml +57 -27
- package/manifests/examples/pipelines/pipeline-with-mocks.yml +99 -41
- package/manifests/examples/pipelines/scenario-3.yml +1 -1
- package/manifests/examples/pipelines/scenario-4.yml +5 -5
- package/manifests/examples/pipelines/scenario-5.yml +3 -3
- package/manifests/examples/pipelines/sci.yml +12 -12
- package/manifests/examples/pipelines/teads-curve.yml +10 -10
- package/manifests/examples/pipelines/zeros.yml +23 -23
- package/manifests/outputs/bugs/aggregation-error-wrong-metric.yaml +40 -40
- package/manifests/outputs/bugs/input-error-missing-duration.yaml +1 -1
- package/manifests/outputs/bugs/mock-observations-failure-duration-is-zero.yaml +2 -2
- package/manifests/outputs/bugs/pipeline-error-naming-mismatch.yaml +1 -1
- package/manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yaml +1 -1
- package/manifests/outputs/bugs/pipeline-ordering-error.yaml +6 -6
- package/manifests/outputs/builtins/coefficient/failure-invalid-config-input-param.yaml +2 -2
- package/manifests/outputs/builtins/coefficient/failure-output-param-is-null.yaml +1 -1
- package/manifests/outputs/builtins/coefficient/success.yaml +23 -22
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +1 -1
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +76 -0
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml +22 -21
- package/manifests/outputs/builtins/csv-lookup/cloud-metadata/success.yaml +1 -1
- package/manifests/outputs/builtins/csv-lookup/region-metadata/failure-missing-column.yaml +1 -1
- package/manifests/outputs/builtins/csv-lookup/region-metadata/failure-missing-output.yaml +21 -20
- package/manifests/outputs/builtins/csv-lookup/region-metadata/success-renaming.yaml +1 -1
- package/manifests/outputs/builtins/csv-lookup/region-metadata/success.yaml +1 -1
- package/manifests/outputs/builtins/csv-lookup/tdp-finder/failure-missing-input-param.yaml +1 -1
- package/manifests/outputs/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yaml +1 -1
- package/manifests/outputs/builtins/csv-lookup/tdp-finder/success.yaml +1 -1
- package/manifests/outputs/builtins/divide/failure-invalid-config-denominator.yaml +41 -25
- package/manifests/outputs/builtins/divide/failure-missing-numerator.yaml +32 -23
- package/manifests/outputs/builtins/divide/success-denominator-equal-zero.yaml +2 -2
- package/manifests/outputs/builtins/divide/success.yaml +2 -2
- package/manifests/outputs/builtins/exponent/success.yaml +1 -1
- package/manifests/outputs/builtins/interpolation/interpolation.yaml +1 -1
- package/manifests/outputs/builtins/interpolation/success.yaml +1 -1
- package/manifests/outputs/builtins/mock-observations/failure-invalid-config-cpu-range.yaml +3 -3
- package/manifests/outputs/builtins/mock-observations/failure-invalid-memory-utilization-range.yaml +2 -2
- package/manifests/outputs/builtins/mock-observations/failure-missing-timestamp-from-param.yaml +1 -1
- package/manifests/outputs/builtins/mock-observations/success.yaml +49 -190
- package/manifests/outputs/builtins/multiply/failure-input-parameter-is-missing.yaml +1 -1
- package/manifests/outputs/builtins/multiply/success-with-multiple-inputs.yaml +1 -1
- package/manifests/outputs/builtins/multiply/success.yaml +1 -1
- package/manifests/outputs/builtins/regex/failure-missing-input-param.yaml +1 -1
- package/manifests/outputs/builtins/regex/failure-not-matching-with-regex.yaml +72 -0
- package/manifests/outputs/builtins/regex/success.yaml +1 -1
- package/manifests/outputs/builtins/sci/failure-invalid-config-value.yaml +22 -23
- package/manifests/outputs/builtins/sci/failure-missing-input-param.yaml +1 -1
- package/manifests/outputs/builtins/sci/success.yaml +1 -1
- package/manifests/outputs/builtins/sci-embodied/failure-invalid-default-emission-value.yaml +22 -26
- package/manifests/outputs/builtins/sci-embodied/scenario-1.yaml +100 -0
- package/manifests/outputs/builtins/sci-embodied/scenario-2.yaml +101 -0
- package/manifests/outputs/builtins/sci-embodied/success.yaml +44 -20
- package/manifests/outputs/builtins/shell/failure-invalid-command.yaml +2 -2
- package/manifests/outputs/builtins/shell/success.yaml +1 -1
- package/manifests/outputs/builtins/subtract/success.yaml +1 -1
- package/manifests/outputs/builtins/sum/failure-missing-input-param.yaml +2 -2
- package/manifests/outputs/builtins/sum/failure-missing-output-param.yaml +2 -2
- package/manifests/outputs/builtins/sum/success.yaml +1 -1
- package/manifests/outputs/builtins/time-converter/success.yaml +73 -0
- package/manifests/outputs/builtins/time-sync/failure-config-start-later-end.yaml +3 -3
- package/manifests/outputs/builtins/time-sync/failure-missing-config.yaml +74 -0
- package/manifests/outputs/builtins/time-sync/success.yaml +50 -59
- package/manifests/outputs/features/aggregate-failure-invalid-metrics.yaml +1 -1
- package/manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yaml +1 -1
- package/manifests/outputs/features/aggregate-horizontal.yaml +4 -2
- package/manifests/outputs/features/aggregate-vertical.yaml +4 -2
- package/manifests/outputs/features/aggregate.yaml +4 -2
- package/manifests/outputs/features/regroup/failure-invalid-regroup.yaml +87 -0
- package/manifests/outputs/features/regroup/failure-missing-cloud-instance-type.yaml +87 -0
- package/manifests/outputs/pipelines/cloud-metadata-divide.yaml +2 -2
- package/manifests/outputs/pipelines/generics.yaml +28 -28
- package/manifests/outputs/pipelines/instance-metadata.yaml +14 -14
- package/manifests/outputs/pipelines/nesting.yaml +713 -486
- package/manifests/outputs/pipelines/pipeline-teads-sci.yaml +63 -32
- package/manifests/outputs/pipelines/scenario-4.yaml +105 -0
- package/manifests/outputs/pipelines/sci.yaml +56 -32
- package/manifests/outputs/pipelines/teads-curve.yaml +18 -18
- package/manifests/outputs/pipelines/zeros.yaml +27 -27
- package/package.json +7 -5
- package/src/__mocks__/mock-manifest.yaml +1 -2
- package/src/if-env/config/env-template.yml +1 -2
- package/src/if-run/builtins/coefficient/README.md +41 -17
- package/src/if-run/builtins/copy-param/README.md +28 -8
- package/src/if-run/builtins/csv-lookup/README.md +31 -11
- package/src/if-run/builtins/divide/README.md +34 -12
- package/src/if-run/builtins/exponent/README.md +29 -11
- package/src/if-run/builtins/interpolation/README.md +37 -22
- package/src/if-run/builtins/mock-observations/README.md +27 -7
- package/src/if-run/builtins/multiply/README.md +27 -9
- package/src/if-run/builtins/regex/README.md +31 -11
- package/src/if-run/builtins/sci/README.md +29 -8
- package/src/if-run/builtins/sci-embodied/README.md +76 -75
- package/src/if-run/builtins/shell/README.md +15 -7
- package/src/if-run/builtins/subtract/README.md +28 -11
- package/src/if-run/builtins/sum/README.md +47 -14
- package/src/if-run/builtins/time-converter/README.md +136 -0
- package/src/if-run/builtins/time-sync/README.md +44 -22
- package/.gitmodules +0 -3
- package/build/common/config/index.d.ts +0 -1
- package/build/common/config/index.js +0 -6
- package/build/common/config/strings.d.ts +0 -8
- package/build/common/config/strings.js +0 -16
- package/build/common/lib/load.d.ts +0 -6
- package/build/common/lib/load.js +0 -18
- package/build/common/types/manifest.d.ts +0 -13
- package/build/common/types/manifest.js +0 -3
- package/build/common/util/debug-logger.d.ts +0 -4
- package/build/common/util/debug-logger.js +0 -115
- package/build/common/util/fs.d.ts +0 -20
- package/build/common/util/fs.js +0 -94
- package/build/common/util/helpers.d.ts +0 -15
- package/build/common/util/helpers.js +0 -80
- package/build/common/util/logger.d.ts +0 -5
- package/build/common/util/logger.js +0 -39
- package/build/common/util/validations.d.ts +0 -367
- package/build/common/util/validations.js +0 -141
- package/build/common/util/yaml.d.ts +0 -12
- package/build/common/util/yaml.js +0 -59
- package/build/if-check/config/config.d.ts +0 -6
- package/build/if-check/config/config.js +0 -31
- package/build/if-check/config/index.d.ts +0 -2
- package/build/if-check/config/index.js +0 -8
- package/build/if-check/config/strings.d.ts +0 -12
- package/build/if-check/config/strings.js +0 -16
- package/build/if-check/index.d.ts +0 -2
- package/build/if-check/index.js +0 -98
- package/build/if-check/types/process-args.d.ts +0 -4
- package/build/if-check/types/process-args.js +0 -3
- package/build/if-check/util/args.d.ts +0 -10
- package/build/if-check/util/args.js +0 -56
- package/build/if-check/util/helpers.d.ts +0 -4
- package/build/if-check/util/helpers.js +0 -18
- package/build/if-check/util/npm.d.ts +0 -4
- package/build/if-check/util/npm.js +0 -59
- package/build/if-csv/config/config.d.ts +0 -6
- package/build/if-csv/config/config.js +0 -37
- package/build/if-csv/config/index.d.ts +0 -2
- package/build/if-csv/config/index.js +0 -8
- package/build/if-csv/config/strings.d.ts +0 -4
- package/build/if-csv/config/strings.js +0 -8
- package/build/if-csv/index.d.ts +0 -2
- package/build/if-csv/index.js +0 -63
- package/build/if-csv/types/csv.d.ts +0 -7
- package/build/if-csv/types/csv.js +0 -3
- package/build/if-csv/types/process-args.d.ts +0 -5
- package/build/if-csv/types/process-args.js +0 -3
- package/build/if-csv/util/args.d.ts +0 -12
- package/build/if-csv/util/args.js +0 -51
- package/build/if-csv/util/helpers.d.ts +0 -9
- package/build/if-csv/util/helpers.js +0 -95
- package/build/if-diff/config/config.d.ts +0 -6
- package/build/if-diff/config/config.js +0 -31
- package/build/if-diff/config/index.d.ts +0 -2
- package/build/if-diff/config/index.js +0 -8
- package/build/if-diff/config/strings.d.ts +0 -6
- package/build/if-diff/config/strings.js +0 -10
- package/build/if-diff/index.d.ts +0 -2
- package/build/if-diff/index.js +0 -46
- package/build/if-diff/lib/compare.d.ts +0 -10
- package/build/if-diff/lib/compare.js +0 -56
- package/build/if-diff/lib/load.d.ts +0 -55
- package/build/if-diff/lib/load.js +0 -51
- package/build/if-diff/types/args.d.ts +0 -5
- package/build/if-diff/types/args.js +0 -3
- package/build/if-diff/types/compare.d.ts +0 -7
- package/build/if-diff/types/compare.js +0 -3
- package/build/if-diff/types/process-args.d.ts +0 -4
- package/build/if-diff/types/process-args.js +0 -3
- package/build/if-diff/util/args.d.ts +0 -5
- package/build/if-diff/util/args.js +0 -51
- package/build/if-diff/util/helpers.d.ts +0 -13
- package/build/if-diff/util/helpers.js +0 -75
- package/build/if-env/config/config.d.ts +0 -6
- package/build/if-env/config/config.js +0 -37
- package/build/if-env/config/index.d.ts +0 -2
- package/build/if-env/config/index.js +0 -8
- package/build/if-env/config/strings.d.ts +0 -7
- package/build/if-env/config/strings.js +0 -11
- package/build/if-env/index.d.ts +0 -2
- package/build/if-env/index.js +0 -40
- package/build/if-env/types/if-env.d.ts +0 -8
- package/build/if-env/types/if-env.js +0 -3
- package/build/if-env/types/npm.d.ts +0 -9
- package/build/if-env/types/npm.js +0 -3
- package/build/if-env/types/process-args.d.ts +0 -5
- package/build/if-env/types/process-args.js +0 -3
- package/build/if-env/util/args.d.ts +0 -12
- package/build/if-env/util/args.js +0 -47
- package/build/if-env/util/helpers.d.ts +0 -20
- package/build/if-env/util/helpers.js +0 -94
- package/build/if-env/util/npm.d.ts +0 -24
- package/build/if-env/util/npm.js +0 -126
- package/build/if-run/builtins/coefficient/index.d.ts +0 -2
- package/build/if-run/builtins/coefficient/index.js +0 -67
- package/build/if-run/builtins/copy-param/index.d.ts +0 -2
- package/build/if-run/builtins/copy-param/index.js +0 -70
- package/build/if-run/builtins/csv-lookup/index.d.ts +0 -2
- package/build/if-run/builtins/csv-lookup/index.js +0 -190
- package/build/if-run/builtins/divide/index.d.ts +0 -2
- package/build/if-run/builtins/divide/index.js +0 -80
- package/build/if-run/builtins/exponent/index.d.ts +0 -2
- package/build/if-run/builtins/exponent/index.js +0 -60
- package/build/if-run/builtins/export-log.d.ts +0 -4
- package/build/if-run/builtins/export-log.js +0 -44
- package/build/if-run/builtins/export-yaml.d.ts +0 -4
- package/build/if-run/builtins/export-yaml.js +0 -30
- package/build/if-run/builtins/index.d.ts +0 -15
- package/build/if-run/builtins/index.js +0 -34
- package/build/if-run/builtins/interpolation/index.d.ts +0 -2
- package/build/if-run/builtins/interpolation/index.js +0 -151
- package/build/if-run/builtins/mock-observations/helpers/common-generator.d.ts +0 -3
- package/build/if-run/builtins/mock-observations/helpers/common-generator.js +0 -29
- package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.d.ts +0 -3
- package/build/if-run/builtins/mock-observations/helpers/rand-int-generator.js +0 -48
- package/build/if-run/builtins/mock-observations/index.d.ts +0 -2
- package/build/if-run/builtins/mock-observations/index.js +0 -116
- package/build/if-run/builtins/mock-observations/interfaces/index.d.ts +0 -6
- package/build/if-run/builtins/mock-observations/interfaces/index.js +0 -3
- package/build/if-run/builtins/multiply/index.d.ts +0 -2
- package/build/if-run/builtins/multiply/index.js +0 -59
- package/build/if-run/builtins/regex/index.d.ts +0 -2
- package/build/if-run/builtins/regex/index.js +0 -76
- package/build/if-run/builtins/sci/config.d.ts +0 -1
- package/build/if-run/builtins/sci/config.js +0 -44
- package/build/if-run/builtins/sci/index.d.ts +0 -2
- package/build/if-run/builtins/sci/index.js +0 -92
- package/build/if-run/builtins/sci-embodied/index.d.ts +0 -2
- package/build/if-run/builtins/sci-embodied/index.js +0 -156
- package/build/if-run/builtins/shell/index.d.ts +0 -2
- package/build/if-run/builtins/shell/index.js +0 -60
- package/build/if-run/builtins/subtract/index.d.ts +0 -2
- package/build/if-run/builtins/subtract/index.js +0 -61
- package/build/if-run/builtins/sum/index.d.ts +0 -2
- package/build/if-run/builtins/sum/index.js +0 -66
- package/build/if-run/builtins/time-sync/index.d.ts +0 -17
- package/build/if-run/builtins/time-sync/index.js +0 -339
- package/build/if-run/config/config.d.ts +0 -9
- package/build/if-run/config/config.js +0 -73
- package/build/if-run/config/index.d.ts +0 -2
- package/build/if-run/config/index.js +0 -8
- package/build/if-run/config/strings.d.ts +0 -64
- package/build/if-run/config/strings.js +0 -76
- package/build/if-run/index.d.ts +0 -2
- package/build/if-run/index.js +0 -63
- package/build/if-run/lib/aggregate.d.ts +0 -15
- package/build/if-run/lib/aggregate.js +0 -123
- package/build/if-run/lib/compute.d.ts +0 -5
- package/build/if-run/lib/compute.js +0 -136
- package/build/if-run/lib/environment.d.ts +0 -5
- package/build/if-run/lib/environment.js +0 -75
- package/build/if-run/lib/exhaust.d.ts +0 -7
- package/build/if-run/lib/exhaust.js +0 -27
- package/build/if-run/lib/explain.d.ts +0 -9
- package/build/if-run/lib/explain.js +0 -43
- package/build/if-run/lib/initialize.d.ts +0 -6
- package/build/if-run/lib/initialize.js +0 -109
- package/build/if-run/lib/regroup.d.ts +0 -5
- package/build/if-run/lib/regroup.js +0 -64
- package/build/if-run/types/aggregation.d.ts +0 -5
- package/build/if-run/types/aggregation.js +0 -6
- package/build/if-run/types/compute.d.ts +0 -29
- package/build/if-run/types/compute.js +0 -3
- package/build/if-run/types/environment.d.ts +0 -18
- package/build/if-run/types/environment.js +0 -3
- package/build/if-run/types/exhaust-plugin-interface.d.ts +0 -7
- package/build/if-run/types/exhaust-plugin-interface.js +0 -3
- package/build/if-run/types/explain.d.ts +0 -10
- package/build/if-run/types/explain.js +0 -3
- package/build/if-run/types/interface.d.ts +0 -3
- package/build/if-run/types/interface.js +0 -6
- package/build/if-run/types/plugin-storage.d.ts +0 -6
- package/build/if-run/types/plugin-storage.js +0 -3
- package/build/if-run/types/process-args.d.ts +0 -25
- package/build/if-run/types/process-args.js +0 -3
- package/build/if-run/types/time-sync.d.ts +0 -17
- package/build/if-run/types/time-sync.js +0 -3
- package/build/if-run/util/aggregation-helper.d.ts +0 -7
- package/build/if-run/util/aggregation-helper.js +0 -47
- package/build/if-run/util/args.d.ts +0 -9
- package/build/if-run/util/args.js +0 -60
- package/build/if-run/util/helpers.d.ts +0 -14
- package/build/if-run/util/helpers.js +0 -57
- package/build/if-run/util/log-memoize.d.ts +0 -3
- package/build/if-run/util/log-memoize.js +0 -19
- package/build/if-run/util/os-checker.d.ts +0 -7
- package/build/if-run/util/os-checker.js +0 -97
- package/build/if-run/util/plugin-storage.d.ts +0 -14
- package/build/if-run/util/plugin-storage.js +0 -34
- package/grafana/IF_GRAFANA_SETUP.md +0 -71
- package/grafana/if_grafana_config.json +0 -370
- package/manifests/examples/builtins/divide/failure-denominator-equal-zero.yml +0 -38
- package/manifests/examples/builtins/interpolation/interpolation.yml +0 -24
- package/manifests/examples/builtins/sci-embodied/failure-invalid-default-emission-value.yml +0 -23
- package/manifests/examples/builtins/sci-embodied/failure-missing-expected-lifespan.yml +0 -23
- package/manifests/examples/pipelines/scenario-1.yml +0 -34
- package/manifests/examples/pipelines/scenario-2.yml +0 -52
- package/manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml +0 -72
- package/manifests/outputs/builtins/sci-embodied/failure-missing-expected-lifespan.yaml +0 -69
- package/manifests/outputs/pipelines/mock-obs-time-sync.yaml +0 -449
|
@@ -10,7 +10,7 @@ initialize:
|
|
|
10
10
|
"interpolate":
|
|
11
11
|
method: Interpolation
|
|
12
12
|
path: "builtin"
|
|
13
|
-
|
|
13
|
+
config:
|
|
14
14
|
method: linear
|
|
15
15
|
x: [0, 10, 50, 100]
|
|
16
16
|
y: [0.12, 0.32, 0.75, 1.02]
|
|
@@ -21,16 +21,20 @@ initialize:
|
|
|
21
21
|
cpu/utilization:
|
|
22
22
|
unit: percentage
|
|
23
23
|
description: refers to CPU utilization.
|
|
24
|
-
aggregation-method:
|
|
24
|
+
aggregation-method:
|
|
25
|
+
time: avg
|
|
26
|
+
component: avg
|
|
25
27
|
outputs:
|
|
26
28
|
cpu-factor:
|
|
27
29
|
unit: kWh
|
|
28
30
|
description: result of interpolate
|
|
29
|
-
aggregation-method:
|
|
31
|
+
aggregation-method:
|
|
32
|
+
time: avg
|
|
33
|
+
component: avg
|
|
30
34
|
"cpu-factor-to-wattage":
|
|
31
35
|
method: Multiply
|
|
32
36
|
path: builtin
|
|
33
|
-
|
|
37
|
+
config:
|
|
34
38
|
input-parameters: ["cpu-factor", "cpu/thermal-design-power"]
|
|
35
39
|
output-parameter: "cpu-wattage"
|
|
36
40
|
parameter-metadata:
|
|
@@ -38,26 +42,32 @@ initialize:
|
|
|
38
42
|
cpu-factor:
|
|
39
43
|
unit: kWh
|
|
40
44
|
description: result of interpolate
|
|
41
|
-
aggregation-method:
|
|
45
|
+
aggregation-method:
|
|
46
|
+
time: avg
|
|
47
|
+
component: avg
|
|
42
48
|
cpu/thermal-design-power:
|
|
43
49
|
unit: kWh
|
|
44
50
|
description: thermal design power for a processor
|
|
45
|
-
aggregation-method:
|
|
51
|
+
aggregation-method:
|
|
52
|
+
time: avg
|
|
53
|
+
component: avg
|
|
46
54
|
outputs:
|
|
47
55
|
cpu-wattage:
|
|
48
56
|
unit: kWh
|
|
49
57
|
description: the energy used by the CPU
|
|
50
|
-
aggregation-method:
|
|
58
|
+
aggregation-method:
|
|
59
|
+
time: sum
|
|
60
|
+
component: sum
|
|
51
61
|
"wattage-times-duration":
|
|
52
62
|
method: Multiply
|
|
53
63
|
path: builtin
|
|
54
|
-
|
|
64
|
+
config:
|
|
55
65
|
input-parameters: ["cpu-wattage", "duration"]
|
|
56
66
|
output-parameter: "cpu-wattage-times-duration"
|
|
57
67
|
"wattage-to-energy-kwh":
|
|
58
68
|
method: Divide
|
|
59
69
|
path: "builtin"
|
|
60
|
-
|
|
70
|
+
config:
|
|
61
71
|
numerator: cpu-wattage-times-duration
|
|
62
72
|
denominator: 3600000
|
|
63
73
|
output: cpu-energy-raw
|
|
@@ -66,16 +76,20 @@ initialize:
|
|
|
66
76
|
cpu-wattage-times-duration:
|
|
67
77
|
unit: kWh
|
|
68
78
|
description: CPU wattage multiplied by duration
|
|
69
|
-
aggregation-method:
|
|
79
|
+
aggregation-method:
|
|
80
|
+
time: sum
|
|
81
|
+
component: sum
|
|
70
82
|
outputs:
|
|
71
83
|
cpu-energy-raw:
|
|
72
84
|
unit: kWh
|
|
73
85
|
description: Raw energy used by CPU in kWh
|
|
74
|
-
aggregation-method:
|
|
86
|
+
aggregation-method:
|
|
87
|
+
time: sum
|
|
88
|
+
component: sum
|
|
75
89
|
"calculate-vcpu-ratio":
|
|
76
90
|
method: Divide
|
|
77
91
|
path: "builtin"
|
|
78
|
-
|
|
92
|
+
config:
|
|
79
93
|
numerator: vcpus-total
|
|
80
94
|
denominator: vcpus-allocated
|
|
81
95
|
output: vcpu-ratio
|
|
@@ -84,20 +98,26 @@ initialize:
|
|
|
84
98
|
vcpus-total:
|
|
85
99
|
unit: count
|
|
86
100
|
description: total number of vcpus available on a particular resource
|
|
87
|
-
aggregation-method:
|
|
101
|
+
aggregation-method:
|
|
102
|
+
time: copy
|
|
103
|
+
component: copy
|
|
88
104
|
vcpus-allocated:
|
|
89
105
|
unit: count
|
|
90
106
|
description: number of vcpus allocated to particular resource
|
|
91
|
-
aggregation-method:
|
|
107
|
+
aggregation-method:
|
|
108
|
+
time: copy
|
|
109
|
+
component: copy
|
|
92
110
|
outputs:
|
|
93
111
|
vcpu-ratio:
|
|
94
112
|
unit: none
|
|
95
113
|
description: Ratio of vCPUs
|
|
96
|
-
aggregation-method:
|
|
114
|
+
aggregation-method:
|
|
115
|
+
time: copy
|
|
116
|
+
component: copy
|
|
97
117
|
"correct-cpu-energy-for-vcpu-ratio":
|
|
98
118
|
method: Divide
|
|
99
119
|
path: "builtin"
|
|
100
|
-
|
|
120
|
+
config:
|
|
101
121
|
numerator: cpu-energy-raw
|
|
102
122
|
denominator: vcpu-ratio
|
|
103
123
|
output: cpu-energy-kwh
|
|
@@ -107,7 +127,7 @@ initialize:
|
|
|
107
127
|
"operational-carbon":
|
|
108
128
|
method: Multiply
|
|
109
129
|
path: builtin
|
|
110
|
-
|
|
130
|
+
config:
|
|
111
131
|
input-parameters: ["cpu-energy-kwh", "grid/carbon-intensity"]
|
|
112
132
|
output-parameter: "carbon-operational"
|
|
113
133
|
parameter-metadata:
|
|
@@ -115,45 +135,55 @@ initialize:
|
|
|
115
135
|
cpu-energy-kwh:
|
|
116
136
|
unit: kWh
|
|
117
137
|
description: Corrected CPU energy in kWh
|
|
118
|
-
aggregation-method:
|
|
138
|
+
aggregation-method:
|
|
139
|
+
time: sum
|
|
140
|
+
component: sum
|
|
119
141
|
grid/carbon-intensity:
|
|
120
142
|
unit: gCO2eq/kWh
|
|
121
143
|
description: Carbon intensity for the grid
|
|
122
|
-
aggregation-method:
|
|
144
|
+
aggregation-method:
|
|
145
|
+
time: avg
|
|
146
|
+
component: avg
|
|
123
147
|
outputs:
|
|
124
148
|
carbon-operational:
|
|
125
149
|
unit: gCO2eq
|
|
126
150
|
description: Operational carbon footprint
|
|
127
|
-
aggregation-method:
|
|
151
|
+
aggregation-method:
|
|
152
|
+
time: sum
|
|
153
|
+
component: sum
|
|
128
154
|
"sci":
|
|
129
155
|
path: "builtin"
|
|
130
156
|
method: Sci
|
|
131
|
-
|
|
157
|
+
config:
|
|
132
158
|
functional-unit: requests # factor to convert per time to per f.unit
|
|
133
159
|
parameter-metadata:
|
|
134
160
|
inputs:
|
|
135
161
|
requests:
|
|
136
162
|
unit: none
|
|
137
163
|
description: expressed the final SCI value
|
|
138
|
-
aggregation-method:
|
|
164
|
+
aggregation-method:
|
|
165
|
+
time: sum
|
|
166
|
+
component: sum
|
|
139
167
|
"sum-carbon":
|
|
140
168
|
path: "builtin"
|
|
141
169
|
method: Sum
|
|
142
|
-
|
|
170
|
+
config:
|
|
143
171
|
input-parameters:
|
|
144
172
|
- carbon-operational
|
|
145
|
-
- carbon
|
|
173
|
+
- embodied-carbon
|
|
146
174
|
output-parameter: carbon
|
|
147
175
|
parameter-metadata:
|
|
148
176
|
outputs:
|
|
149
177
|
carbon:
|
|
150
178
|
unit: gCO2eq
|
|
151
179
|
description: product of carbon
|
|
152
|
-
aggregation-method:
|
|
180
|
+
aggregation-method:
|
|
181
|
+
time: sum
|
|
182
|
+
component: sum
|
|
153
183
|
"time-sync":
|
|
154
184
|
method: TimeSync
|
|
155
185
|
path: "builtin"
|
|
156
|
-
|
|
186
|
+
config:
|
|
157
187
|
start-time: "2023-12-12T00:00:00.000Z"
|
|
158
188
|
end-time: "2023-12-12T00:01:00.000Z"
|
|
159
189
|
interval: 5
|
|
@@ -259,4 +289,4 @@ tree:
|
|
|
259
289
|
cpu/utilization: 33
|
|
260
290
|
cloud/instance-type: A1
|
|
261
291
|
cloud/region: uk-west
|
|
262
|
-
requests: 180
|
|
292
|
+
requests: 180
|
|
@@ -11,7 +11,7 @@ initialize:
|
|
|
11
11
|
kind: plugin
|
|
12
12
|
method: MockObservations
|
|
13
13
|
path: "builtin"
|
|
14
|
-
|
|
14
|
+
config:
|
|
15
15
|
timestamp-from: "2023-12-12T00:00:00.000Z"
|
|
16
16
|
timestamp-to: "2023-12-12T00:00:13.000Z"
|
|
17
17
|
duration: 30
|
|
@@ -29,23 +29,31 @@ initialize:
|
|
|
29
29
|
timestamp:
|
|
30
30
|
description: refers to the time of occurrence of the input
|
|
31
31
|
unit: RFC3339
|
|
32
|
-
aggregation-method:
|
|
32
|
+
aggregation-method:
|
|
33
|
+
time: none
|
|
34
|
+
component: none
|
|
33
35
|
duration:
|
|
34
36
|
description: refers to the duration of the input
|
|
35
37
|
unit: seconds
|
|
36
|
-
aggregation-method:
|
|
38
|
+
aggregation-method:
|
|
39
|
+
time: sum
|
|
40
|
+
component: sum
|
|
37
41
|
cloud/instance-type:
|
|
38
42
|
description: type of Cloud Instance name used in the cloud provider APIs
|
|
39
43
|
unit: none
|
|
40
|
-
aggregation-method:
|
|
44
|
+
aggregation-method:
|
|
45
|
+
time: none
|
|
46
|
+
component: none
|
|
41
47
|
cloud/region:
|
|
42
48
|
description: region cloud instance
|
|
43
49
|
unit: none
|
|
44
|
-
aggregation-method:
|
|
50
|
+
aggregation-method:
|
|
51
|
+
time: none
|
|
52
|
+
component: none
|
|
45
53
|
interpolate:
|
|
46
54
|
method: Interpolation
|
|
47
55
|
path: "builtin"
|
|
48
|
-
|
|
56
|
+
config:
|
|
49
57
|
method: linear
|
|
50
58
|
x: [0, 10, 50, 100]
|
|
51
59
|
y: [0.12, 0.32, 0.75, 1.02]
|
|
@@ -56,16 +64,20 @@ initialize:
|
|
|
56
64
|
cpu/utilization:
|
|
57
65
|
description: refers to CPU utilization.
|
|
58
66
|
unit: percentage
|
|
59
|
-
aggregation-method:
|
|
67
|
+
aggregation-method:
|
|
68
|
+
time: avg
|
|
69
|
+
component: avg
|
|
60
70
|
outputs:
|
|
61
71
|
cpu-factor:
|
|
62
72
|
description: result of interpolate
|
|
63
73
|
unit: kWh
|
|
64
|
-
aggregation-method:
|
|
74
|
+
aggregation-method:
|
|
75
|
+
time: avg
|
|
76
|
+
component: avg
|
|
65
77
|
cpu-factor-to-wattage:
|
|
66
78
|
method: Multiply
|
|
67
79
|
path: builtin
|
|
68
|
-
|
|
80
|
+
config:
|
|
69
81
|
input-parameters: ["cpu-factor", "cpu/thermal-design-power"]
|
|
70
82
|
output-parameter: "cpu-wattage"
|
|
71
83
|
parameter-metadata:
|
|
@@ -73,20 +85,26 @@ initialize:
|
|
|
73
85
|
cpu-factor:
|
|
74
86
|
description: result of interpolate
|
|
75
87
|
unit: kWh
|
|
76
|
-
aggregation-method:
|
|
88
|
+
aggregation-method:
|
|
89
|
+
time: avg
|
|
90
|
+
component: avg
|
|
77
91
|
cpu/thermal-design-power:
|
|
78
92
|
description: thermal design power for a processor
|
|
79
93
|
unit: kWh
|
|
80
|
-
aggregation-method:
|
|
94
|
+
aggregation-method:
|
|
95
|
+
time: avg
|
|
96
|
+
component: avg
|
|
81
97
|
outputs:
|
|
82
98
|
cpu-wattage:
|
|
83
99
|
description: the energy used by the CPU
|
|
84
100
|
unit: kWh
|
|
85
|
-
aggregation-method:
|
|
101
|
+
aggregation-method:
|
|
102
|
+
time: sum
|
|
103
|
+
component: sum
|
|
86
104
|
wattage-times-duration:
|
|
87
105
|
method: Multiply
|
|
88
106
|
path: builtin
|
|
89
|
-
|
|
107
|
+
config:
|
|
90
108
|
input-parameters: ["cpu-wattage", "duration"]
|
|
91
109
|
output-parameter: "cpu-wattage-times-duration"
|
|
92
110
|
parameter-metadata:
|
|
@@ -94,20 +112,26 @@ initialize:
|
|
|
94
112
|
cpu-wattage:
|
|
95
113
|
description: Energy used by the CPU
|
|
96
114
|
unit: kWh
|
|
97
|
-
aggregation-method:
|
|
115
|
+
aggregation-method:
|
|
116
|
+
time: sum
|
|
117
|
+
component: sum
|
|
98
118
|
duration:
|
|
99
119
|
description: Duration of the observation
|
|
100
120
|
unit: seconds
|
|
101
|
-
aggregation-method:
|
|
121
|
+
aggregation-method:
|
|
122
|
+
time: sum
|
|
123
|
+
component: sum
|
|
102
124
|
outputs:
|
|
103
125
|
cpu-wattage-times-duration:
|
|
104
126
|
description: CPU wattage multiplied by duration
|
|
105
127
|
unit: kWh
|
|
106
|
-
aggregation-method:
|
|
128
|
+
aggregation-method:
|
|
129
|
+
time: sum
|
|
130
|
+
component: sum
|
|
107
131
|
wattage-to-energy-kwh:
|
|
108
132
|
method: Divide
|
|
109
133
|
path: "builtin"
|
|
110
|
-
|
|
134
|
+
config:
|
|
111
135
|
numerator: cpu-wattage-times-duration
|
|
112
136
|
denominator: 3600000
|
|
113
137
|
output: cpu-energy-raw
|
|
@@ -116,16 +140,20 @@ initialize:
|
|
|
116
140
|
cpu-wattage-times-duration:
|
|
117
141
|
description: CPU wattage multiplied by duration
|
|
118
142
|
unit: kWh
|
|
119
|
-
aggregation-method:
|
|
143
|
+
aggregation-method:
|
|
144
|
+
time: sum
|
|
145
|
+
component: sum
|
|
120
146
|
outputs:
|
|
121
147
|
cpu-energy-raw:
|
|
122
148
|
description: Raw energy used by CPU in kWh
|
|
123
149
|
unit: kWh
|
|
124
|
-
aggregation-method:
|
|
150
|
+
aggregation-method:
|
|
151
|
+
time: sum
|
|
152
|
+
component: sum
|
|
125
153
|
calculate-vcpu-ratio:
|
|
126
154
|
method: Divide
|
|
127
155
|
path: "builtin"
|
|
128
|
-
|
|
156
|
+
config:
|
|
129
157
|
numerator: vcpus-total
|
|
130
158
|
denominator: vcpus-allocated
|
|
131
159
|
output: vcpu-ratio
|
|
@@ -134,20 +162,26 @@ initialize:
|
|
|
134
162
|
vcpus-total:
|
|
135
163
|
description: total number of vcpus available on a particular resource
|
|
136
164
|
unit: count
|
|
137
|
-
aggregation-method:
|
|
165
|
+
aggregation-method:
|
|
166
|
+
time: none
|
|
167
|
+
component: none
|
|
138
168
|
vcpus-allocated:
|
|
139
169
|
description: number of vcpus allocated to particular resource
|
|
140
170
|
unit: count
|
|
141
|
-
aggregation-method:
|
|
171
|
+
aggregation-method:
|
|
172
|
+
time: none
|
|
173
|
+
component: none
|
|
142
174
|
outputs:
|
|
143
175
|
vcpu-ratio:
|
|
144
176
|
description: Ratio of vCPUs
|
|
145
177
|
unit: none
|
|
146
|
-
aggregation-method:
|
|
178
|
+
aggregation-method:
|
|
179
|
+
time: none
|
|
180
|
+
component: none
|
|
147
181
|
correct-cpu-energy-for-vcpu-ratio:
|
|
148
182
|
method: Divide
|
|
149
183
|
path: "builtin"
|
|
150
|
-
|
|
184
|
+
config:
|
|
151
185
|
numerator: cpu-energy-raw
|
|
152
186
|
denominator: vcpu-ratio
|
|
153
187
|
output: cpu-energy-kwh
|
|
@@ -156,23 +190,29 @@ initialize:
|
|
|
156
190
|
cpu-energy-raw:
|
|
157
191
|
description: Raw energy used by CPU in kWh
|
|
158
192
|
unit: kWh
|
|
159
|
-
aggregation-method:
|
|
193
|
+
aggregation-method:
|
|
194
|
+
time: sum
|
|
195
|
+
component: sum
|
|
160
196
|
vcpu-ratio:
|
|
161
197
|
description: Ratio of vCPUs
|
|
162
198
|
unit: none
|
|
163
|
-
aggregation-method:
|
|
199
|
+
aggregation-method:
|
|
200
|
+
time: none
|
|
201
|
+
component: none
|
|
164
202
|
outputs:
|
|
165
203
|
cpu-energy-kwh:
|
|
166
204
|
description: Corrected CPU energy in kWh
|
|
167
205
|
unit: kWh
|
|
168
|
-
aggregation-method:
|
|
206
|
+
aggregation-method:
|
|
207
|
+
time: sum
|
|
208
|
+
component: sum
|
|
169
209
|
sci-embodied:
|
|
170
210
|
path: "builtin"
|
|
171
211
|
method: SciEmbodied
|
|
172
212
|
operational-carbon:
|
|
173
213
|
method: Multiply
|
|
174
214
|
path: builtin
|
|
175
|
-
|
|
215
|
+
config:
|
|
176
216
|
input-parameters: ["cpu-energy-kwh", "grid/carbon-intensity"]
|
|
177
217
|
output-parameter: "carbon-operational"
|
|
178
218
|
parameter-metadata:
|
|
@@ -180,59 +220,75 @@ initialize:
|
|
|
180
220
|
cpu-energy-kwh:
|
|
181
221
|
description: Corrected CPU energy in kWh
|
|
182
222
|
unit: kWh
|
|
183
|
-
aggregation-method:
|
|
223
|
+
aggregation-method:
|
|
224
|
+
time: sum
|
|
225
|
+
component: sum
|
|
184
226
|
grid/carbon-intensity:
|
|
185
227
|
description: Carbon intensity for the grid
|
|
186
228
|
unit: gCO2eq/kWh
|
|
187
|
-
aggregation-method:
|
|
229
|
+
aggregation-method:
|
|
230
|
+
time: avg
|
|
231
|
+
component: avg
|
|
188
232
|
outputs:
|
|
189
233
|
carbon-operational:
|
|
190
234
|
description: Operational carbon footprint
|
|
191
235
|
unit: gCO2eq
|
|
192
|
-
aggregation-method:
|
|
236
|
+
aggregation-method:
|
|
237
|
+
time: sum
|
|
238
|
+
component: sum
|
|
193
239
|
sum-carbon:
|
|
194
240
|
path: "builtin"
|
|
195
241
|
method: Sum
|
|
196
|
-
|
|
242
|
+
config:
|
|
197
243
|
input-parameters:
|
|
198
244
|
- carbon-operational
|
|
199
|
-
- carbon
|
|
245
|
+
- embodied-carbon
|
|
200
246
|
output-parameter: carbon
|
|
201
247
|
parameter-metadata:
|
|
202
248
|
inputs:
|
|
203
249
|
carbon-operational:
|
|
204
250
|
description: Operational carbon footprint
|
|
205
251
|
unit: gCO2eq
|
|
206
|
-
aggregation-method:
|
|
207
|
-
|
|
252
|
+
aggregation-method:
|
|
253
|
+
time: sum
|
|
254
|
+
component: sum
|
|
255
|
+
embodied-carbon:
|
|
208
256
|
description: Embodied carbon footprint
|
|
209
257
|
unit: gCO2eq
|
|
210
|
-
aggregation-method:
|
|
258
|
+
aggregation-method:
|
|
259
|
+
time: sum
|
|
260
|
+
component: sum
|
|
211
261
|
outputs:
|
|
212
262
|
carbon:
|
|
213
263
|
description: Total carbon footprint
|
|
214
264
|
unit: gCO2eq
|
|
215
|
-
aggregation-method:
|
|
265
|
+
aggregation-method:
|
|
266
|
+
time: sum
|
|
267
|
+
component: sum
|
|
216
268
|
sci:
|
|
217
269
|
path: "builtin"
|
|
218
270
|
method: Sci
|
|
219
|
-
|
|
271
|
+
config:
|
|
220
272
|
functional-unit: "requests"
|
|
221
273
|
parameter-metadata:
|
|
222
274
|
inputs:
|
|
223
275
|
requests:
|
|
224
276
|
description: expressed the final SCI value
|
|
225
277
|
unit: none
|
|
226
|
-
aggregation-method:
|
|
278
|
+
aggregation-method:
|
|
279
|
+
time: sum
|
|
280
|
+
component: sum
|
|
227
281
|
outputs:
|
|
228
282
|
sci:
|
|
229
283
|
description: Scientific Carbon Intensity
|
|
230
284
|
unit: none
|
|
231
|
-
aggregation-method:
|
|
285
|
+
aggregation-method:
|
|
286
|
+
time: none
|
|
287
|
+
component: none
|
|
232
288
|
time-sync:
|
|
233
289
|
method: TimeSync
|
|
234
290
|
path: "builtin"
|
|
235
|
-
|
|
291
|
+
config:
|
|
236
292
|
start-time: "2023-12-12T00:00:00.000Z"
|
|
237
293
|
end-time: "2023-12-12T00:01:00.000Z"
|
|
238
294
|
interval: 5
|
|
@@ -266,6 +322,7 @@ tree:
|
|
|
266
322
|
device/expected-lifespan: 94608000 # 3 years in seconds
|
|
267
323
|
vcpus-total: 8
|
|
268
324
|
vcpus-allocated: 1
|
|
325
|
+
requests: 50
|
|
269
326
|
inputs:
|
|
270
327
|
child-2:
|
|
271
328
|
pipeline:
|
|
@@ -294,4 +351,5 @@ tree:
|
|
|
294
351
|
device/expected-lifespan: 94608000 # 3 years in seconds
|
|
295
352
|
vcpus-total: 8
|
|
296
353
|
vcpus-allocated: 1
|
|
354
|
+
requests: 50
|
|
297
355
|
inputs:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
name: demo
|
|
2
|
-
description:
|
|
2
|
+
description:
|
|
3
3
|
tags:
|
|
4
4
|
initialize:
|
|
5
5
|
plugins:
|
|
6
6
|
"sum":
|
|
7
7
|
path: "builtin"
|
|
8
8
|
method: Sum
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
input-parameters:
|
|
11
11
|
- cpu/energy
|
|
12
12
|
- network/energy
|
|
@@ -14,14 +14,14 @@ initialize:
|
|
|
14
14
|
"coefficient":
|
|
15
15
|
path: "builtin"
|
|
16
16
|
method: Coefficient
|
|
17
|
-
|
|
17
|
+
config:
|
|
18
18
|
input-parameter: energy
|
|
19
19
|
coefficient: 2
|
|
20
20
|
output-parameter: energy-doubled
|
|
21
21
|
"multiply":
|
|
22
22
|
path: "builtin"
|
|
23
23
|
method: Multiply
|
|
24
|
-
|
|
24
|
+
config:
|
|
25
25
|
input-parameters: ["cpu/utilization", "duration"]
|
|
26
26
|
output-parameter: "cpu-times-duration"
|
|
27
27
|
tree:
|
|
@@ -29,7 +29,7 @@ tree:
|
|
|
29
29
|
child-1:
|
|
30
30
|
pipeline:
|
|
31
31
|
observe:
|
|
32
|
-
compute:
|
|
32
|
+
compute:
|
|
33
33
|
- sum
|
|
34
34
|
- coefficient
|
|
35
35
|
- multiply
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: demo
|
|
2
|
-
description:
|
|
2
|
+
description:
|
|
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
|
-
|
|
10
|
+
config:
|
|
11
11
|
timestamp-from: 2023-07-06T00:00
|
|
12
12
|
timestamp-to: 2023-07-06T00:01
|
|
13
13
|
duration: 60
|
|
@@ -28,7 +28,7 @@ initialize:
|
|
|
28
28
|
sum:
|
|
29
29
|
path: "builtin"
|
|
30
30
|
method: Sum
|
|
31
|
-
|
|
31
|
+
config:
|
|
32
32
|
input-parameters:
|
|
33
33
|
- cpu/utilization
|
|
34
34
|
- memory/utilization
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
interpolate:
|
|
7
7
|
method: Interpolation
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
method: linear
|
|
11
11
|
x: [0, 10, 50, 100]
|
|
12
12
|
y: [0.12, 0.32, 0.75, 1.02]
|
|
@@ -15,40 +15,40 @@ initialize:
|
|
|
15
15
|
cpu-factor-to-wattage:
|
|
16
16
|
method: Multiply
|
|
17
17
|
path: builtin
|
|
18
|
-
|
|
18
|
+
config:
|
|
19
19
|
input-parameters: ["cpu-factor", "cpu/thermal-design-power"]
|
|
20
20
|
output-parameter: "cpu-wattage"
|
|
21
21
|
wattage-times-duration:
|
|
22
22
|
method: Multiply
|
|
23
23
|
path: builtin
|
|
24
|
-
|
|
24
|
+
config:
|
|
25
25
|
input-parameters: ["cpu-wattage", "duration"]
|
|
26
26
|
output-parameter: "cpu-wattage-times-duration"
|
|
27
27
|
wattage-to-energy-kwh:
|
|
28
28
|
method: Divide
|
|
29
29
|
path: "builtin"
|
|
30
|
-
|
|
30
|
+
config:
|
|
31
31
|
numerator: cpu-wattage-times-duration
|
|
32
32
|
denominator: 3600000
|
|
33
33
|
output: cpu-energy-raw
|
|
34
34
|
calculate-vcpu-ratio:
|
|
35
35
|
method: Divide
|
|
36
36
|
path: "builtin"
|
|
37
|
-
|
|
37
|
+
config:
|
|
38
38
|
numerator: vcpus-total
|
|
39
39
|
denominator: vcpus-allocated
|
|
40
40
|
output: vcpu-ratio
|
|
41
41
|
correct-cpu-energy-for-vcpu-ratio:
|
|
42
42
|
method: Divide
|
|
43
43
|
path: "builtin"
|
|
44
|
-
|
|
44
|
+
config:
|
|
45
45
|
numerator: cpu-energy-raw
|
|
46
46
|
denominator: vcpu-ratio
|
|
47
47
|
output: cpu/energy
|
|
48
48
|
sum-energy-components:
|
|
49
49
|
path: "builtin"
|
|
50
50
|
method: Sum
|
|
51
|
-
|
|
51
|
+
config:
|
|
52
52
|
input-parameters:
|
|
53
53
|
- cpu/energy
|
|
54
54
|
- network/energy
|
|
@@ -59,21 +59,21 @@ initialize:
|
|
|
59
59
|
"operational-carbon":
|
|
60
60
|
method: Multiply
|
|
61
61
|
path: builtin
|
|
62
|
-
|
|
62
|
+
config:
|
|
63
63
|
input-parameters: ["energy", "grid/carbon-intensity"]
|
|
64
64
|
output-parameter: "carbon-operational"
|
|
65
65
|
"sum-carbon":
|
|
66
66
|
path: "builtin"
|
|
67
67
|
method: Sum
|
|
68
|
-
|
|
68
|
+
config:
|
|
69
69
|
input-parameters:
|
|
70
70
|
- carbon-operational
|
|
71
|
-
- carbon
|
|
71
|
+
- embodied-carbon
|
|
72
72
|
output-parameter: carbon
|
|
73
73
|
"sci":
|
|
74
74
|
path: "builtin"
|
|
75
75
|
method: Sci
|
|
76
|
-
|
|
76
|
+
config:
|
|
77
77
|
functional-unit: "component"
|
|
78
78
|
tree:
|
|
79
79
|
children:
|
|
@@ -126,4 +126,4 @@ tree:
|
|
|
126
126
|
cloud/instance-type: A1
|
|
127
127
|
cloud/region: uk-west
|
|
128
128
|
cpu/utilization: 15
|
|
129
|
-
network/energy: 0.000001
|
|
129
|
+
network/energy: 0.000001
|