@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
|
@@ -105,10 +105,10 @@ There have also been some changes to the structure of manifest files. Some of th
|
|
|
105
105
|
method: SciEmbodied
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
- **
|
|
109
|
-
We have introduced the concept of
|
|
108
|
+
- **Config**
|
|
109
|
+
We have introduced the concept of config to the plugins. This is truly configuration data that should be kept constant regardless of where the plugin is invoked across the manifest file.
|
|
110
110
|
|
|
111
|
-
A good example is the `interpolation` method to use in the Teads curve plugin - this is not expected to vary from component to component and can therefore be defined in
|
|
111
|
+
A good example is the `interpolation` method to use in the Teads curve plugin - this is not expected to vary from component to component and can therefore be defined in config. The plugin code itself must expect the config. Then, the config can be passed in the `Initialize` block, for example:
|
|
112
112
|
|
|
113
113
|
```yaml
|
|
114
114
|
initialize:
|
|
@@ -116,34 +116,13 @@ There have also been some changes to the structure of manifest files. Some of th
|
|
|
116
116
|
'time-sync':
|
|
117
117
|
method: TimeSync
|
|
118
118
|
path: 'builtin'
|
|
119
|
-
|
|
119
|
+
config:
|
|
120
120
|
start-time: '2023-12-12T00:00:00.000Z'
|
|
121
121
|
end-time: '2023-12-12T00:01:00.000Z'
|
|
122
122
|
interval: 5
|
|
123
123
|
allow-padding: true
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
- **Node level config**
|
|
127
|
-
|
|
128
|
-
We have also introduced the concept of node-level config. This is designed for pluin configuration that might vary between components in the tree. For example, for each child in the tree you might wish to use the `regroup` feature to group the outputs according to a different set of keys.
|
|
129
|
-
|
|
130
|
-
```yaml
|
|
131
|
-
tree:
|
|
132
|
-
children:
|
|
133
|
-
child-1:
|
|
134
|
-
pipeline:
|
|
135
|
-
compute:
|
|
136
|
-
- teads-curve
|
|
137
|
-
- sci-e
|
|
138
|
-
- sci-embodied
|
|
139
|
-
- sci-o
|
|
140
|
-
- time-sync
|
|
141
|
-
- sci
|
|
142
|
-
regroup:
|
|
143
|
-
- region
|
|
144
|
-
- cloud/instance-type
|
|
145
|
-
```
|
|
146
|
-
|
|
147
126
|
- **Defaults**
|
|
148
127
|
|
|
149
128
|
We have also introduced the concept of `defaults`. This is a section in each component's definition that can be used to provide fallbacks for missing input data. For example, perhaps you have a value arriving from an external API that should be present in every observation in your inputs array, but for soem reason the API fails to deliver a value for some timestamps. In this case, IF would fallback to the value provided for that metric in the `defaults` section of the manifest for that component.
|
|
@@ -178,7 +157,7 @@ There have also been some changes to the structure of manifest files. Some of th
|
|
|
178
157
|
|
|
179
158
|
Technically time-sync is not a new feature as it was present in IF before the refactor, but there are some tweaks to how the plugin is configured that are worth explaining here. Time sync snaps all input arrays across an entire graph to a common time grid.
|
|
180
159
|
|
|
181
|
-
This means you have to define a
|
|
160
|
+
This means you have to define a start time, end time and interval to use everywhere. There is also a boolean to toggle whether you should allow the time sync model to pad the start and end of your time series with zeroes. You should default to `true` unless you have a specific reason not to. In the refactored IF we expect this information to be provided in config, as follows:
|
|
182
161
|
|
|
183
162
|
```yaml
|
|
184
163
|
initialize:
|
|
@@ -186,7 +165,7 @@ initialize:
|
|
|
186
165
|
'time-sync':
|
|
187
166
|
method: TimeSync
|
|
188
167
|
path: 'builtin'
|
|
189
|
-
|
|
168
|
+
config:
|
|
190
169
|
start-time: '2023-12-12T00:00:00.000Z'
|
|
191
170
|
end-time: '2023-12-12T00:01:00.000Z'
|
|
192
171
|
interval: 5
|
|
@@ -220,68 +199,75 @@ Details tbc...
|
|
|
220
199
|
|
|
221
200
|
## Plugins
|
|
222
201
|
|
|
223
|
-
|
|
202
|
+
Plugins require some modifications to remain compatible with the refactored IF interface.
|
|
224
203
|
|
|
225
|
-
|
|
204
|
+
Each plugin follows the `PluginFactory` interface, which is a higher-order function that accepts a `params` object of type `PluginFactoryParams`. This function returns another function (the inner function), which handles the plugin’s `config`, `parametersMetadata`, and `mapping`.
|
|
226
205
|
|
|
227
206
|
```ts
|
|
228
|
-
export
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
config
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
207
|
+
export const PluginFactory =
|
|
208
|
+
(params: PluginFactoryParams) =>
|
|
209
|
+
(
|
|
210
|
+
config: ConfigParams = {},
|
|
211
|
+
parametersMetadata: PluginParametersMetadata,
|
|
212
|
+
mapping: MappingParams
|
|
213
|
+
) => ({
|
|
214
|
+
metadata: {
|
|
215
|
+
inputs: {...params.metadata.inputs, ...parametersMetadata?.inputs},
|
|
216
|
+
outputs: parametersMetadata?.outputs || params.metadata.outputs,
|
|
217
|
+
},
|
|
218
|
+
execute: async (inputs: PluginParams[]) => {
|
|
219
|
+
// Generic plugin functionality goes here
|
|
220
|
+
// E.g., mapping, arithmetic operations, validation
|
|
221
|
+
// Process inputs and mapping logic
|
|
222
|
+
});
|
|
223
|
+
})
|
|
238
224
|
```
|
|
239
225
|
|
|
240
|
-
|
|
226
|
+
Inner Function Parameters:
|
|
227
|
+
|
|
228
|
+
- `config`: This is of type `ConfigParams` and has a default value of an empty object ({}). This might hold configuration settings for the plugin.
|
|
229
|
+
- `parametersMetadata`: A `PluginParametersMetadata` object that describes the metadata for the plugin’s parameters.
|
|
230
|
+
- `mapping`: A `MappingParams` object, describing parameters are mapped.
|
|
231
|
+
|
|
232
|
+
Implementation Function:
|
|
241
233
|
|
|
242
|
-
|
|
234
|
+
The plugin requires an `implementation` function, where the actual plugin logic is defined.
|
|
235
|
+
Here’s a minimal example of a plugin that sums inputs as defined in the config. See the inline comments for further clarification.
|
|
243
236
|
|
|
244
237
|
```ts
|
|
245
|
-
// Here's the function definition
|
|
246
|
-
export const Sum = (
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
238
|
+
// Here's the function definition!
|
|
239
|
+
export const Sum = PluginFactory({
|
|
240
|
+
configValidation: z.object({
|
|
241
|
+
'input-parameters': z.array(z.string()),
|
|
242
|
+
'output-parameter': z.string().min(1),
|
|
243
|
+
}),
|
|
244
|
+
inputValidation: (input: PluginParams, config: ConfigParams) => {
|
|
245
|
+
return validate(validationSchema, inputData);
|
|
246
|
+
},
|
|
247
|
+
implementation: async (inputs: PluginParams[], config: ConfigParams) => {
|
|
248
|
+
const {
|
|
249
|
+
'input-parameters': inputParameters,
|
|
250
|
+
'output-parameter': outputParameter,
|
|
251
|
+
} = config;
|
|
252
|
+
|
|
253
|
+
return inputs.map(input => {
|
|
254
|
+
const calculatedResult = calculateSum(input, inputParameters);
|
|
255
|
+
|
|
256
|
+
return {
|
|
257
|
+
...input,
|
|
258
|
+
[outputParameter]: calculatedResult,
|
|
259
|
+
};
|
|
261
260
|
});
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
(accumulator, metricToSum) => {
|
|
275
|
-
return accumulator + input[metricToSum];
|
|
276
|
-
},
|
|
277
|
-
0
|
|
278
|
-
);
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
// return the metadata and the execute function
|
|
282
|
-
return {
|
|
283
|
-
metadata,
|
|
284
|
-
execute,
|
|
285
|
-
};
|
|
286
|
-
};
|
|
261
|
+
},
|
|
262
|
+
allowArithmeticExpressions: [],
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Calculates the sum of the energy components.
|
|
267
|
+
*/
|
|
268
|
+
const calculateSum = (input: PluginParams, inputParameters: string[]) =>
|
|
269
|
+
inputParameters.reduce(
|
|
270
|
+
(accumulator, metricToSum) => accumulator + input[metricToSum],
|
|
271
|
+
0
|
|
272
|
+
);
|
|
287
273
|
```
|
package/github-processes.md
CHANGED
|
@@ -3,24 +3,18 @@
|
|
|
3
3
|
|
|
4
4
|
- [`if`](https://github.com/Green-Software-Foundation/if)
|
|
5
5
|
- source code for the IF
|
|
6
|
+
- [`if-core`](https://github.com/Green-Software-Foundation/if-core)
|
|
7
|
+
- helper types, interfaces and utilities for IF and plugin development
|
|
6
8
|
- [`if-plugins`](https://github.com/Green-Software-Foundation/if-plugins) **DEPRECATED**
|
|
7
9
|
- source code for standard library of plugins
|
|
8
10
|
- IF core team commit to maintaining these plugins
|
|
9
|
-
- [`if-unofficial-plugins`](https://github.com/Green-Software-Foundation/if-unofficial-plugins)
|
|
11
|
+
- [`if-unofficial-plugins`](https://github.com/Green-Software-Foundation/if-unofficial-plugins) **DEPRECATED**
|
|
10
12
|
- source code for plugins relying on third-party data/APIs
|
|
11
13
|
- intended to be deprecated and removed in mid-term future
|
|
12
14
|
- plugins in this repo should be handed over to relevant organizations to maintain
|
|
13
15
|
- [`if-plugin-template`](https://github.com/Green-Software-Foundation/if-plugin-template)
|
|
14
16
|
- template for new plugins
|
|
15
17
|
- intended for builders to bootstrap IF-compatible plugin development
|
|
16
|
-
- [`if-standards`](https://github.com/Green-Software-Foundation/if-standards)
|
|
17
|
-
- not currently used, but intended to be the home of params.ts
|
|
18
|
-
- will have a dedicated discussion board and governance to set IF standards
|
|
19
|
-
- [`if-exhaust plugins`](https://github.com/Green-Software-Foundation/if-exhaust-plugins)
|
|
20
|
-
- not currently used
|
|
21
|
-
- intended to become a separate repo just for exhaust plugins
|
|
22
|
-
- requires strict rules from if
|
|
23
|
-
|
|
24
18
|
|
|
25
19
|
## Branch names and purposes
|
|
26
20
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
name: coefficient-demo
|
|
2
|
-
description: failure with ivalid `
|
|
2
|
+
description: failure with ivalid `config.input-parameter`
|
|
3
3
|
tags:
|
|
4
4
|
initialize:
|
|
5
5
|
plugins:
|
|
6
6
|
coefficient:
|
|
7
7
|
method: Coefficient
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
input-parameter: 4
|
|
11
11
|
coefficient: 3
|
|
12
12
|
output-parameter: "carbon-product"
|
|
@@ -16,8 +16,6 @@ tree:
|
|
|
16
16
|
pipeline:
|
|
17
17
|
compute:
|
|
18
18
|
- coefficient
|
|
19
|
-
config:
|
|
20
|
-
sum:
|
|
21
19
|
inputs:
|
|
22
20
|
- timestamp: 2023-08-06T00:00
|
|
23
21
|
duration: 3600
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
coefficient:
|
|
7
7
|
method: Coefficient
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
input-parameter: "carbon"
|
|
11
11
|
coefficient: 3
|
|
12
12
|
output-parameter:
|
|
@@ -16,8 +16,6 @@ tree:
|
|
|
16
16
|
pipeline:
|
|
17
17
|
compute:
|
|
18
18
|
- coefficient
|
|
19
|
-
config:
|
|
20
|
-
sum:
|
|
21
19
|
inputs:
|
|
22
20
|
- timestamp: 2023-08-06T00:00
|
|
23
21
|
duration: 3600
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
coefficient:
|
|
7
7
|
method: Coefficient
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
input-parameter: "carbon"
|
|
11
11
|
coefficient: 3
|
|
12
12
|
output-parameter: "carbon-product"
|
|
@@ -16,8 +16,6 @@ tree:
|
|
|
16
16
|
pipeline:
|
|
17
17
|
compute:
|
|
18
18
|
- coefficient
|
|
19
|
-
config:
|
|
20
|
-
sum:
|
|
21
19
|
inputs:
|
|
22
20
|
- timestamp: 2023-08-06T00:00
|
|
23
21
|
duration: 3600
|
package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml
CHANGED
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
path: builtin
|
|
8
8
|
method: CSVLookup
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: >-
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
12
|
query:
|
|
@@ -18,7 +18,6 @@ tree:
|
|
|
18
18
|
pipeline:
|
|
19
19
|
compute:
|
|
20
20
|
- cloud-metadata
|
|
21
|
-
config:
|
|
22
21
|
inputs:
|
|
23
22
|
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
|
|
24
23
|
cloud/vendor: aws
|
|
@@ -6,19 +6,18 @@ initialize:
|
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
path: builtin
|
|
8
8
|
method: CSVLookup
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: >-
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
12
|
query:
|
|
13
|
-
instance-class: cloud/
|
|
14
|
-
output: ["cpu-cores-utilized", "
|
|
13
|
+
instance-class: cloud/vendor
|
|
14
|
+
output: ["cpu-cores-utilized", "cloud/instance-type"]
|
|
15
15
|
tree:
|
|
16
16
|
children:
|
|
17
17
|
child:
|
|
18
18
|
pipeline:
|
|
19
19
|
compute:
|
|
20
20
|
- cloud-metadata
|
|
21
|
-
config:
|
|
22
21
|
inputs:
|
|
23
22
|
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
|
|
24
23
|
cloud/vendor: gcp
|
package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yml
CHANGED
|
@@ -6,11 +6,11 @@ initialize:
|
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
path: builtin
|
|
8
8
|
method: CSVLookup
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: >-
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
12
|
query:
|
|
13
|
-
instance-class: cloud/
|
|
13
|
+
instance-class: cloud/vendor
|
|
14
14
|
output: ["cpu-cores-utilized", "vcpus-allocated"]
|
|
15
15
|
tree:
|
|
16
16
|
children:
|
|
@@ -18,7 +18,6 @@ tree:
|
|
|
18
18
|
pipeline:
|
|
19
19
|
compute:
|
|
20
20
|
- cloud-metadata
|
|
21
|
-
config:
|
|
22
21
|
inputs:
|
|
23
22
|
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
|
|
24
23
|
#cloud/vendor: aws
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
path: builtin
|
|
8
8
|
method: CSVLookup
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: >-
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
12
|
query:
|
|
@@ -18,7 +18,6 @@ tree:
|
|
|
18
18
|
pipeline:
|
|
19
19
|
compute:
|
|
20
20
|
- cloud-metadata
|
|
21
|
-
config:
|
|
22
21
|
inputs:
|
|
23
22
|
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
|
|
24
23
|
cloud/vendor: aws
|
|
@@ -6,12 +6,12 @@ initialize:
|
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
method: CSVLookup
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/region-metadata.csv
|
|
11
11
|
query:
|
|
12
12
|
cloud-provider: "cloud/provider"
|
|
13
13
|
cloud-region: "cloud/region"
|
|
14
|
-
output:
|
|
14
|
+
output:
|
|
15
15
|
tree:
|
|
16
16
|
children:
|
|
17
17
|
child:
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
tdp-finder:
|
|
7
7
|
method: CSVLookup
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/tdp-data-1.csv
|
|
11
11
|
query:
|
|
12
12
|
name: physical-processor
|
|
@@ -17,7 +17,6 @@ tree:
|
|
|
17
17
|
pipeline:
|
|
18
18
|
compute:
|
|
19
19
|
- tdp-finder
|
|
20
|
-
config:
|
|
21
20
|
inputs:
|
|
22
21
|
- timestamp: 2023-07-06T00:00
|
|
23
22
|
duration: 300
|
package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml
CHANGED
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
tdp-finder:
|
|
7
7
|
method: CSVLookup
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/tdp-data-1.csv
|
|
11
11
|
query:
|
|
12
12
|
name: physical-processor
|
|
@@ -17,7 +17,6 @@ tree:
|
|
|
17
17
|
pipeline:
|
|
18
18
|
compute:
|
|
19
19
|
- tdp-finder
|
|
20
|
-
config:
|
|
21
20
|
inputs:
|
|
22
21
|
- timestamp: 2023-07-06T00:00
|
|
23
22
|
duration: 300
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
tdp-finder:
|
|
7
7
|
method: CSVLookup
|
|
8
8
|
path: "builtin"
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/tdp-data-1.csv
|
|
11
11
|
query:
|
|
12
12
|
name: physical-processor
|
|
@@ -17,7 +17,6 @@ tree:
|
|
|
17
17
|
pipeline:
|
|
18
18
|
compute:
|
|
19
19
|
- tdp-finder
|
|
20
|
-
config:
|
|
21
20
|
inputs:
|
|
22
21
|
- timestamp: 2023-07-06T00:00
|
|
23
22
|
duration: 300
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
name: divide
|
|
2
|
-
description: failure when `
|
|
2
|
+
description: failure when `config.denominator` is string
|
|
3
3
|
tags:
|
|
4
4
|
initialize:
|
|
5
5
|
plugins:
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
path: builtin
|
|
8
8
|
method: CSVLookup
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: >-
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
12
|
query:
|
|
@@ -15,7 +15,7 @@ initialize:
|
|
|
15
15
|
divide:
|
|
16
16
|
method: Divide
|
|
17
17
|
path: "builtin"
|
|
18
|
-
|
|
18
|
+
config:
|
|
19
19
|
numerator: vcpus-allocated
|
|
20
20
|
denominator: "vcpus"
|
|
21
21
|
output: cpu/number-cores
|
|
@@ -26,8 +26,6 @@ tree:
|
|
|
26
26
|
compute:
|
|
27
27
|
- cloud-metadata
|
|
28
28
|
- divide
|
|
29
|
-
config:
|
|
30
|
-
divide:
|
|
31
29
|
defaults:
|
|
32
30
|
cloud/vendor: aws
|
|
33
31
|
cloud/instance-type: m5n.large
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
path: builtin
|
|
8
8
|
method: CSVLookup
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: >-
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
12
|
query:
|
|
@@ -15,7 +15,7 @@ initialize:
|
|
|
15
15
|
divide:
|
|
16
16
|
method: Divide
|
|
17
17
|
path: "builtin"
|
|
18
|
-
|
|
18
|
+
config:
|
|
19
19
|
#numerator: vcpus-allocated
|
|
20
20
|
denominator: 2
|
|
21
21
|
output: cpu/number-cores
|
|
@@ -26,8 +26,6 @@ tree:
|
|
|
26
26
|
compute:
|
|
27
27
|
- cloud-metadata
|
|
28
28
|
- divide
|
|
29
|
-
config:
|
|
30
|
-
divide:
|
|
31
29
|
defaults:
|
|
32
30
|
cloud/vendor: aws
|
|
33
31
|
cloud/instance-type: m5n.large
|
|
@@ -6,7 +6,7 @@ initialize:
|
|
|
6
6
|
cloud-metadata:
|
|
7
7
|
path: builtin
|
|
8
8
|
method: CSVLookup
|
|
9
|
-
|
|
9
|
+
config:
|
|
10
10
|
filepath: >-
|
|
11
11
|
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-aws-instances.csv
|
|
12
12
|
query:
|
|
@@ -15,7 +15,7 @@ initialize:
|
|
|
15
15
|
divide:
|
|
16
16
|
method: Divide
|
|
17
17
|
path: "builtin"
|
|
18
|
-
|
|
18
|
+
config:
|
|
19
19
|
numerator: vcpus-allocated
|
|
20
20
|
denominator: 2
|
|
21
21
|
output: cpu/number-cores
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
name: mock-observation-demo
|
|
2
|
-
description: failure with `
|
|
2
|
+
description: failure with `config->generators->randint->cpu/utilization->min` is greater than `max`
|
|
3
3
|
tags:
|
|
4
4
|
initialize:
|
|
5
5
|
plugins:
|
|
@@ -7,7 +7,7 @@ initialize:
|
|
|
7
7
|
kind: plugin
|
|
8
8
|
method: MockObservations
|
|
9
9
|
path: "builtin"
|
|
10
|
-
|
|
10
|
+
config:
|
|
11
11
|
timestamp-from: 2023-07-06T00:00
|
|
12
12
|
timestamp-to: 2023-07-06T00:10
|
|
13
13
|
duration: 60
|