@grnsft/if 0.4.0 → 0.5.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/CONTRIBUTING.md +4 -5
- package/README.md +14 -33
- package/Refactor-migration-guide.md +5 -6
- package/build/builtins/coefficient/index.d.ts +1 -2
- package/build/builtins/coefficient/index.js +18 -4
- package/build/builtins/copy-param/index.d.ts +2 -0
- package/build/builtins/copy-param/index.js +68 -0
- package/build/builtins/csv-lookup/index.d.ts +1 -1
- package/build/builtins/csv-lookup/index.js +44 -37
- package/build/builtins/divide/index.d.ts +1 -1
- package/build/builtins/divide/index.js +22 -11
- package/build/builtins/exponent/index.d.ts +1 -2
- package/build/builtins/exponent/index.js +9 -23
- package/build/builtins/export-csv-raw.d.ts +4 -2
- package/build/builtins/export-csv-raw.js +7 -7
- package/build/builtins/export-csv.js +8 -11
- package/build/builtins/export-log.js +1 -1
- package/build/builtins/export-yaml.js +6 -6
- package/build/builtins/group-by.d.ts +1 -1
- package/build/builtins/group-by.js +5 -5
- package/build/builtins/index.d.ts +1 -0
- package/build/builtins/index.js +4 -2
- package/build/builtins/interpolation/index.d.ts +1 -1
- package/build/builtins/interpolation/index.js +10 -8
- package/build/builtins/mock-observations/helpers/common-generator.d.ts +2 -2
- package/build/builtins/mock-observations/helpers/common-generator.js +10 -13
- package/build/builtins/mock-observations/helpers/rand-int-generator.d.ts +2 -2
- package/build/builtins/mock-observations/helpers/rand-int-generator.js +14 -24
- package/build/builtins/mock-observations/index.d.ts +1 -2
- package/build/builtins/mock-observations/index.js +2 -4
- package/build/builtins/multiply/index.d.ts +1 -2
- package/build/builtins/multiply/index.js +10 -16
- package/build/builtins/regex/index.d.ts +1 -2
- package/build/builtins/regex/index.js +8 -12
- package/build/builtins/sci/index.d.ts +1 -2
- package/build/builtins/sci/index.js +23 -22
- package/build/builtins/sci-embodied/index.d.ts +1 -1
- package/build/builtins/sci-embodied/index.js +16 -17
- package/build/builtins/shell/index.d.ts +1 -2
- package/build/builtins/shell/index.js +4 -4
- package/build/builtins/subtract/index.d.ts +1 -2
- package/build/builtins/subtract/index.js +7 -23
- package/build/builtins/sum/index.d.ts +1 -2
- package/build/builtins/sum/index.js +14 -11
- package/build/builtins/time-sync.d.ts +1 -2
- package/build/builtins/time-sync.js +62 -67
- package/build/check.d.ts +2 -0
- package/build/check.js +95 -0
- package/build/config/config.d.ts +13 -1
- package/build/config/config.js +61 -1
- package/build/config/params.js +1 -6
- package/build/config/strings.d.ts +45 -5
- package/build/config/strings.js +50 -9
- package/build/diff.js +2 -2
- package/build/env.d.ts +2 -0
- package/build/env.js +38 -0
- package/build/lib/aggregate.js +1 -1
- package/build/lib/compute.js +1 -1
- package/build/lib/exhaust.js +4 -4
- package/build/lib/initialize.js +20 -24
- package/build/lib/load.js +4 -4
- package/build/types/compute.d.ts +1 -1
- package/build/types/compute.js +1 -1
- package/build/types/if-env.d.ts +8 -0
- package/build/types/if-env.js +3 -0
- package/build/types/interface.d.ts +1 -19
- package/build/types/interface.js +1 -1
- package/build/types/npm.d.ts +9 -0
- package/build/types/npm.js +3 -0
- package/build/types/process-args.d.ts +9 -0
- package/build/types/process-args.js +1 -1
- package/build/util/aggregation-helper.d.ts +1 -1
- package/build/util/aggregation-helper.js +5 -5
- package/build/util/args.d.ts +23 -1
- package/build/util/args.js +91 -14
- package/build/util/debug-logger.js +8 -7
- package/build/util/fs.d.ts +20 -0
- package/build/util/fs.js +94 -0
- package/build/util/helpers.d.ts +25 -5
- package/build/util/helpers.js +111 -15
- package/build/util/npm.d.ts +28 -0
- package/build/util/npm.js +152 -0
- package/build/util/plugin-storage.js +4 -4
- package/build/util/validations.js +4 -4
- package/jest.config.js +1 -1
- package/manifests/{plugins → examples/builtins/csv-lookup}/cloud-metadata/failure-invalid-instance-type.yaml +9 -3
- package/manifests/examples/builtins/csv-lookup/cloud-metadata/failure-invalid-vendor.yaml +27 -0
- package/manifests/{plugins → examples/builtins/csv-lookup}/cloud-metadata/failure-missing-cloud-vendor.yml +9 -3
- package/manifests/{plugins → examples/builtins/csv-lookup}/cloud-metadata/success.yml +8 -2
- package/manifests/{plugins/csv-lookup → examples/builtins/csv-lookup/region-metadata}/failure-missing-column.yml +1 -2
- package/manifests/{plugins/csv-lookup → examples/builtins/csv-lookup/region-metadata}/failure-missing-output.yml +1 -2
- package/manifests/{plugins/csv-lookup → examples/builtins/csv-lookup/region-metadata}/success-renaming.yml +1 -2
- package/manifests/{plugins/csv-lookup → examples/builtins/csv-lookup/region-metadata}/success.yml +2 -3
- package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-missing-input-param.yml +23 -0
- package/manifests/examples/builtins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yml +24 -0
- package/manifests/examples/builtins/csv-lookup/tdp-finder/success.yml +24 -0
- package/manifests/{plugins → examples/builtins}/divide/failure-denominator-equal-zero.yml +8 -9
- package/manifests/{plugins → examples/builtins}/divide/failure-invalid-config-denominator.yml +8 -9
- package/manifests/{plugins → examples/builtins}/divide/failure-missing-numerator.yml +8 -9
- package/manifests/{plugins → examples/builtins}/divide/success.yml +9 -10
- package/manifests/examples/builtins/exponent/success.yml +25 -0
- package/manifests/{plugins → examples/builtins}/groupby/success.yml +1 -1
- package/manifests/examples/builtins/interpolation/success.yml +23 -0
- package/manifests/{plugins → examples/builtins}/sci/failure-missing-input-param.yml +2 -6
- package/manifests/{plugins → examples/builtins}/sci/success.yml +0 -3
- package/manifests/examples/builtins/subtract/success.yml +24 -0
- package/manifests/{plugins → examples/builtins}/sum/success.yml +1 -1
- package/manifests/examples/{generics.yml → pipelines/generics.yml} +49 -13
- package/manifests/examples/{nesting.yml → pipelines/nesting.yml} +82 -35
- package/manifests/examples/{pipeline-teads-sci.yml → pipelines/pipeline-teads-sci.yml} +54 -18
- package/manifests/examples/{pipeline-with-aggregate.yml → pipelines/pipeline-with-aggregate.yml} +67 -25
- package/manifests/examples/{pipeline-with-mocks.yml → pipelines/pipeline-with-mocks.yml} +65 -22
- package/manifests/examples/pipelines/zeros.yml +130 -0
- package/manifests/outputs/bugs/aggregation-error-wrong-metric.yaml +243 -0
- package/manifests/outputs/bugs/initialize-error-no-config.yaml +78 -0
- package/manifests/outputs/bugs/initialize-error-no-path.yaml +91 -0
- package/manifests/outputs/bugs/initialize-error-no-plugins.yaml +74 -0
- package/manifests/outputs/bugs/input-error-missing-duration.yaml +84 -0
- package/manifests/outputs/bugs/mock-observations-failure-duration-is-zero.yaml +81 -0
- package/manifests/outputs/bugs/pipeline-error-naming-mismatch.yaml +91 -0
- package/manifests/outputs/bugs/pipeline-error-uninitialized-plugin.yaml +92 -0
- package/manifests/outputs/bugs/pipeline-ordering-error.yaml +155 -0
- package/manifests/outputs/bugs/sci-embodied-missing-resources-total.yaml +73 -0
- package/manifests/outputs/divide.yaml +93 -0
- package/manifests/outputs/features/aggregate-failure-invalid-metrics.yaml +101 -0
- package/manifests/outputs/features/aggregate-failure-missing-metric-in-inputs.yaml +100 -0
- package/manifests/outputs/features/aggregate-horizontal.yaml +128 -0
- package/manifests/outputs/features/aggregate-vertical.yaml +151 -0
- package/manifests/outputs/features/aggregate.yaml +155 -0
- package/manifests/outputs/pipelines/cloud-metadata-divide.yaml +95 -0
- package/manifests/outputs/pipelines/mock-obs-group-by-cloud-meta.yaml +645 -0
- package/manifests/outputs/pipelines/mock-obs-groupby.yaml +178 -0
- package/manifests/outputs/pipelines/mock-obs-time-sync.yaml +350 -0
- package/manifests/outputs/plugins/coefficient/failure-invalid-config-input-param.yaml +73 -0
- package/manifests/outputs/plugins/coefficient/failure-output-param-is-null.yaml +73 -0
- package/manifests/outputs/plugins/coefficient/success.yaml +75 -0
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-invalid-instance-type.yaml +27 -0
- package/manifests/{plugins → outputs/plugins/csv-lookup}/cloud-metadata/failure-invalid-vendor.yaml +8 -2
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/failure-missing-cloud-vendor.yaml +77 -0
- package/manifests/outputs/plugins/csv-lookup/cloud-metadata/success.yaml +82 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/failure-missing-column.yaml +76 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/failure-missing-output.yaml +75 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/success-renaming.yaml +80 -0
- package/manifests/outputs/plugins/csv-lookup/region-metadata/success.yaml +92 -0
- package/manifests/outputs/plugins/csv-lookup/tdp-finder/failure-missing-input-param.yaml +74 -0
- package/manifests/outputs/plugins/csv-lookup/tdp-finder/failure-unsupported-physical-processor.yaml +75 -0
- package/manifests/outputs/plugins/csv-lookup/tdp-finder/success.yaml +76 -0
- package/manifests/outputs/plugins/divide/failure-invalid-config-denominator.yaml +73 -0
- package/manifests/outputs/plugins/divide/failure-missing-numerator.yaml +77 -0
- package/manifests/outputs/plugins/divide/success-denominator-equal-zero.yaml +95 -0
- package/manifests/outputs/plugins/divide/success.yaml +95 -0
- package/manifests/outputs/plugins/exponent/success.yaml +77 -0
- package/manifests/outputs/plugins/groupby/failure-invalid-config-group.yaml +96 -0
- package/manifests/outputs/plugins/groupby/failure-missing-cloud-instance-type.yaml +95 -0
- package/manifests/outputs/plugins/groupby/success.yaml +101 -0
- package/manifests/outputs/plugins/interpolation/interpolation.yaml +83 -0
- package/manifests/outputs/plugins/interpolation/success.yaml +83 -0
- package/manifests/outputs/plugins/mock-observations/failure-invalid-config-cpu-range.yaml +86 -0
- package/manifests/outputs/plugins/mock-observations/failure-invalid-memory-utilization-range.yaml +84 -0
- package/manifests/outputs/plugins/mock-observations/failure-missing-timestamp-from-param.yaml +83 -0
- package/manifests/outputs/plugins/mock-observations/success.yaml +220 -0
- package/manifests/outputs/plugins/multiply/failure-input-parameter-is-missing.yaml +75 -0
- package/manifests/outputs/plugins/multiply/success-with-multiple-inputs.yaml +96 -0
- package/manifests/outputs/plugins/multiply/success.yaml +78 -0
- package/manifests/outputs/plugins/regex/failure-missing-input-param.yaml +75 -0
- package/manifests/outputs/plugins/regex/failure-not-matching-with-regex.yaml +76 -0
- package/manifests/outputs/plugins/regex/success.yaml +81 -0
- package/manifests/outputs/plugins/sci/failure-invalid-config-value.yaml +72 -0
- package/manifests/outputs/plugins/sci/failure-missing-input-param.yaml +72 -0
- package/manifests/outputs/plugins/sci/success.yml.yaml +80 -0
- package/manifests/outputs/plugins/sci-embodied/failure-invalid-default-emission-value.yaml +75 -0
- package/manifests/outputs/plugins/sci-embodied/failure-missing-expected-lifespan.yaml +71 -0
- package/manifests/outputs/plugins/sci-embodied/success.yaml +78 -0
- package/manifests/outputs/plugins/shell/failure-invalid-command.yaml +70 -0
- package/manifests/outputs/plugins/shell/success.yaml +68 -0
- package/manifests/outputs/plugins/subtract/success.yaml +78 -0
- package/manifests/outputs/plugins/sum/failure-missing-input-param.yaml +75 -0
- package/manifests/outputs/plugins/sum/failure-missing-output-param.yaml +78 -0
- package/manifests/outputs/plugins/sum/success.yaml +78 -0
- package/manifests/outputs/plugins/time-sync/failure-config-start-later-end.yaml +82 -0
- package/manifests/outputs/plugins/time-sync/failure-missing-global-config.yaml +78 -0
- package/manifests/outputs/plugins/time-sync/success.yaml +119 -0
- package/package.json +10 -4
- package/src/__mocks__/mock-manifest.yaml +72 -0
- package/src/builtins/README.md +1 -1
- package/src/builtins/coefficient/README.md +19 -1
- package/src/builtins/copy-param/README.md +104 -0
- package/src/builtins/csv-lookup/README.md +39 -1
- package/src/builtins/divide/README.md +29 -3
- package/src/builtins/exponent/README.md +21 -1
- package/src/builtins/interpolation/README.md +29 -1
- package/src/builtins/mock-observations/README.md +1 -1
- package/src/builtins/multiply/README.md +16 -1
- package/src/builtins/regex/README.md +32 -2
- package/src/builtins/sci/README.md +24 -1
- package/src/builtins/sci-embodied/README.md +15 -1
- package/src/builtins/shell/README.md +12 -1
- package/src/builtins/subtract/README.md +12 -1
- package/src/builtins/sum/README.md +28 -1
- package/src/config/env-template.yml +24 -0
- package/build/builtins/coefficient/types.d.ts +0 -5
- package/build/builtins/coefficient/types.js +0 -3
- package/build/builtins/exponent/types.d.ts +0 -5
- package/build/builtins/exponent/types.js +0 -3
- package/build/builtins/interpolation/types.d.ts +0 -5
- package/build/builtins/interpolation/types.js +0 -10
- package/build/builtins/mock-observations/types.d.ts +0 -13
- package/build/builtins/mock-observations/types.js +0 -3
- package/build/builtins/multiply/types.d.ts +0 -4
- package/build/builtins/multiply/types.js +0 -3
- package/build/builtins/subtract/types.d.ts +0 -4
- package/build/builtins/subtract/types.js +0 -3
- package/build/builtins/sum/types.d.ts +0 -4
- package/build/builtins/sum/types.js +0 -3
- package/build/types/common.d.ts +0 -4
- package/build/types/common.js +0 -3
- package/build/types/group-by.d.ts +0 -3
- package/build/types/group-by.js +0 -3
- package/build/types/helpers.d.ts +0 -4
- package/build/types/helpers.js +0 -3
- package/build/util/errors.d.ts +0 -6
- package/build/util/errors.js +0 -33
- package/manifests/bugs/aggregation-error-wrong-metric.yml +0 -128
- package/manifests/bugs/azure-importer-ignoring-defaults.yml +0 -61
- package/manifests/bugs/azure-importer-incorrect-calculation.yml +0 -56
- package/manifests/bugs/initialize-error-no-config.yml +0 -27
- package/manifests/bugs/initialize-error-no-path.yml +0 -28
- package/manifests/bugs/initialize-error-no-plugins.yml +0 -23
- package/manifests/bugs/input-error-missing-duration.yml +0 -21
- package/manifests/bugs/mock-observations-failure-duration-is-zero.yml +0 -34
- package/manifests/bugs/pipeline-error-naming-mismatch.yml +0 -28
- package/manifests/bugs/pipeline-error-uninitialized-plugin.yml +0 -29
- package/manifests/bugs/pipeline-ordering-error.yml +0 -82
- package/manifests/bugs/sci-embodied-missing-resources-total.yml +0 -23
- package/manifests/examples/basic.yml +0 -28
- package/manifests/examples/mock-cpu-util-to-carbon.yml +0 -70
- package/manifests/features/aggregate-failure-inalid-metrics.yml +0 -43
- package/manifests/features/aggregate-failure-missing-metric-in-inputs.yml +0 -43
- package/manifests/features/aggregate-horizontal.yml +0 -44
- package/manifests/features/aggregate-vertical.yml +0 -44
- package/manifests/features/aggregate.yml +0 -44
- package/manifests/integrations/cloud-metadata-divide-boavizta.yml +0 -38
- package/manifests/integrations/mock-obs-group-by-cloud-meta.yml +0 -51
- package/manifests/integrations/mock-obs-groupby.yml +0 -39
- package/manifests/integrations/mock-obs-time-sync.yml +0 -65
- package/manifests/plugins/tdp-finder/failure-missing-input-param.yml +0 -18
- package/manifests/plugins/tdp-finder/failure-unsupported-physical-processor.yml +0 -19
- package/manifests/plugins/tdp-finder/success.yml +0 -19
- /package/manifests/{plugins → examples/builtins}/coefficient/failure-invalid-config-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/coefficient/failure-output-param-is-null.yaml +0 -0
- /package/manifests/{plugins → examples/builtins}/coefficient/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/groupby/failure-invalid-config-group.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/groupby/failure-missing-cloud-instance-type.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/interpolation/interpolation.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-config-cpu-range.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/failure-invalid-memory-utilization-range.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/failure-missing-timestamp-from-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/mock-observations/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/multiply/failure-input-parameter-is-missing.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/multiply/success-with-multiple-inputs.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/multiply/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/regex/failure-missing-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/regex/failure-not-matching-with-regex.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/regex/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci/failure-invalid-config-value.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci-embodied/failure-invalid-default-emission-value.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci-embodied/failure-missing-expected-lifespan.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sci-embodied/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/shell/failure-invalid-command.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/shell/success.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sum/failure-missing-input-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/sum/failure-missing-output-param.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/time-sync/failure-config-start-later-end.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/time-sync/failure-missing-global-config.yml +0 -0
- /package/manifests/{plugins → examples/builtins}/time-sync/success.yml +0 -0
- /package/manifests/examples/{instance-metadata.yml → pipelines/instance-metadata.yml} +0 -0
- /package/manifests/examples/{sci.yml → pipelines/sci.yml} +0 -0
- /package/manifests/examples/{teads-curve.yml → pipelines/teads-curve.yml} +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
name: Mock observations + Group by
|
|
2
|
+
description: Integration of `mock observations` + `groupby plugins`
|
|
3
|
+
initialize:
|
|
4
|
+
plugins:
|
|
5
|
+
mock-observations:
|
|
6
|
+
path: builtin
|
|
7
|
+
method: MockObservations
|
|
8
|
+
global-config:
|
|
9
|
+
timestamp-from: '2024-03-05T00:00:00.000Z'
|
|
10
|
+
timestamp-to: '2024-03-05T00:01:00.000Z'
|
|
11
|
+
duration: 10
|
|
12
|
+
components:
|
|
13
|
+
- name: server-1
|
|
14
|
+
cloud/instance-type: Standard_E64_v3
|
|
15
|
+
cloud/region: westus3
|
|
16
|
+
- name: server-2
|
|
17
|
+
cloud/instance-type: Standard_E64_v3
|
|
18
|
+
cloud/region: france
|
|
19
|
+
generators:
|
|
20
|
+
common:
|
|
21
|
+
cloud/vendor: azure
|
|
22
|
+
randint:
|
|
23
|
+
cpu/utilization:
|
|
24
|
+
min: 1
|
|
25
|
+
max: 99
|
|
26
|
+
group-by:
|
|
27
|
+
path: builtin
|
|
28
|
+
method: GroupBy
|
|
29
|
+
outputs:
|
|
30
|
+
- yaml
|
|
31
|
+
execution:
|
|
32
|
+
command: >-
|
|
33
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
34
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
35
|
+
manifests/outputs/pipelines/mock-obs-groupby.yml -o
|
|
36
|
+
manifests/outputs/pipelines/mock-obs-groupby
|
|
37
|
+
environment:
|
|
38
|
+
if-version: 0.4.0
|
|
39
|
+
os: macOS
|
|
40
|
+
os-version: '13.2'
|
|
41
|
+
node-version: 18.14.2
|
|
42
|
+
date-time: 2024-07-02T05:27:34.757Z (UTC)
|
|
43
|
+
dependencies:
|
|
44
|
+
- '@babel/core@7.22.10'
|
|
45
|
+
- '@babel/preset-typescript@7.23.3'
|
|
46
|
+
- '@commitlint/cli@18.6.0'
|
|
47
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
48
|
+
- '@grnsft/if-core@0.0.10'
|
|
49
|
+
|
|
50
|
+
- '@jest/globals@29.7.0'
|
|
51
|
+
- '@types/jest@29.5.8'
|
|
52
|
+
- '@types/js-yaml@4.0.9'
|
|
53
|
+
- '@types/luxon@3.4.2'
|
|
54
|
+
- '@types/node@20.9.0'
|
|
55
|
+
- axios-mock-adapter@1.22.0
|
|
56
|
+
- axios@1.7.2
|
|
57
|
+
- cross-env@7.0.3
|
|
58
|
+
- csv-parse@5.5.6
|
|
59
|
+
- csv-stringify@6.4.6
|
|
60
|
+
- fixpack@4.0.0
|
|
61
|
+
- gts@5.2.0
|
|
62
|
+
- husky@8.0.3
|
|
63
|
+
- jest@29.7.0
|
|
64
|
+
- js-yaml@4.1.0
|
|
65
|
+
- lint-staged@15.2.2
|
|
66
|
+
- luxon@3.4.4
|
|
67
|
+
- release-it@16.3.0
|
|
68
|
+
- rimraf@5.0.5
|
|
69
|
+
- ts-command-line-args@2.5.1
|
|
70
|
+
- ts-jest@29.1.1
|
|
71
|
+
- typescript-cubic-spline@1.0.1
|
|
72
|
+
- typescript@5.2.2
|
|
73
|
+
- winston@3.11.0
|
|
74
|
+
- zod@3.22.4
|
|
75
|
+
status: success
|
|
76
|
+
tree:
|
|
77
|
+
pipeline:
|
|
78
|
+
- mock-observations
|
|
79
|
+
- group-by
|
|
80
|
+
defaults: null
|
|
81
|
+
config:
|
|
82
|
+
group-by:
|
|
83
|
+
group:
|
|
84
|
+
- cloud/region
|
|
85
|
+
- name
|
|
86
|
+
children:
|
|
87
|
+
westus3:
|
|
88
|
+
children:
|
|
89
|
+
server-1:
|
|
90
|
+
inputs:
|
|
91
|
+
- timestamp: '2024-03-05T00:00:00.000Z'
|
|
92
|
+
duration: 10
|
|
93
|
+
name: server-1
|
|
94
|
+
cloud/instance-type: Standard_E64_v3
|
|
95
|
+
cloud/region: westus3
|
|
96
|
+
cloud/vendor: azure
|
|
97
|
+
cpu/utilization: 12
|
|
98
|
+
- timestamp: '2024-03-05T00:00:10.000Z'
|
|
99
|
+
duration: 10
|
|
100
|
+
name: server-1
|
|
101
|
+
cloud/instance-type: Standard_E64_v3
|
|
102
|
+
cloud/region: westus3
|
|
103
|
+
cloud/vendor: azure
|
|
104
|
+
cpu/utilization: 71
|
|
105
|
+
- timestamp: '2024-03-05T00:00:20.000Z'
|
|
106
|
+
duration: 10
|
|
107
|
+
name: server-1
|
|
108
|
+
cloud/instance-type: Standard_E64_v3
|
|
109
|
+
cloud/region: westus3
|
|
110
|
+
cloud/vendor: azure
|
|
111
|
+
cpu/utilization: 75
|
|
112
|
+
- timestamp: '2024-03-05T00:00:30.000Z'
|
|
113
|
+
duration: 10
|
|
114
|
+
name: server-1
|
|
115
|
+
cloud/instance-type: Standard_E64_v3
|
|
116
|
+
cloud/region: westus3
|
|
117
|
+
cloud/vendor: azure
|
|
118
|
+
cpu/utilization: 39
|
|
119
|
+
- timestamp: '2024-03-05T00:00:40.000Z'
|
|
120
|
+
duration: 10
|
|
121
|
+
name: server-1
|
|
122
|
+
cloud/instance-type: Standard_E64_v3
|
|
123
|
+
cloud/region: westus3
|
|
124
|
+
cloud/vendor: azure
|
|
125
|
+
cpu/utilization: 42
|
|
126
|
+
- timestamp: '2024-03-05T00:00:50.000Z'
|
|
127
|
+
duration: 10
|
|
128
|
+
name: server-1
|
|
129
|
+
cloud/instance-type: Standard_E64_v3
|
|
130
|
+
cloud/region: westus3
|
|
131
|
+
cloud/vendor: azure
|
|
132
|
+
cpu/utilization: 98
|
|
133
|
+
france:
|
|
134
|
+
children:
|
|
135
|
+
server-2:
|
|
136
|
+
inputs:
|
|
137
|
+
- timestamp: '2024-03-05T00:00:00.000Z'
|
|
138
|
+
duration: 10
|
|
139
|
+
name: server-2
|
|
140
|
+
cloud/instance-type: Standard_E64_v3
|
|
141
|
+
cloud/region: france
|
|
142
|
+
cloud/vendor: azure
|
|
143
|
+
cpu/utilization: 14
|
|
144
|
+
- timestamp: '2024-03-05T00:00:10.000Z'
|
|
145
|
+
duration: 10
|
|
146
|
+
name: server-2
|
|
147
|
+
cloud/instance-type: Standard_E64_v3
|
|
148
|
+
cloud/region: france
|
|
149
|
+
cloud/vendor: azure
|
|
150
|
+
cpu/utilization: 80
|
|
151
|
+
- timestamp: '2024-03-05T00:00:20.000Z'
|
|
152
|
+
duration: 10
|
|
153
|
+
name: server-2
|
|
154
|
+
cloud/instance-type: Standard_E64_v3
|
|
155
|
+
cloud/region: france
|
|
156
|
+
cloud/vendor: azure
|
|
157
|
+
cpu/utilization: 53
|
|
158
|
+
- timestamp: '2024-03-05T00:00:30.000Z'
|
|
159
|
+
duration: 10
|
|
160
|
+
name: server-2
|
|
161
|
+
cloud/instance-type: Standard_E64_v3
|
|
162
|
+
cloud/region: france
|
|
163
|
+
cloud/vendor: azure
|
|
164
|
+
cpu/utilization: 10
|
|
165
|
+
- timestamp: '2024-03-05T00:00:40.000Z'
|
|
166
|
+
duration: 10
|
|
167
|
+
name: server-2
|
|
168
|
+
cloud/instance-type: Standard_E64_v3
|
|
169
|
+
cloud/region: france
|
|
170
|
+
cloud/vendor: azure
|
|
171
|
+
cpu/utilization: 40
|
|
172
|
+
- timestamp: '2024-03-05T00:00:50.000Z'
|
|
173
|
+
duration: 10
|
|
174
|
+
name: server-2
|
|
175
|
+
cloud/instance-type: Standard_E64_v3
|
|
176
|
+
cloud/region: france
|
|
177
|
+
cloud/vendor: azure
|
|
178
|
+
cpu/utilization: 92
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
name: Mock observation and time sync integration
|
|
2
|
+
description: Integration of `mock observation` + `time sync`
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
plugins:
|
|
6
|
+
mock-observations:
|
|
7
|
+
path: builtin
|
|
8
|
+
method: MockObservations
|
|
9
|
+
global-config:
|
|
10
|
+
timestamp-from: 2023-07-06T00:00
|
|
11
|
+
timestamp-to: 2023-07-06T00:10
|
|
12
|
+
duration: 60
|
|
13
|
+
components:
|
|
14
|
+
- cloud/instance-type: A1
|
|
15
|
+
generators:
|
|
16
|
+
common:
|
|
17
|
+
cloud/region: uk-west
|
|
18
|
+
common-key: common-val
|
|
19
|
+
randint:
|
|
20
|
+
cpu/utilization:
|
|
21
|
+
min: 1
|
|
22
|
+
max: 99
|
|
23
|
+
interpolate:
|
|
24
|
+
path: builtin
|
|
25
|
+
method: Interpolation
|
|
26
|
+
global-config:
|
|
27
|
+
method: linear
|
|
28
|
+
x:
|
|
29
|
+
- 0
|
|
30
|
+
- 10
|
|
31
|
+
- 50
|
|
32
|
+
- 100
|
|
33
|
+
'y':
|
|
34
|
+
- 0.12
|
|
35
|
+
- 0.32
|
|
36
|
+
- 0.75
|
|
37
|
+
- 1.02
|
|
38
|
+
input-parameter: cpu/utilization
|
|
39
|
+
output-parameter: cpu-factor
|
|
40
|
+
cpu-factor-to-wattage:
|
|
41
|
+
path: builtin
|
|
42
|
+
method: Multiply
|
|
43
|
+
global-config:
|
|
44
|
+
input-parameters:
|
|
45
|
+
- cpu-factor
|
|
46
|
+
- cpu/thermal-design-power
|
|
47
|
+
output-parameter: cpu-wattage
|
|
48
|
+
wattage-times-duration:
|
|
49
|
+
path: builtin
|
|
50
|
+
method: Multiply
|
|
51
|
+
global-config:
|
|
52
|
+
input-parameters:
|
|
53
|
+
- cpu-wattage
|
|
54
|
+
- duration
|
|
55
|
+
output-parameter: cpu-wattage-times-duration
|
|
56
|
+
wattage-to-energy-kwh:
|
|
57
|
+
path: builtin
|
|
58
|
+
method: Divide
|
|
59
|
+
global-config:
|
|
60
|
+
numerator: cpu-wattage-times-duration
|
|
61
|
+
denominator: 3600000
|
|
62
|
+
output: cpu-energy-raw
|
|
63
|
+
calculate-vcpu-ratio:
|
|
64
|
+
path: builtin
|
|
65
|
+
method: Divide
|
|
66
|
+
global-config:
|
|
67
|
+
numerator: vcpus-total
|
|
68
|
+
denominator: vcpus-allocated
|
|
69
|
+
output: vcpu-ratio
|
|
70
|
+
correct-cpu-energy-for-vcpu-ratio:
|
|
71
|
+
path: builtin
|
|
72
|
+
method: Divide
|
|
73
|
+
global-config:
|
|
74
|
+
numerator: cpu-energy-raw
|
|
75
|
+
denominator: vcpu-ratio
|
|
76
|
+
output: cpu-energy-kwh
|
|
77
|
+
time-sync:
|
|
78
|
+
path: builtin
|
|
79
|
+
method: TimeSync
|
|
80
|
+
global-config:
|
|
81
|
+
start-time: '2023-12-12T00:00:00.000Z'
|
|
82
|
+
end-time: '2023-12-12T00:01:00.000Z'
|
|
83
|
+
interval: 5
|
|
84
|
+
allow-padding: true
|
|
85
|
+
outputs:
|
|
86
|
+
- yaml
|
|
87
|
+
execution:
|
|
88
|
+
command: >-
|
|
89
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
90
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
91
|
+
manifests/outputs/pipelines/mock-obs-time-sync.yml -o
|
|
92
|
+
manifests/outputs/pipelines/mock-obs-time-sync
|
|
93
|
+
environment:
|
|
94
|
+
if-version: 0.4.0
|
|
95
|
+
os: macOS
|
|
96
|
+
os-version: '13.2'
|
|
97
|
+
node-version: 18.14.2
|
|
98
|
+
date-time: 2024-07-02T05:29:47.787Z (UTC)
|
|
99
|
+
dependencies:
|
|
100
|
+
- '@babel/core@7.22.10'
|
|
101
|
+
- '@babel/preset-typescript@7.23.3'
|
|
102
|
+
- '@commitlint/cli@18.6.0'
|
|
103
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
104
|
+
- '@grnsft/if-core@0.0.10'
|
|
105
|
+
|
|
106
|
+
- '@jest/globals@29.7.0'
|
|
107
|
+
- '@types/jest@29.5.8'
|
|
108
|
+
- '@types/js-yaml@4.0.9'
|
|
109
|
+
- '@types/luxon@3.4.2'
|
|
110
|
+
- '@types/node@20.9.0'
|
|
111
|
+
- axios-mock-adapter@1.22.0
|
|
112
|
+
- axios@1.7.2
|
|
113
|
+
- cross-env@7.0.3
|
|
114
|
+
- csv-parse@5.5.6
|
|
115
|
+
- csv-stringify@6.4.6
|
|
116
|
+
- fixpack@4.0.0
|
|
117
|
+
- gts@5.2.0
|
|
118
|
+
- husky@8.0.3
|
|
119
|
+
- jest@29.7.0
|
|
120
|
+
- js-yaml@4.1.0
|
|
121
|
+
- lint-staged@15.2.2
|
|
122
|
+
- luxon@3.4.4
|
|
123
|
+
- release-it@16.3.0
|
|
124
|
+
- rimraf@5.0.5
|
|
125
|
+
- ts-command-line-args@2.5.1
|
|
126
|
+
- ts-jest@29.1.1
|
|
127
|
+
- typescript-cubic-spline@1.0.1
|
|
128
|
+
- typescript@5.2.2
|
|
129
|
+
- winston@3.11.0
|
|
130
|
+
- zod@3.22.4
|
|
131
|
+
status: success
|
|
132
|
+
tree:
|
|
133
|
+
children:
|
|
134
|
+
child-1:
|
|
135
|
+
pipeline:
|
|
136
|
+
- interpolate
|
|
137
|
+
- cpu-factor-to-wattage
|
|
138
|
+
- wattage-times-duration
|
|
139
|
+
- wattage-to-energy-kwh
|
|
140
|
+
- calculate-vcpu-ratio
|
|
141
|
+
- correct-cpu-energy-for-vcpu-ratio
|
|
142
|
+
- time-sync
|
|
143
|
+
defaults:
|
|
144
|
+
cpu/thermal-design-power: 100
|
|
145
|
+
vcpus-total: 8
|
|
146
|
+
vcpus-allocated: 1
|
|
147
|
+
inputs:
|
|
148
|
+
- timestamp: '2023-12-12T00:00:00.000Z'
|
|
149
|
+
cloud/instance-type: A1
|
|
150
|
+
cloud/region: uk-west
|
|
151
|
+
duration: 1
|
|
152
|
+
cpu/utilization: 10
|
|
153
|
+
- timestamp: '2023-12-12T00:00:01.000Z'
|
|
154
|
+
duration: 5
|
|
155
|
+
cpu/utilization: 20
|
|
156
|
+
cloud/instance-type: A1
|
|
157
|
+
cloud/region: uk-west
|
|
158
|
+
- timestamp: '2023-12-12T00:00:06.000Z'
|
|
159
|
+
duration: 7
|
|
160
|
+
cpu/utilization: 15
|
|
161
|
+
cloud/instance-type: A1
|
|
162
|
+
cloud/region: uk-west
|
|
163
|
+
- timestamp: '2023-12-12T00:00:13.000Z'
|
|
164
|
+
duration: 30
|
|
165
|
+
cloud/instance-type: A1
|
|
166
|
+
cloud/region: uk-west
|
|
167
|
+
cpu/utilization: 15
|
|
168
|
+
outputs:
|
|
169
|
+
- timestamp: '2023-12-12T00:00:00.000Z'
|
|
170
|
+
cloud/instance-type: A1
|
|
171
|
+
cloud/region: uk-west
|
|
172
|
+
duration: 5
|
|
173
|
+
cpu/utilization: 14
|
|
174
|
+
cpu/thermal-design-power: 80
|
|
175
|
+
vcpus-total: 8
|
|
176
|
+
vcpus-allocated: 1
|
|
177
|
+
cpu-factor: 0.662
|
|
178
|
+
cpu-wattage: 66.19999999999999
|
|
179
|
+
cpu-wattage-times-duration: 203
|
|
180
|
+
cpu-energy-raw: 0.0000563888888888889
|
|
181
|
+
vcpu-ratio: 14.399999999999999
|
|
182
|
+
cpu-energy-kwh: 0.000007048611111111113
|
|
183
|
+
- timestamp: '2023-12-12T00:00:05.000Z'
|
|
184
|
+
duration: 5
|
|
185
|
+
cpu/utilization: 13
|
|
186
|
+
cloud/instance-type: A1
|
|
187
|
+
cloud/region: uk-west
|
|
188
|
+
cpu/thermal-design-power: 80
|
|
189
|
+
vcpus-total: 8
|
|
190
|
+
vcpus-allocated: 1
|
|
191
|
+
cpu-factor: 0.29907142857142854
|
|
192
|
+
cpu-wattage: 29.907142857142862
|
|
193
|
+
cpu-wattage-times-duration: 192.25
|
|
194
|
+
cpu-energy-raw: 0.00005340277777777778
|
|
195
|
+
vcpu-ratio: 6.171428571428571
|
|
196
|
+
cpu-energy-kwh: 0.000006675347222222222
|
|
197
|
+
- timestamp: '2023-12-12T00:00:10.000Z'
|
|
198
|
+
duration: 5
|
|
199
|
+
cpu/utilization: 12
|
|
200
|
+
cloud/instance-type: A1
|
|
201
|
+
cloud/region: uk-west
|
|
202
|
+
cpu/thermal-design-power: 80
|
|
203
|
+
vcpus-total: 8
|
|
204
|
+
vcpus-allocated: 1
|
|
205
|
+
cpu-factor: 0.1850952380952381
|
|
206
|
+
cpu-wattage: 18.50952380952381
|
|
207
|
+
cpu-wattage-times-duration: 186.875
|
|
208
|
+
cpu-energy-raw: 0.00005190972222222222
|
|
209
|
+
vcpu-ratio: 3.9619047619047616
|
|
210
|
+
cpu-energy-kwh: 0.0000064887152777777775
|
|
211
|
+
- timestamp: '2023-12-12T00:00:15.000Z'
|
|
212
|
+
duration: 5
|
|
213
|
+
cloud/instance-type: A1
|
|
214
|
+
cloud/region: uk-west
|
|
215
|
+
cpu/utilization: 12
|
|
216
|
+
cpu/thermal-design-power: 80
|
|
217
|
+
vcpus-total: 8
|
|
218
|
+
vcpus-allocated: 1
|
|
219
|
+
cpu-factor: 0.06229166666666667
|
|
220
|
+
cpu-wattage: 6.229166666666667
|
|
221
|
+
cpu-wattage-times-duration: 186.875
|
|
222
|
+
cpu-energy-raw: 0.00005190972222222223
|
|
223
|
+
vcpu-ratio: 1.3333333333333333
|
|
224
|
+
cpu-energy-kwh: 0.000006488715277777778
|
|
225
|
+
- timestamp: '2023-12-12T00:00:20.000Z'
|
|
226
|
+
duration: 5
|
|
227
|
+
cloud/instance-type: A1
|
|
228
|
+
cloud/region: uk-west
|
|
229
|
+
cpu/utilization: 12
|
|
230
|
+
cpu/thermal-design-power: 80
|
|
231
|
+
vcpus-total: 8
|
|
232
|
+
vcpus-allocated: 1
|
|
233
|
+
cpu-factor: 0.06229166666666667
|
|
234
|
+
cpu-wattage: 6.229166666666667
|
|
235
|
+
cpu-wattage-times-duration: 186.875
|
|
236
|
+
cpu-energy-raw: 0.00005190972222222223
|
|
237
|
+
vcpu-ratio: 1.3333333333333333
|
|
238
|
+
cpu-energy-kwh: 0.000006488715277777778
|
|
239
|
+
- timestamp: '2023-12-12T00:00:25.000Z'
|
|
240
|
+
duration: 5
|
|
241
|
+
cloud/instance-type: A1
|
|
242
|
+
cloud/region: uk-west
|
|
243
|
+
cpu/utilization: 12
|
|
244
|
+
cpu/thermal-design-power: 80
|
|
245
|
+
vcpus-total: 8
|
|
246
|
+
vcpus-allocated: 1
|
|
247
|
+
cpu-factor: 0.06229166666666667
|
|
248
|
+
cpu-wattage: 6.229166666666667
|
|
249
|
+
cpu-wattage-times-duration: 186.875
|
|
250
|
+
cpu-energy-raw: 0.00005190972222222223
|
|
251
|
+
vcpu-ratio: 1.3333333333333333
|
|
252
|
+
cpu-energy-kwh: 0.000006488715277777778
|
|
253
|
+
- timestamp: '2023-12-12T00:00:30.000Z'
|
|
254
|
+
duration: 5
|
|
255
|
+
cloud/instance-type: A1
|
|
256
|
+
cloud/region: uk-west
|
|
257
|
+
cpu/utilization: 12
|
|
258
|
+
cpu/thermal-design-power: 80
|
|
259
|
+
vcpus-total: 8
|
|
260
|
+
vcpus-allocated: 1
|
|
261
|
+
cpu-factor: 0.06229166666666667
|
|
262
|
+
cpu-wattage: 6.229166666666667
|
|
263
|
+
cpu-wattage-times-duration: 186.875
|
|
264
|
+
cpu-energy-raw: 0.00005190972222222223
|
|
265
|
+
vcpu-ratio: 1.3333333333333333
|
|
266
|
+
cpu-energy-kwh: 0.000006488715277777778
|
|
267
|
+
- timestamp: '2023-12-12T00:00:35.000Z'
|
|
268
|
+
duration: 5
|
|
269
|
+
cloud/instance-type: A1
|
|
270
|
+
cloud/region: uk-west
|
|
271
|
+
cpu/utilization: 12
|
|
272
|
+
cpu/thermal-design-power: 80
|
|
273
|
+
vcpus-total: 8
|
|
274
|
+
vcpus-allocated: 1
|
|
275
|
+
cpu-factor: 0.06229166666666667
|
|
276
|
+
cpu-wattage: 6.229166666666667
|
|
277
|
+
cpu-wattage-times-duration: 186.875
|
|
278
|
+
cpu-energy-raw: 0.00005190972222222223
|
|
279
|
+
vcpu-ratio: 1.3333333333333333
|
|
280
|
+
cpu-energy-kwh: 0.000006488715277777778
|
|
281
|
+
- timestamp: '2023-12-12T00:00:40.000Z'
|
|
282
|
+
duration: 5
|
|
283
|
+
cloud/instance-type: A1
|
|
284
|
+
cloud/region: uk-west
|
|
285
|
+
cpu/utilization: 9
|
|
286
|
+
cpu/thermal-design-power: 60
|
|
287
|
+
vcpus-total: 8
|
|
288
|
+
vcpus-allocated: 1
|
|
289
|
+
cpu-factor: 0.037375
|
|
290
|
+
cpu-wattage: 3.7375
|
|
291
|
+
cpu-wattage-times-duration: 112.125
|
|
292
|
+
cpu-energy-raw: 0.000031145833333333336
|
|
293
|
+
vcpu-ratio: 0.8
|
|
294
|
+
cpu-energy-kwh: 0.000003893229166666667
|
|
295
|
+
- timestamp: '2023-12-12T00:00:45.000Z'
|
|
296
|
+
duration: 5
|
|
297
|
+
cloud/instance-type: A1
|
|
298
|
+
cloud/region: uk-west
|
|
299
|
+
cpu/utilization: 0
|
|
300
|
+
cpu/thermal-design-power: 0
|
|
301
|
+
vcpus-total: 8
|
|
302
|
+
vcpus-allocated: 1
|
|
303
|
+
cpu-factor: 0
|
|
304
|
+
cpu-wattage: 0
|
|
305
|
+
cpu-wattage-times-duration: 0
|
|
306
|
+
cpu-energy-raw: 0
|
|
307
|
+
vcpu-ratio: 0
|
|
308
|
+
cpu-energy-kwh: 0
|
|
309
|
+
- timestamp: '2023-12-12T00:00:50.000Z'
|
|
310
|
+
duration: 5
|
|
311
|
+
cloud/instance-type: A1
|
|
312
|
+
cloud/region: uk-west
|
|
313
|
+
cpu/utilization: 0
|
|
314
|
+
cpu/thermal-design-power: 0
|
|
315
|
+
vcpus-total: 8
|
|
316
|
+
vcpus-allocated: 1
|
|
317
|
+
cpu-factor: 0
|
|
318
|
+
cpu-wattage: 0
|
|
319
|
+
cpu-wattage-times-duration: 0
|
|
320
|
+
cpu-energy-raw: 0
|
|
321
|
+
vcpu-ratio: 0
|
|
322
|
+
cpu-energy-kwh: 0
|
|
323
|
+
- timestamp: '2023-12-12T00:00:55.000Z'
|
|
324
|
+
duration: 5
|
|
325
|
+
cloud/instance-type: A1
|
|
326
|
+
cloud/region: uk-west
|
|
327
|
+
cpu/utilization: 0
|
|
328
|
+
cpu/thermal-design-power: 0
|
|
329
|
+
vcpus-total: 8
|
|
330
|
+
vcpus-allocated: 1
|
|
331
|
+
cpu-factor: 0
|
|
332
|
+
cpu-wattage: 0
|
|
333
|
+
cpu-wattage-times-duration: 0
|
|
334
|
+
cpu-energy-raw: 0
|
|
335
|
+
vcpu-ratio: 0
|
|
336
|
+
cpu-energy-kwh: 0
|
|
337
|
+
- timestamp: '2023-12-12T00:01:00.000Z'
|
|
338
|
+
duration: 1
|
|
339
|
+
cloud/instance-type: A1
|
|
340
|
+
cloud/region: uk-west
|
|
341
|
+
cpu/utilization: 0
|
|
342
|
+
cpu/thermal-design-power: 0
|
|
343
|
+
vcpus-total: 8
|
|
344
|
+
vcpus-allocated: 1
|
|
345
|
+
cpu-factor: 0
|
|
346
|
+
cpu-wattage: 0
|
|
347
|
+
cpu-wattage-times-duration: 0
|
|
348
|
+
cpu-energy-raw: 0
|
|
349
|
+
vcpu-ratio: 0
|
|
350
|
+
cpu-energy-kwh: 0
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: coefficient-demo
|
|
2
|
+
description: failure with ivalid `global-config.input-parameter`
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
outputs:
|
|
6
|
+
- yaml
|
|
7
|
+
plugins:
|
|
8
|
+
coefficient:
|
|
9
|
+
method: Coefficient
|
|
10
|
+
path: builtin
|
|
11
|
+
global-config:
|
|
12
|
+
input-parameter: 4
|
|
13
|
+
coefficient: 3
|
|
14
|
+
output-parameter: carbon-product
|
|
15
|
+
execution:
|
|
16
|
+
status: fail
|
|
17
|
+
command: >-
|
|
18
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
19
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
20
|
+
manifests/outputs/plugins/coefficient/failure-invalid-config-input-param.yml
|
|
21
|
+
-o manifests/outputs/plugins/coefficient/failure-invalid-config-input-param
|
|
22
|
+
environment:
|
|
23
|
+
if-version: 0.4.0
|
|
24
|
+
os: macOS
|
|
25
|
+
os-version: '13.2'
|
|
26
|
+
node-version: 18.14.2
|
|
27
|
+
date-time: 2024-07-02T05:41:49.144Z (UTC)
|
|
28
|
+
dependencies:
|
|
29
|
+
- '@babel/core@7.22.10'
|
|
30
|
+
- '@babel/preset-typescript@7.23.3'
|
|
31
|
+
- '@commitlint/cli@18.6.0'
|
|
32
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
33
|
+
- '@grnsft/if-core@0.0.10'
|
|
34
|
+
|
|
35
|
+
- '@jest/globals@29.7.0'
|
|
36
|
+
- '@types/jest@29.5.8'
|
|
37
|
+
- '@types/js-yaml@4.0.9'
|
|
38
|
+
- '@types/luxon@3.4.2'
|
|
39
|
+
- '@types/node@20.9.0'
|
|
40
|
+
- axios-mock-adapter@1.22.0
|
|
41
|
+
- axios@1.7.2
|
|
42
|
+
- cross-env@7.0.3
|
|
43
|
+
- csv-parse@5.5.6
|
|
44
|
+
- csv-stringify@6.4.6
|
|
45
|
+
- fixpack@4.0.0
|
|
46
|
+
- gts@5.2.0
|
|
47
|
+
- husky@8.0.3
|
|
48
|
+
- jest@29.7.0
|
|
49
|
+
- js-yaml@4.1.0
|
|
50
|
+
- lint-staged@15.2.2
|
|
51
|
+
- luxon@3.4.4
|
|
52
|
+
- release-it@16.3.0
|
|
53
|
+
- rimraf@5.0.5
|
|
54
|
+
- ts-command-line-args@2.5.1
|
|
55
|
+
- ts-jest@29.1.1
|
|
56
|
+
- typescript-cubic-spline@1.0.1
|
|
57
|
+
- typescript@5.2.2
|
|
58
|
+
- winston@3.11.0
|
|
59
|
+
- zod@3.22.4
|
|
60
|
+
error: >-
|
|
61
|
+
InputValidationError: "input-parameter" parameter is expected string,
|
|
62
|
+
received number. Error code: invalid_type.
|
|
63
|
+
tree:
|
|
64
|
+
children:
|
|
65
|
+
child:
|
|
66
|
+
pipeline:
|
|
67
|
+
- coefficient
|
|
68
|
+
config:
|
|
69
|
+
sum: null
|
|
70
|
+
inputs:
|
|
71
|
+
- timestamp: 2023-08-06T00:00
|
|
72
|
+
duration: 3600
|
|
73
|
+
carbon: 30
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: coefficient-demo
|
|
2
|
+
description: value of output-param is missing
|
|
3
|
+
tags: null
|
|
4
|
+
initialize:
|
|
5
|
+
outputs:
|
|
6
|
+
- yaml
|
|
7
|
+
plugins:
|
|
8
|
+
coefficient:
|
|
9
|
+
method: Coefficient
|
|
10
|
+
path: builtin
|
|
11
|
+
global-config:
|
|
12
|
+
input-parameter: carbon
|
|
13
|
+
coefficient: 3
|
|
14
|
+
output-parameter: null
|
|
15
|
+
execution:
|
|
16
|
+
status: fail
|
|
17
|
+
command: >-
|
|
18
|
+
/Users/mariamkhalatova/.npm/_npx/1bf7c3c15bf47d04/node_modules/.bin/ts-node
|
|
19
|
+
/Users/mariamkhalatova/Projects/UK/if/src/index.ts -m
|
|
20
|
+
manifests/outputs/plugins/coefficient/failure-output-param-is-null.yml -o
|
|
21
|
+
manifests/outputs/plugins/coefficient/failure-output-param-is-null
|
|
22
|
+
environment:
|
|
23
|
+
if-version: 0.4.0
|
|
24
|
+
os: macOS
|
|
25
|
+
os-version: '13.2'
|
|
26
|
+
node-version: 18.14.2
|
|
27
|
+
date-time: 2024-07-02T05:38:48.831Z (UTC)
|
|
28
|
+
dependencies:
|
|
29
|
+
- '@babel/core@7.22.10'
|
|
30
|
+
- '@babel/preset-typescript@7.23.3'
|
|
31
|
+
- '@commitlint/cli@18.6.0'
|
|
32
|
+
- '@commitlint/config-conventional@18.6.0'
|
|
33
|
+
- '@grnsft/if-core@0.0.10'
|
|
34
|
+
|
|
35
|
+
- '@jest/globals@29.7.0'
|
|
36
|
+
- '@types/jest@29.5.8'
|
|
37
|
+
- '@types/js-yaml@4.0.9'
|
|
38
|
+
- '@types/luxon@3.4.2'
|
|
39
|
+
- '@types/node@20.9.0'
|
|
40
|
+
- axios-mock-adapter@1.22.0
|
|
41
|
+
- axios@1.7.2
|
|
42
|
+
- cross-env@7.0.3
|
|
43
|
+
- csv-parse@5.5.6
|
|
44
|
+
- csv-stringify@6.4.6
|
|
45
|
+
- fixpack@4.0.0
|
|
46
|
+
- gts@5.2.0
|
|
47
|
+
- husky@8.0.3
|
|
48
|
+
- jest@29.7.0
|
|
49
|
+
- js-yaml@4.1.0
|
|
50
|
+
- lint-staged@15.2.2
|
|
51
|
+
- luxon@3.4.4
|
|
52
|
+
- release-it@16.3.0
|
|
53
|
+
- rimraf@5.0.5
|
|
54
|
+
- ts-command-line-args@2.5.1
|
|
55
|
+
- ts-jest@29.1.1
|
|
56
|
+
- typescript-cubic-spline@1.0.1
|
|
57
|
+
- typescript@5.2.2
|
|
58
|
+
- winston@3.11.0
|
|
59
|
+
- zod@3.22.4
|
|
60
|
+
error: >-
|
|
61
|
+
InputValidationError: "output-parameter" parameter is expected string,
|
|
62
|
+
received null. Error code: invalid_type.
|
|
63
|
+
tree:
|
|
64
|
+
children:
|
|
65
|
+
child:
|
|
66
|
+
pipeline:
|
|
67
|
+
- coefficient
|
|
68
|
+
config:
|
|
69
|
+
sum: null
|
|
70
|
+
inputs:
|
|
71
|
+
- timestamp: 2023-08-06T00:00
|
|
72
|
+
duration: 3600
|
|
73
|
+
carbon: 30
|