@grnsft/if 0.5.0 → 0.6.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 +9 -0
- package/build/common/config/strings.js +17 -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 +11 -0
- package/build/if-check/config/strings.js +15 -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 +36 -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 +3 -0
- package/build/if-csv/config/strings.js +7 -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 +47 -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-merge/config/config.d.ts +6 -0
- package/build/if-merge/config/config.js +43 -0
- package/build/if-merge/config/index.d.ts +2 -0
- package/build/if-merge/config/index.js +8 -0
- package/build/if-merge/config/strings.d.ts +5 -0
- package/build/if-merge/config/strings.js +9 -0
- package/build/if-merge/index.d.ts +2 -0
- package/build/if-merge/index.js +26 -0
- package/build/if-merge/types/process-args.d.ts +6 -0
- package/build/if-merge/types/process-args.js +3 -0
- package/build/if-merge/util/args.d.ts +9 -0
- package/build/if-merge/util/args.js +59 -0
- package/build/if-merge/util/helpers.d.ts +5 -0
- package/build/if-merge/util/helpers.js +83 -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 +2 -2
- package/build/{builtins → if-run/builtins}/index.js +6 -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/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-converter/config.js +44 -0
- package/build/if-run/builtins/time-converter/index.d.ts +2 -0
- package/build/if-run/builtins/time-converter/index.js +79 -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 +142 -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-converter/success.yaml +24 -0
- 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 +17 -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-converter/README.md +136 -0
- 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/sci → if-run/builtins/time-converter}/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
|
@@ -17,8 +17,12 @@ initialize:
|
|
|
17
17
|
output:
|
|
18
18
|
- cpu-cores-utilized
|
|
19
19
|
- vcpus-allocated
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
parameter-metadata:
|
|
21
|
+
inputs:
|
|
22
|
+
cpu/utilization:
|
|
23
|
+
unit: percentage
|
|
24
|
+
description: refers to CPU utilization.
|
|
25
|
+
aggregation-method: avg
|
|
22
26
|
execution:
|
|
23
27
|
command: >-
|
|
24
28
|
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
@@ -28,21 +32,20 @@ execution:
|
|
|
28
32
|
environment:
|
|
29
33
|
if-version: 0.4.0
|
|
30
34
|
os: macOS
|
|
31
|
-
os-version:
|
|
35
|
+
os-version: "13.2"
|
|
32
36
|
node-version: 18.14.2
|
|
33
37
|
date-time: 2024-07-01T20:28:27.168Z (UTC)
|
|
34
38
|
dependencies:
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- '@types/node@20.9.0'
|
|
39
|
+
- "@babel/core@7.22.10"
|
|
40
|
+
- "@babel/preset-typescript@7.23.3"
|
|
41
|
+
- "@commitlint/cli@18.6.0"
|
|
42
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
43
|
+
- "@grnsft/if-core@0.0.10"
|
|
44
|
+
- "@jest/globals@29.7.0"
|
|
45
|
+
- "@types/jest@29.5.8"
|
|
46
|
+
- "@types/js-yaml@4.0.9"
|
|
47
|
+
- "@types/luxon@3.4.2"
|
|
48
|
+
- "@types/node@20.9.0"
|
|
46
49
|
- axios-mock-adapter@1.22.0
|
|
47
50
|
- axios@1.7.2
|
|
48
51
|
- cross-env@7.0.3
|
|
@@ -68,30 +71,31 @@ tree:
|
|
|
68
71
|
children:
|
|
69
72
|
application:
|
|
70
73
|
pipeline:
|
|
71
|
-
|
|
74
|
+
compute:
|
|
75
|
+
- cloud-metadata
|
|
72
76
|
children:
|
|
73
77
|
uk-west:
|
|
74
78
|
children:
|
|
75
79
|
server-1:
|
|
76
80
|
inputs:
|
|
77
|
-
- timestamp:
|
|
81
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
78
82
|
duration: 300
|
|
79
83
|
cloud/instance-type: m5n.large
|
|
80
84
|
cloud/vendor: aws
|
|
81
85
|
cpu/utilization: 89
|
|
82
|
-
- timestamp:
|
|
86
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
83
87
|
duration: 300
|
|
84
88
|
cloud/instance-type: m5n.large
|
|
85
89
|
cloud/vendor: aws
|
|
86
90
|
cpu/utilization: 59
|
|
87
91
|
outputs:
|
|
88
|
-
- timestamp:
|
|
92
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
89
93
|
duration: 300
|
|
90
94
|
cloud/instance-type: m5n.large
|
|
91
95
|
cloud/vendor: aws
|
|
92
96
|
cpu/utilization: 89
|
|
93
97
|
vcpus-allocated: 2
|
|
94
|
-
- timestamp:
|
|
98
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
95
99
|
duration: 300
|
|
96
100
|
cloud/instance-type: m5n.large
|
|
97
101
|
cloud/vendor: aws
|
|
@@ -101,24 +105,24 @@ tree:
|
|
|
101
105
|
cpu/utilization: 74
|
|
102
106
|
server-2:
|
|
103
107
|
inputs:
|
|
104
|
-
- timestamp:
|
|
108
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
105
109
|
duration: 300
|
|
106
110
|
cloud/instance-type: m5n.large
|
|
107
111
|
cloud/vendor: aws
|
|
108
112
|
cpu/utilization: 24
|
|
109
|
-
- timestamp:
|
|
113
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
110
114
|
duration: 300
|
|
111
115
|
cloud/instance-type: m5n.large
|
|
112
116
|
cloud/vendor: aws
|
|
113
117
|
cpu/utilization: 27
|
|
114
118
|
outputs:
|
|
115
|
-
- timestamp:
|
|
119
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
116
120
|
duration: 300
|
|
117
121
|
cloud/instance-type: m5n.large
|
|
118
122
|
cloud/vendor: aws
|
|
119
123
|
cpu/utilization: 24
|
|
120
124
|
vcpus-allocated: 2
|
|
121
|
-
- timestamp:
|
|
125
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
122
126
|
duration: 300
|
|
123
127
|
cloud/instance-type: m5n.large
|
|
124
128
|
cloud/vendor: aws
|
|
@@ -17,8 +17,12 @@ initialize:
|
|
|
17
17
|
output:
|
|
18
18
|
- cpu-cores-utilized
|
|
19
19
|
- vcpus-allocated
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
parameter-metadata:
|
|
21
|
+
inputs:
|
|
22
|
+
cpu/utilization:
|
|
23
|
+
unit: percentage
|
|
24
|
+
description: refers to CPU utilization.
|
|
25
|
+
aggregation-method: avg
|
|
22
26
|
execution:
|
|
23
27
|
command: >-
|
|
24
28
|
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
@@ -28,21 +32,20 @@ execution:
|
|
|
28
32
|
environment:
|
|
29
33
|
if-version: 0.4.0
|
|
30
34
|
os: macOS
|
|
31
|
-
os-version:
|
|
35
|
+
os-version: "13.2"
|
|
32
36
|
node-version: 18.14.2
|
|
33
37
|
date-time: 2024-07-01T20:32:47.459Z (UTC)
|
|
34
38
|
dependencies:
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- '@types/node@20.9.0'
|
|
39
|
+
- "@babel/core@7.22.10"
|
|
40
|
+
- "@babel/preset-typescript@7.23.3"
|
|
41
|
+
- "@commitlint/cli@18.6.0"
|
|
42
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
43
|
+
- "@grnsft/if-core@0.0.10"
|
|
44
|
+
- "@jest/globals@29.7.0"
|
|
45
|
+
- "@types/jest@29.5.8"
|
|
46
|
+
- "@types/js-yaml@4.0.9"
|
|
47
|
+
- "@types/luxon@3.4.2"
|
|
48
|
+
- "@types/node@20.9.0"
|
|
46
49
|
- axios-mock-adapter@1.22.0
|
|
47
50
|
- axios@1.7.2
|
|
48
51
|
- cross-env@7.0.3
|
|
@@ -68,30 +71,31 @@ tree:
|
|
|
68
71
|
children:
|
|
69
72
|
application:
|
|
70
73
|
pipeline:
|
|
71
|
-
|
|
74
|
+
compute:
|
|
75
|
+
- cloud-metadata
|
|
72
76
|
children:
|
|
73
77
|
uk-west:
|
|
74
78
|
children:
|
|
75
79
|
server-1:
|
|
76
80
|
inputs:
|
|
77
|
-
- timestamp:
|
|
81
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
78
82
|
duration: 300
|
|
79
83
|
cloud/instance-type: m5n.large
|
|
80
84
|
cloud/vendor: aws
|
|
81
85
|
cpu/utilization: 89
|
|
82
|
-
- timestamp:
|
|
86
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
83
87
|
duration: 300
|
|
84
88
|
cloud/instance-type: m5n.large
|
|
85
89
|
cloud/vendor: aws
|
|
86
90
|
cpu/utilization: 59
|
|
87
91
|
outputs:
|
|
88
|
-
- timestamp:
|
|
92
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
89
93
|
duration: 300
|
|
90
94
|
cloud/instance-type: m5n.large
|
|
91
95
|
cloud/vendor: aws
|
|
92
96
|
cpu/utilization: 89
|
|
93
97
|
vcpus-allocated: 2
|
|
94
|
-
- timestamp:
|
|
98
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
95
99
|
duration: 300
|
|
96
100
|
cloud/instance-type: m5n.large
|
|
97
101
|
cloud/vendor: aws
|
|
@@ -99,24 +103,24 @@ tree:
|
|
|
99
103
|
vcpus-allocated: 2
|
|
100
104
|
server-2:
|
|
101
105
|
inputs:
|
|
102
|
-
- timestamp:
|
|
106
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
103
107
|
duration: 300
|
|
104
108
|
cloud/instance-type: m5n.large
|
|
105
109
|
cloud/vendor: aws
|
|
106
110
|
cpu/utilization: 24
|
|
107
|
-
- timestamp:
|
|
111
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
108
112
|
duration: 300
|
|
109
113
|
cloud/instance-type: m5n.large
|
|
110
114
|
cloud/vendor: aws
|
|
111
115
|
cpu/utilization: 27
|
|
112
116
|
outputs:
|
|
113
|
-
- timestamp:
|
|
117
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
114
118
|
duration: 300
|
|
115
119
|
cloud/instance-type: m5n.large
|
|
116
120
|
cloud/vendor: aws
|
|
117
121
|
cpu/utilization: 24
|
|
118
122
|
vcpus-allocated: 2
|
|
119
|
-
- timestamp:
|
|
123
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
120
124
|
duration: 300
|
|
121
125
|
cloud/instance-type: m5n.large
|
|
122
126
|
cloud/vendor: aws
|
|
@@ -124,28 +128,28 @@ tree:
|
|
|
124
128
|
vcpus-allocated: 2
|
|
125
129
|
outputs:
|
|
126
130
|
- cpu/utilization: 56.5
|
|
127
|
-
timestamp:
|
|
131
|
+
timestamp: "2024-02-26 00:00:00"
|
|
128
132
|
duration: 300
|
|
129
133
|
- cpu/utilization: 43
|
|
130
|
-
timestamp:
|
|
134
|
+
timestamp: "2024-02-26 00:05:00"
|
|
131
135
|
duration: 300
|
|
132
136
|
aggregated:
|
|
133
137
|
cpu/utilization: 49.75
|
|
134
138
|
outputs:
|
|
135
139
|
- cpu/utilization: 56.5
|
|
136
|
-
timestamp:
|
|
140
|
+
timestamp: "2024-02-26 00:00:00"
|
|
137
141
|
duration: 300
|
|
138
142
|
- cpu/utilization: 43
|
|
139
|
-
timestamp:
|
|
143
|
+
timestamp: "2024-02-26 00:05:00"
|
|
140
144
|
duration: 300
|
|
141
145
|
aggregated:
|
|
142
146
|
cpu/utilization: 49.75
|
|
143
147
|
outputs:
|
|
144
148
|
- cpu/utilization: 56.5
|
|
145
|
-
timestamp:
|
|
149
|
+
timestamp: "2024-02-26 00:00:00"
|
|
146
150
|
duration: 300
|
|
147
151
|
- cpu/utilization: 43
|
|
148
|
-
timestamp:
|
|
152
|
+
timestamp: "2024-02-26 00:05:00"
|
|
149
153
|
duration: 300
|
|
150
154
|
aggregated:
|
|
151
155
|
cpu/utilization: 49.75
|
|
@@ -17,8 +17,12 @@ initialize:
|
|
|
17
17
|
output:
|
|
18
18
|
- cpu-cores-utilized
|
|
19
19
|
- vcpus-allocated
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
parameter-metadata:
|
|
21
|
+
inputs:
|
|
22
|
+
cpu/utilization:
|
|
23
|
+
unit: percentage
|
|
24
|
+
description: refers to CPU utilization.
|
|
25
|
+
aggregation-method: avg
|
|
22
26
|
execution:
|
|
23
27
|
command: >-
|
|
24
28
|
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
@@ -28,21 +32,20 @@ execution:
|
|
|
28
32
|
environment:
|
|
29
33
|
if-version: 0.4.0
|
|
30
34
|
os: macOS
|
|
31
|
-
os-version:
|
|
35
|
+
os-version: "13.2"
|
|
32
36
|
node-version: 18.14.2
|
|
33
37
|
date-time: 2024-07-01T20:34:35.981Z (UTC)
|
|
34
38
|
dependencies:
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- '@types/node@20.9.0'
|
|
39
|
+
- "@babel/core@7.22.10"
|
|
40
|
+
- "@babel/preset-typescript@7.23.3"
|
|
41
|
+
- "@commitlint/cli@18.6.0"
|
|
42
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
43
|
+
- "@grnsft/if-core@0.0.10"
|
|
44
|
+
- "@jest/globals@29.7.0"
|
|
45
|
+
- "@types/jest@29.5.8"
|
|
46
|
+
- "@types/js-yaml@4.0.9"
|
|
47
|
+
- "@types/luxon@3.4.2"
|
|
48
|
+
- "@types/node@20.9.0"
|
|
46
49
|
- axios-mock-adapter@1.22.0
|
|
47
50
|
- axios@1.7.2
|
|
48
51
|
- cross-env@7.0.3
|
|
@@ -68,30 +71,31 @@ tree:
|
|
|
68
71
|
children:
|
|
69
72
|
application:
|
|
70
73
|
pipeline:
|
|
71
|
-
|
|
74
|
+
compute:
|
|
75
|
+
- cloud-metadata
|
|
72
76
|
children:
|
|
73
77
|
uk-west:
|
|
74
78
|
children:
|
|
75
79
|
server-1:
|
|
76
80
|
inputs:
|
|
77
|
-
- timestamp:
|
|
81
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
78
82
|
duration: 300
|
|
79
83
|
cloud/instance-type: m5n.large
|
|
80
84
|
cloud/vendor: aws
|
|
81
85
|
cpu/utilization: 89
|
|
82
|
-
- timestamp:
|
|
86
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
83
87
|
duration: 300
|
|
84
88
|
cloud/instance-type: m5n.large
|
|
85
89
|
cloud/vendor: aws
|
|
86
90
|
cpu/utilization: 59
|
|
87
91
|
outputs:
|
|
88
|
-
- timestamp:
|
|
92
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
89
93
|
duration: 300
|
|
90
94
|
cloud/instance-type: m5n.large
|
|
91
95
|
cloud/vendor: aws
|
|
92
96
|
cpu/utilization: 89
|
|
93
97
|
vcpus-allocated: 2
|
|
94
|
-
- timestamp:
|
|
98
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
95
99
|
duration: 300
|
|
96
100
|
cloud/instance-type: m5n.large
|
|
97
101
|
cloud/vendor: aws
|
|
@@ -101,24 +105,24 @@ tree:
|
|
|
101
105
|
cpu/utilization: 74
|
|
102
106
|
server-2:
|
|
103
107
|
inputs:
|
|
104
|
-
- timestamp:
|
|
108
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
105
109
|
duration: 300
|
|
106
110
|
cloud/instance-type: m5n.large
|
|
107
111
|
cloud/vendor: aws
|
|
108
112
|
cpu/utilization: 24
|
|
109
|
-
- timestamp:
|
|
113
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
110
114
|
duration: 300
|
|
111
115
|
cloud/instance-type: m5n.large
|
|
112
116
|
cloud/vendor: aws
|
|
113
117
|
cpu/utilization: 27
|
|
114
118
|
outputs:
|
|
115
|
-
- timestamp:
|
|
119
|
+
- timestamp: "2024-02-26 00:00:00"
|
|
116
120
|
duration: 300
|
|
117
121
|
cloud/instance-type: m5n.large
|
|
118
122
|
cloud/vendor: aws
|
|
119
123
|
cpu/utilization: 24
|
|
120
124
|
vcpus-allocated: 2
|
|
121
|
-
- timestamp:
|
|
125
|
+
- timestamp: "2024-02-26 00:05:00"
|
|
122
126
|
duration: 300
|
|
123
127
|
cloud/instance-type: m5n.large
|
|
124
128
|
cloud/vendor: aws
|
|
@@ -128,28 +132,28 @@ tree:
|
|
|
128
132
|
cpu/utilization: 25.5
|
|
129
133
|
outputs:
|
|
130
134
|
- cpu/utilization: 56.5
|
|
131
|
-
timestamp:
|
|
135
|
+
timestamp: "2024-02-26 00:00:00"
|
|
132
136
|
duration: 300
|
|
133
137
|
- cpu/utilization: 43
|
|
134
|
-
timestamp:
|
|
138
|
+
timestamp: "2024-02-26 00:05:00"
|
|
135
139
|
duration: 300
|
|
136
140
|
aggregated:
|
|
137
141
|
cpu/utilization: 49.75
|
|
138
142
|
outputs:
|
|
139
143
|
- cpu/utilization: 56.5
|
|
140
|
-
timestamp:
|
|
144
|
+
timestamp: "2024-02-26 00:00:00"
|
|
141
145
|
duration: 300
|
|
142
146
|
- cpu/utilization: 43
|
|
143
|
-
timestamp:
|
|
147
|
+
timestamp: "2024-02-26 00:05:00"
|
|
144
148
|
duration: 300
|
|
145
149
|
aggregated:
|
|
146
150
|
cpu/utilization: 49.75
|
|
147
151
|
outputs:
|
|
148
152
|
- cpu/utilization: 56.5
|
|
149
|
-
timestamp:
|
|
153
|
+
timestamp: "2024-02-26 00:00:00"
|
|
150
154
|
duration: 300
|
|
151
155
|
- cpu/utilization: 43
|
|
152
|
-
timestamp:
|
|
156
|
+
timestamp: "2024-02-26 00:05:00"
|
|
153
157
|
duration: 300
|
|
154
158
|
aggregated:
|
|
155
159
|
cpu/utilization: 49.75
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
name:
|
|
2
|
-
description: failure when `
|
|
1
|
+
name: regroup
|
|
2
|
+
description: failure when `regroup` is not an array
|
|
3
3
|
initialize:
|
|
4
|
-
|
|
5
|
-
- yaml
|
|
6
|
-
plugins:
|
|
7
|
-
group-by:
|
|
8
|
-
path: builtin
|
|
9
|
-
method: GroupBy
|
|
4
|
+
plugins: {}
|
|
10
5
|
execution:
|
|
11
6
|
status: fail
|
|
12
7
|
command: >-
|
|
13
|
-
/Users/
|
|
14
|
-
/Users/
|
|
15
|
-
manifests/
|
|
16
|
-
manifests/outputs/
|
|
8
|
+
/Users/manushak/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
9
|
+
/Users/manushak/Documents/Projects/Green-Software/if/src/if-run/index.ts -m
|
|
10
|
+
manifests/examples/features/regroup/failure-invalid-regroup.yml -o
|
|
11
|
+
manifests/outputs/features/failure-invalid-regroup.yaml
|
|
17
12
|
environment:
|
|
18
|
-
if-version: 0.
|
|
13
|
+
if-version: 0.5.0
|
|
19
14
|
os: macOS
|
|
20
|
-
os-version:
|
|
21
|
-
node-version: 18.
|
|
22
|
-
date-time: 2024-
|
|
15
|
+
os-version: 13.6.7
|
|
16
|
+
node-version: 18.20.0
|
|
17
|
+
date-time: 2024-08-05T14:53:00.560Z (UTC)
|
|
23
18
|
dependencies:
|
|
24
19
|
- '@babel/core@7.22.10'
|
|
25
20
|
- '@babel/preset-typescript@7.23.3'
|
|
26
21
|
- '@commitlint/cli@18.6.0'
|
|
27
22
|
- '@commitlint/config-conventional@18.6.0'
|
|
28
|
-
- '@grnsft/if-core@0.0.
|
|
29
|
-
|
|
23
|
+
- '@grnsft/if-core@0.0.16'
|
|
30
24
|
- '@jest/globals@29.7.0'
|
|
31
25
|
- '@types/jest@29.5.8'
|
|
32
26
|
- '@types/js-yaml@4.0.9'
|
|
@@ -40,6 +34,7 @@ execution:
|
|
|
40
34
|
- fixpack@4.0.0
|
|
41
35
|
- gts@5.2.0
|
|
42
36
|
- husky@8.0.3
|
|
37
|
+
- if-eco-ci-plugin@v0.0.1 extraneous -> file:../../if-eco-ci-plugin
|
|
43
38
|
- jest@29.7.0
|
|
44
39
|
- js-yaml@4.1.0
|
|
45
40
|
- lint-staged@15.2.2
|
|
@@ -51,18 +46,14 @@ execution:
|
|
|
51
46
|
- typescript-cubic-spline@1.0.1
|
|
52
47
|
- typescript@5.2.2
|
|
53
48
|
- winston@3.11.0
|
|
54
|
-
- zod@3.
|
|
49
|
+
- zod@3.23.8
|
|
55
50
|
error: >-
|
|
56
|
-
InputValidationError: "
|
|
57
|
-
Error code: invalid_type.
|
|
51
|
+
InputValidationError: "regroup" parameter is not an array or should contain at least one key. Error code: invalid_type.
|
|
58
52
|
tree:
|
|
59
53
|
children:
|
|
60
54
|
my-app:
|
|
61
55
|
pipeline:
|
|
62
|
-
|
|
63
|
-
config:
|
|
64
|
-
group-by:
|
|
65
|
-
group: cloud/region
|
|
56
|
+
regroup: cloud/region
|
|
66
57
|
inputs:
|
|
67
58
|
- timestamp: 2023-07-06T00:00
|
|
68
59
|
duration: 300
|
package/manifests/outputs/{plugins/groupby → features}/failure-missing-cloud-instance-type.yaml
RENAMED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
name: groupby
|
|
2
2
|
description: null
|
|
3
3
|
initialize:
|
|
4
|
-
|
|
5
|
-
- yaml
|
|
6
|
-
plugins:
|
|
7
|
-
group-by:
|
|
8
|
-
path: builtin
|
|
9
|
-
method: GroupBy
|
|
4
|
+
plugins: {}
|
|
10
5
|
execution:
|
|
11
6
|
status: fail
|
|
12
7
|
command: >-
|
|
@@ -17,21 +12,20 @@ execution:
|
|
|
17
12
|
environment:
|
|
18
13
|
if-version: 0.4.0
|
|
19
14
|
os: macOS
|
|
20
|
-
os-version:
|
|
15
|
+
os-version: "13.2"
|
|
21
16
|
node-version: 18.14.2
|
|
22
17
|
date-time: 2024-07-02T19:10:00.820Z (UTC)
|
|
23
18
|
dependencies:
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
- '@types/node@20.9.0'
|
|
19
|
+
- "@babel/core@7.22.10"
|
|
20
|
+
- "@babel/preset-typescript@7.23.3"
|
|
21
|
+
- "@commitlint/cli@18.6.0"
|
|
22
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
23
|
+
- "@grnsft/if-core@0.0.10"
|
|
24
|
+
- "@jest/globals@29.7.0"
|
|
25
|
+
- "@types/jest@29.5.8"
|
|
26
|
+
- "@types/js-yaml@4.0.9"
|
|
27
|
+
- "@types/luxon@3.4.2"
|
|
28
|
+
- "@types/node@20.9.0"
|
|
35
29
|
- axios-mock-adapter@1.22.0
|
|
36
30
|
- axios@1.7.2
|
|
37
31
|
- cross-env@7.0.3
|
|
@@ -52,17 +46,14 @@ execution:
|
|
|
52
46
|
- typescript@5.2.2
|
|
53
47
|
- winston@3.11.0
|
|
54
48
|
- zod@3.22.4
|
|
55
|
-
error:
|
|
49
|
+
error: "InvalidGroupingError: Invalid group cloud/instance-type."
|
|
56
50
|
tree:
|
|
57
51
|
children:
|
|
58
52
|
my-app:
|
|
59
53
|
pipeline:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
group:
|
|
64
|
-
- cloud/region
|
|
65
|
-
- cloud/instance-type
|
|
54
|
+
regroup:
|
|
55
|
+
- cloud/region
|
|
56
|
+
- cloud/instance-type
|
|
66
57
|
inputs:
|
|
67
58
|
- timestamp: 2023-07-06T00:00
|
|
68
59
|
duration: 300
|
|
@@ -21,8 +21,6 @@ initialize:
|
|
|
21
21
|
numerator: vcpus-allocated
|
|
22
22
|
denominator: 2
|
|
23
23
|
output: cpu/number-cores
|
|
24
|
-
outputs:
|
|
25
|
-
- yaml
|
|
26
24
|
execution:
|
|
27
25
|
command: >-
|
|
28
26
|
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
@@ -32,21 +30,20 @@ execution:
|
|
|
32
30
|
environment:
|
|
33
31
|
if-version: 0.4.0
|
|
34
32
|
os: macOS
|
|
35
|
-
os-version:
|
|
33
|
+
os-version: "13.2"
|
|
36
34
|
node-version: 18.14.2
|
|
37
35
|
date-time: 2024-07-02T05:13:05.868Z (UTC)
|
|
38
36
|
dependencies:
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- '@types/node@20.9.0'
|
|
37
|
+
- "@babel/core@7.22.10"
|
|
38
|
+
- "@babel/preset-typescript@7.23.3"
|
|
39
|
+
- "@commitlint/cli@18.6.0"
|
|
40
|
+
- "@commitlint/config-conventional@18.6.0"
|
|
41
|
+
- "@grnsft/if-core@0.0.10"
|
|
42
|
+
- "@jest/globals@29.7.0"
|
|
43
|
+
- "@types/jest@29.5.8"
|
|
44
|
+
- "@types/js-yaml@4.0.9"
|
|
45
|
+
- "@types/luxon@3.4.2"
|
|
46
|
+
- "@types/node@20.9.0"
|
|
50
47
|
- axios-mock-adapter@1.22.0
|
|
51
48
|
- axios@1.7.2
|
|
52
49
|
- cross-env@7.0.3
|
|
@@ -72,10 +69,9 @@ tree:
|
|
|
72
69
|
children:
|
|
73
70
|
child:
|
|
74
71
|
pipeline:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
divide: null
|
|
72
|
+
compute:
|
|
73
|
+
- cloud-metadata
|
|
74
|
+
- divide
|
|
79
75
|
defaults:
|
|
80
76
|
cloud/vendor: aws
|
|
81
77
|
cloud/instance-type: m5n.large
|