@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
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
name: Aggregation
|
|
2
|
-
description: Apply both `horizontal` and `vertical` aggregations
|
|
3
|
-
aggregation:
|
|
4
|
-
metrics:
|
|
5
|
-
- 'test'
|
|
6
|
-
type: 'both'
|
|
7
|
-
initialize:
|
|
8
|
-
plugins:
|
|
9
|
-
cloud-metadata:
|
|
10
|
-
method: CloudMetadata
|
|
11
|
-
path: "@grnsft/if-plugins"
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
application:
|
|
15
|
-
pipeline:
|
|
16
|
-
- cloud-metadata
|
|
17
|
-
children:
|
|
18
|
-
uk-west:
|
|
19
|
-
children:
|
|
20
|
-
server-1:
|
|
21
|
-
inputs:
|
|
22
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
23
|
-
duration: 300
|
|
24
|
-
cloud/instance-type: m5n.large
|
|
25
|
-
cloud/vendor: aws
|
|
26
|
-
cpu/utilization: 89
|
|
27
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
28
|
-
duration: 300
|
|
29
|
-
cloud/instance-type: m5n.large
|
|
30
|
-
cloud/vendor: aws
|
|
31
|
-
cpu/utilization: 59
|
|
32
|
-
server-2:
|
|
33
|
-
inputs:
|
|
34
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
35
|
-
duration: 300
|
|
36
|
-
cloud/instance-type: m5n.large
|
|
37
|
-
cloud/vendor: aws
|
|
38
|
-
cpu/utilization: 24
|
|
39
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
40
|
-
duration: 300
|
|
41
|
-
cloud/instance-type: m5n.large
|
|
42
|
-
cloud/vendor: aws
|
|
43
|
-
cpu/utilization: 27
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
name: Aggregation
|
|
2
|
-
description: Apply both `horizontal` and `vertical` aggregations
|
|
3
|
-
aggregation:
|
|
4
|
-
metrics:
|
|
5
|
-
- 'cpu/utilization'
|
|
6
|
-
type: 'both'
|
|
7
|
-
initialize:
|
|
8
|
-
plugins:
|
|
9
|
-
cloud-metadata:
|
|
10
|
-
method: CloudMetadata
|
|
11
|
-
path: "@grnsft/if-plugins"
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
application:
|
|
15
|
-
pipeline:
|
|
16
|
-
- cloud-metadata
|
|
17
|
-
children:
|
|
18
|
-
uk-west:
|
|
19
|
-
children:
|
|
20
|
-
server-1:
|
|
21
|
-
inputs:
|
|
22
|
-
- timestamp: '2024-01-26 00:00:00'
|
|
23
|
-
duration: 300
|
|
24
|
-
cloud/instance-type: m5n.large
|
|
25
|
-
cloud/vendor: aws
|
|
26
|
-
cpu/utilization: 89
|
|
27
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
28
|
-
duration: 300
|
|
29
|
-
cloud/instance-type: m5n.large
|
|
30
|
-
cloud/vendor: aws
|
|
31
|
-
cpu/utilization: 59
|
|
32
|
-
server-2:
|
|
33
|
-
inputs:
|
|
34
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
35
|
-
duration: 300
|
|
36
|
-
cloud/instance-type: m5n.large
|
|
37
|
-
cloud/vendor: aws
|
|
38
|
-
# cpu/utilization: 110
|
|
39
|
-
- timestamp: '2024-02-26 00:15:00'
|
|
40
|
-
duration: 300
|
|
41
|
-
cloud/instance-type: m5n.large
|
|
42
|
-
cloud/vendor: aws
|
|
43
|
-
cpu/utilization: 27
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
name: Aggregation
|
|
2
|
-
description: Apply `horizontal` aggregation
|
|
3
|
-
aggregation:
|
|
4
|
-
metrics:
|
|
5
|
-
- 'cpu/utilization'
|
|
6
|
-
type: 'horizontal'
|
|
7
|
-
initialize:
|
|
8
|
-
plugins:
|
|
9
|
-
cloud-metadata:
|
|
10
|
-
method: CloudMetadata
|
|
11
|
-
path: "@grnsft/if-plugins"
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
application:
|
|
15
|
-
pipeline:
|
|
16
|
-
- cloud-metadata
|
|
17
|
-
children:
|
|
18
|
-
uk-west:
|
|
19
|
-
children:
|
|
20
|
-
server-1:
|
|
21
|
-
inputs:
|
|
22
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
23
|
-
duration: 300
|
|
24
|
-
cloud/instance-type: m5n.large
|
|
25
|
-
cloud/vendor: aws
|
|
26
|
-
cpu/utilization: 89
|
|
27
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
28
|
-
duration: 300
|
|
29
|
-
cloud/instance-type: m5n.large
|
|
30
|
-
cloud/vendor: aws
|
|
31
|
-
cpu/utilization: 59
|
|
32
|
-
server-2:
|
|
33
|
-
inputs:
|
|
34
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
35
|
-
duration: 300
|
|
36
|
-
cloud/instance-type: m5n.large
|
|
37
|
-
cloud/vendor: aws
|
|
38
|
-
cpu/utilization: 24
|
|
39
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
40
|
-
duration: 300
|
|
41
|
-
cloud/instance-type: m5n.large
|
|
42
|
-
cloud/vendor: aws
|
|
43
|
-
cpu/utilization: 27
|
|
44
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
name: Aggregation
|
|
2
|
-
description: Apply `vertical` aggregation
|
|
3
|
-
aggregation:
|
|
4
|
-
metrics:
|
|
5
|
-
- 'cpu/utilization'
|
|
6
|
-
type: 'vertical'
|
|
7
|
-
initialize:
|
|
8
|
-
plugins:
|
|
9
|
-
cloud-metadata:
|
|
10
|
-
method: CloudMetadata
|
|
11
|
-
path: "@grnsft/if-plugins"
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
application:
|
|
15
|
-
pipeline:
|
|
16
|
-
- cloud-metadata
|
|
17
|
-
children:
|
|
18
|
-
uk-west:
|
|
19
|
-
children:
|
|
20
|
-
server-1:
|
|
21
|
-
inputs:
|
|
22
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
23
|
-
duration: 300
|
|
24
|
-
cloud/instance-type: m5n.large
|
|
25
|
-
cloud/vendor: aws
|
|
26
|
-
cpu/utilization: 89
|
|
27
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
28
|
-
duration: 300
|
|
29
|
-
cloud/instance-type: m5n.large
|
|
30
|
-
cloud/vendor: aws
|
|
31
|
-
cpu/utilization: 59
|
|
32
|
-
server-2:
|
|
33
|
-
inputs:
|
|
34
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
35
|
-
duration: 300
|
|
36
|
-
cloud/instance-type: m5n.large
|
|
37
|
-
cloud/vendor: aws
|
|
38
|
-
cpu/utilization: 24
|
|
39
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
40
|
-
duration: 300
|
|
41
|
-
cloud/instance-type: m5n.large
|
|
42
|
-
cloud/vendor: aws
|
|
43
|
-
cpu/utilization: 27
|
|
44
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
name: Aggregation
|
|
2
|
-
description: Apply both `horizontal` and `vertical` aggregations
|
|
3
|
-
aggregation:
|
|
4
|
-
metrics:
|
|
5
|
-
- 'cpu/utilization'
|
|
6
|
-
type: 'both'
|
|
7
|
-
initialize:
|
|
8
|
-
plugins:
|
|
9
|
-
cloud-metadata:
|
|
10
|
-
method: CloudMetadata
|
|
11
|
-
path: "@grnsft/if-plugins"
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
application:
|
|
15
|
-
pipeline:
|
|
16
|
-
- cloud-metadata
|
|
17
|
-
children:
|
|
18
|
-
uk-west:
|
|
19
|
-
children:
|
|
20
|
-
server-1:
|
|
21
|
-
inputs:
|
|
22
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
23
|
-
duration: 300
|
|
24
|
-
cloud/instance-type: m5n.large
|
|
25
|
-
cloud/vendor: aws
|
|
26
|
-
cpu/utilization: 89
|
|
27
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
28
|
-
duration: 300
|
|
29
|
-
cloud/instance-type: m5n.large
|
|
30
|
-
cloud/vendor: aws
|
|
31
|
-
cpu/utilization: 59
|
|
32
|
-
server-2:
|
|
33
|
-
inputs:
|
|
34
|
-
- timestamp: '2024-02-26 00:00:00'
|
|
35
|
-
duration: 300
|
|
36
|
-
cloud/instance-type: m5n.large
|
|
37
|
-
cloud/vendor: aws
|
|
38
|
-
cpu/utilization: 24
|
|
39
|
-
- timestamp: '2024-02-26 00:05:00'
|
|
40
|
-
duration: 300
|
|
41
|
-
cloud/instance-type: m5n.large
|
|
42
|
-
cloud/vendor: aws
|
|
43
|
-
cpu/utilization: 27
|
|
44
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
name: divide-demo
|
|
2
|
-
description:
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
cloud-metadata:
|
|
7
|
-
method: CloudMetadata
|
|
8
|
-
path: "@grnsft/if-plugins"
|
|
9
|
-
divide:
|
|
10
|
-
method: Divide
|
|
11
|
-
path: "builtin"
|
|
12
|
-
global-config:
|
|
13
|
-
numerator: vcpus-allocated
|
|
14
|
-
denominator: 2
|
|
15
|
-
output: cpu/number-cores
|
|
16
|
-
boavizta-cpu:
|
|
17
|
-
method: BoaviztaCpuOutput
|
|
18
|
-
path: "@grnsft/if-unofficial-plugins"
|
|
19
|
-
global-config:
|
|
20
|
-
allocation: LINEAR
|
|
21
|
-
verbose: true
|
|
22
|
-
tree:
|
|
23
|
-
children:
|
|
24
|
-
child:
|
|
25
|
-
pipeline:
|
|
26
|
-
- cloud-metadata
|
|
27
|
-
- divide
|
|
28
|
-
- boavizta-cpu
|
|
29
|
-
config:
|
|
30
|
-
divide:
|
|
31
|
-
defaults:
|
|
32
|
-
cloud/vendor: aws
|
|
33
|
-
cloud/instance-type: m5n.large
|
|
34
|
-
cpu/name: Intel® Core™ i7-1185G7
|
|
35
|
-
inputs:
|
|
36
|
-
- timestamp: 2023-08-06T00:00
|
|
37
|
-
duration: 3600
|
|
38
|
-
cpu/utilization: 80
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
name: My Manifest File
|
|
2
|
-
description: integration of mock observations, group by and cloud metadata
|
|
3
|
-
aggregation:
|
|
4
|
-
metrics:
|
|
5
|
-
- 'cpu/utilization'
|
|
6
|
-
type: 'both'
|
|
7
|
-
initialize:
|
|
8
|
-
# outputs: ['yaml']
|
|
9
|
-
plugins:
|
|
10
|
-
group-by:
|
|
11
|
-
path: 'builtin'
|
|
12
|
-
method: GroupBy
|
|
13
|
-
global-config:
|
|
14
|
-
input-parameters: ['cpu/energy', 'grid/carbon-intensity']
|
|
15
|
-
output-parameter: 'carbon'
|
|
16
|
-
cloud-metadata:
|
|
17
|
-
method: CloudMetadata
|
|
18
|
-
path: "@grnsft/if-plugins"
|
|
19
|
-
mock-observations:
|
|
20
|
-
path: 'builtin'
|
|
21
|
-
method: MockObservations
|
|
22
|
-
global-config:
|
|
23
|
-
timestamp-from: 2024-03-05T00:00
|
|
24
|
-
timestamp-to: 2024-03-05T01:00
|
|
25
|
-
duration: 300
|
|
26
|
-
components:
|
|
27
|
-
- name: server-1
|
|
28
|
-
cloud/instance-type: Standard_E64_v3
|
|
29
|
-
cloud/region: eastus
|
|
30
|
-
- name: server-2
|
|
31
|
-
cloud/instance-type: Standard_E64_v3
|
|
32
|
-
cloud/region: france
|
|
33
|
-
generators:
|
|
34
|
-
common:
|
|
35
|
-
geolocation: 37.7749,-122.4194
|
|
36
|
-
cloud/vendor: azure
|
|
37
|
-
randint:
|
|
38
|
-
cpu/utilization:
|
|
39
|
-
min: 1
|
|
40
|
-
max: 99
|
|
41
|
-
tree:
|
|
42
|
-
pipeline:
|
|
43
|
-
- mock-observations
|
|
44
|
-
- group-by
|
|
45
|
-
- cloud-metadata
|
|
46
|
-
config:
|
|
47
|
-
group-by:
|
|
48
|
-
group:
|
|
49
|
-
- name
|
|
50
|
-
- cloud/instance-type
|
|
51
|
-
inputs: null
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
tree:
|
|
30
|
-
pipeline:
|
|
31
|
-
- mock-observations
|
|
32
|
-
- group-by
|
|
33
|
-
defaults:
|
|
34
|
-
config:
|
|
35
|
-
group-by:
|
|
36
|
-
group:
|
|
37
|
-
- cloud/region
|
|
38
|
-
- name
|
|
39
|
-
inputs: null
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
name: Mock observation and time sync integration
|
|
2
|
-
description: Integration of `mock observation` + `time sync`
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
mock-observations:
|
|
7
|
-
kind: plugin
|
|
8
|
-
method: MockObservations
|
|
9
|
-
path: "builtin"
|
|
10
|
-
global-config:
|
|
11
|
-
timestamp-from: 2023-07-06T00:00
|
|
12
|
-
timestamp-to: 2023-07-06T00:10
|
|
13
|
-
duration: 60
|
|
14
|
-
components:
|
|
15
|
-
- cloud/instance-type: A1
|
|
16
|
-
generators:
|
|
17
|
-
common:
|
|
18
|
-
cloud/region: uk-west
|
|
19
|
-
common-key: common-val
|
|
20
|
-
randint:
|
|
21
|
-
cpu/utilization:
|
|
22
|
-
min: 1
|
|
23
|
-
max: 99
|
|
24
|
-
"teads-curve":
|
|
25
|
-
path: "@grnsft/if-unofficial-plugins"
|
|
26
|
-
method: TeadsCurve
|
|
27
|
-
global-config:
|
|
28
|
-
interpolation: spline
|
|
29
|
-
"time-sync":
|
|
30
|
-
method: TimeSync
|
|
31
|
-
path: "builtin"
|
|
32
|
-
global-config:
|
|
33
|
-
start-time: "2023-12-12T00:00:00.000Z"
|
|
34
|
-
end-time: "2023-12-12T00:01:00.000Z"
|
|
35
|
-
interval: 5
|
|
36
|
-
allow-padding: true
|
|
37
|
-
tree:
|
|
38
|
-
children:
|
|
39
|
-
child-1:
|
|
40
|
-
pipeline:
|
|
41
|
-
- teads-curve
|
|
42
|
-
- time-sync
|
|
43
|
-
defaults:
|
|
44
|
-
cpu/thermal-design-power: 100
|
|
45
|
-
inputs:
|
|
46
|
-
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
47
|
-
cloud/instance-type: A1
|
|
48
|
-
cloud/region: uk-west
|
|
49
|
-
duration: 1
|
|
50
|
-
cpu/utilization: 10
|
|
51
|
-
- timestamp: "2023-12-12T00:00:01.000Z"
|
|
52
|
-
duration: 5
|
|
53
|
-
cpu/utilization: 20
|
|
54
|
-
cloud/instance-type: A1
|
|
55
|
-
cloud/region: uk-west
|
|
56
|
-
- timestamp: "2023-12-12T00:00:06.000Z"
|
|
57
|
-
duration: 7
|
|
58
|
-
cpu/utilization: 15
|
|
59
|
-
cloud/instance-type: A1
|
|
60
|
-
cloud/region: uk-west
|
|
61
|
-
- timestamp: "2023-12-12T00:00:13.000Z"
|
|
62
|
-
duration: 30
|
|
63
|
-
cloud/instance-type: A1
|
|
64
|
-
cloud/region: uk-west
|
|
65
|
-
cpu/utilization: 15
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
name: tdp-finder
|
|
2
|
-
description: failure with `inputs` missing `physical-processor` param
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
outputs: ['yaml']
|
|
6
|
-
plugins:
|
|
7
|
-
tdp-finder: # a model that returns an embodied value given the sci embodied attribution equation.
|
|
8
|
-
method: TdpFinder
|
|
9
|
-
path: "@grnsft/if-plugins"
|
|
10
|
-
tree:
|
|
11
|
-
children:
|
|
12
|
-
child:
|
|
13
|
-
pipeline:
|
|
14
|
-
- tdp-finder
|
|
15
|
-
config:
|
|
16
|
-
inputs:
|
|
17
|
-
- timestamp: 2023-07-06T00:00
|
|
18
|
-
duration: 300
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: tdp-finder
|
|
2
|
-
description: successful path
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
outputs: ['yaml']
|
|
6
|
-
plugins:
|
|
7
|
-
tdp-finder: # a model that returns an embodied value given the sci embodied attribution equation.
|
|
8
|
-
method: TdpFinder
|
|
9
|
-
path: "@grnsft/if-plugins"
|
|
10
|
-
tree:
|
|
11
|
-
children:
|
|
12
|
-
child:
|
|
13
|
-
pipeline:
|
|
14
|
-
- tdp-finder
|
|
15
|
-
config:
|
|
16
|
-
inputs:
|
|
17
|
-
- timestamp: 2023-07-06T00:00
|
|
18
|
-
duration: 300
|
|
19
|
-
physical-processor: AMD 302
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: tdp-finder
|
|
2
|
-
description: successful path
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
outputs: ['yaml']
|
|
6
|
-
plugins:
|
|
7
|
-
tdp-finder: # a model that returns an embodied value given the sci embodied attribution equation.
|
|
8
|
-
method: TdpFinder
|
|
9
|
-
path: "@grnsft/if-plugins"
|
|
10
|
-
tree:
|
|
11
|
-
children:
|
|
12
|
-
child:
|
|
13
|
-
pipeline:
|
|
14
|
-
- tdp-finder
|
|
15
|
-
config:
|
|
16
|
-
inputs:
|
|
17
|
-
- timestamp: 2023-07-06T00:00
|
|
18
|
-
duration: 300
|
|
19
|
-
physical-processor: AMD 3020e
|
/package/manifests/{plugins → examples/builtins}/coefficient/failure-invalid-config-input-param.yml
RENAMED
|
File without changes
|
/package/manifests/{plugins → examples/builtins}/coefficient/failure-output-param-is-null.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/manifests/{plugins → examples/builtins}/groupby/failure-missing-cloud-instance-type.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/manifests/{plugins → examples/builtins}/multiply/failure-input-parameter-is-missing.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/manifests/{plugins → examples/builtins}/sci-embodied/failure-missing-expected-lifespan.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/manifests/{plugins → examples/builtins}/time-sync/failure-config-start-later-end.yml
RENAMED
|
File without changes
|
/package/manifests/{plugins → examples/builtins}/time-sync/failure-missing-global-config.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|