@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
package/build/util/errors.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const CUSTOM_ERRORS: readonly ["CliInputError", "ConfigNotFoundError", "ConfigValidationError", "ExhaustError", "FileNotFoundError", "MakeDirectoryError", "ManifestValidationError", "ModuleInitializationError", "InputValidationError", "InvalidAggregationParamsError", "InvalidGroupingError", "PluginCredentialError", "PluginInitalizationError", "WriteFileError", "ConfigNotFoundError"];
|
|
2
|
-
type CustomErrors = {
|
|
3
|
-
[K in (typeof CUSTOM_ERRORS)[number]]: ErrorConstructor;
|
|
4
|
-
};
|
|
5
|
-
export declare const ERRORS: CustomErrors;
|
|
6
|
-
export {};
|
package/build/util/errors.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ERRORS = void 0;
|
|
4
|
-
const CUSTOM_ERRORS = [
|
|
5
|
-
'CliInputError',
|
|
6
|
-
'ConfigNotFoundError',
|
|
7
|
-
'ConfigValidationError',
|
|
8
|
-
'ExhaustError',
|
|
9
|
-
'FileNotFoundError',
|
|
10
|
-
'MakeDirectoryError',
|
|
11
|
-
'ManifestValidationError',
|
|
12
|
-
'ModuleInitializationError',
|
|
13
|
-
'InputValidationError',
|
|
14
|
-
'InvalidAggregationParamsError',
|
|
15
|
-
'InvalidGroupingError',
|
|
16
|
-
'PluginCredentialError',
|
|
17
|
-
'PluginInitalizationError',
|
|
18
|
-
'WriteFileError',
|
|
19
|
-
'ConfigNotFoundError',
|
|
20
|
-
];
|
|
21
|
-
exports.ERRORS = CUSTOM_ERRORS.reduce((acc, className) => {
|
|
22
|
-
acc = {
|
|
23
|
-
...acc,
|
|
24
|
-
[className]: class extends Error {
|
|
25
|
-
constructor(message) {
|
|
26
|
-
super(message);
|
|
27
|
-
this.name = this.constructor.name;
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
return acc;
|
|
32
|
-
}, {});
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3V0aWwvZXJyb3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLE1BQU0sYUFBYSxHQUFHO0lBQ3BCLGVBQWU7SUFDZixxQkFBcUI7SUFDckIsdUJBQXVCO0lBQ3ZCLGNBQWM7SUFDZCxtQkFBbUI7SUFDbkIsb0JBQW9CO0lBQ3BCLHlCQUF5QjtJQUN6QiwyQkFBMkI7SUFDM0Isc0JBQXNCO0lBQ3RCLCtCQUErQjtJQUMvQixzQkFBc0I7SUFDdEIsdUJBQXVCO0lBQ3ZCLDBCQUEwQjtJQUMxQixnQkFBZ0I7SUFDaEIscUJBQXFCO0NBQ2IsQ0FBQztBQU1FLFFBQUEsTUFBTSxHQUFHLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBQyxHQUFHLEVBQUUsU0FBUyxFQUFFLEVBQUU7SUFDNUQsR0FBRyxHQUFHO1FBQ0osR0FBRyxHQUFHO1FBQ04sQ0FBQyxTQUFTLENBQUMsRUFBRSxLQUFNLFNBQVEsS0FBSztZQUM5QixZQUFZLE9BQWU7Z0JBQ3pCLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztnQkFDZixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDO1lBQ3BDLENBQUM7U0FDRjtLQUNGLENBQUM7SUFFRixPQUFPLEdBQUcsQ0FBQztBQUNiLENBQUMsRUFBRSxFQUFrQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBDVVNUT01fRVJST1JTID0gW1xuICAnQ2xpSW5wdXRFcnJvcicsXG4gICdDb25maWdOb3RGb3VuZEVycm9yJyxcbiAgJ0NvbmZpZ1ZhbGlkYXRpb25FcnJvcicsXG4gICdFeGhhdXN0RXJyb3InLFxuICAnRmlsZU5vdEZvdW5kRXJyb3InLFxuICAnTWFrZURpcmVjdG9yeUVycm9yJyxcbiAgJ01hbmlmZXN0VmFsaWRhdGlvbkVycm9yJyxcbiAgJ01vZHVsZUluaXRpYWxpemF0aW9uRXJyb3InLFxuICAnSW5wdXRWYWxpZGF0aW9uRXJyb3InLFxuICAnSW52YWxpZEFnZ3JlZ2F0aW9uUGFyYW1zRXJyb3InLFxuICAnSW52YWxpZEdyb3VwaW5nRXJyb3InLFxuICAnUGx1Z2luQ3JlZGVudGlhbEVycm9yJyxcbiAgJ1BsdWdpbkluaXRhbGl6YXRpb25FcnJvcicsXG4gICdXcml0ZUZpbGVFcnJvcicsXG4gICdDb25maWdOb3RGb3VuZEVycm9yJyxcbl0gYXMgY29uc3Q7XG5cbnR5cGUgQ3VzdG9tRXJyb3JzID0ge1xuICBbSyBpbiAodHlwZW9mIENVU1RPTV9FUlJPUlMpW251bWJlcl1dOiBFcnJvckNvbnN0cnVjdG9yO1xufTtcblxuZXhwb3J0IGNvbnN0IEVSUk9SUyA9IENVU1RPTV9FUlJPUlMucmVkdWNlKChhY2MsIGNsYXNzTmFtZSkgPT4ge1xuICBhY2MgPSB7XG4gICAgLi4uYWNjLFxuICAgIFtjbGFzc05hbWVdOiBjbGFzcyBleHRlbmRzIEVycm9yIHtcbiAgICAgIGNvbnN0cnVjdG9yKG1lc3NhZ2U6IHN0cmluZykge1xuICAgICAgICBzdXBlcihtZXNzYWdlKTtcbiAgICAgICAgdGhpcy5uYW1lID0gdGhpcy5jb25zdHJ1Y3Rvci5uYW1lO1xuICAgICAgfVxuICAgIH0sXG4gIH07XG5cbiAgcmV0dXJuIGFjYztcbn0sIHt9IGFzIEN1c3RvbUVycm9ycyk7XG4iXX0=
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
name: aggregation-error-wrong-metric
|
|
2
|
-
description: a negative test case that fails due to the aggregation feature being passed an incorrect metric
|
|
3
|
-
tags:
|
|
4
|
-
aggregation:
|
|
5
|
-
metrics:
|
|
6
|
-
- "dummy-param"
|
|
7
|
-
type: "both"
|
|
8
|
-
initialize:
|
|
9
|
-
plugins:
|
|
10
|
-
"teads-curve":
|
|
11
|
-
path: "@grnsft/if-unofficial-plugins"
|
|
12
|
-
method: TeadsCurve
|
|
13
|
-
global-config:
|
|
14
|
-
interpolation: spline
|
|
15
|
-
"sci-e":
|
|
16
|
-
path: "@grnsft/if-plugins"
|
|
17
|
-
method: SciE
|
|
18
|
-
"sci-embodied":
|
|
19
|
-
path: "builtin"
|
|
20
|
-
method: SciEmbodied
|
|
21
|
-
"sci-o":
|
|
22
|
-
path: "@grnsft/if-plugins"
|
|
23
|
-
method: SciO
|
|
24
|
-
"sci":
|
|
25
|
-
path: "builtin"
|
|
26
|
-
method: Sci
|
|
27
|
-
global-config:
|
|
28
|
-
functional-unit: "requests"
|
|
29
|
-
functional-unit-time: "1 minute"
|
|
30
|
-
"time-sync":
|
|
31
|
-
method: TimeSync
|
|
32
|
-
path: "builtin"
|
|
33
|
-
global-config:
|
|
34
|
-
start-time: "2023-12-12T00:00:00.000Z"
|
|
35
|
-
end-time: "2023-12-12T00:01:00.000Z"
|
|
36
|
-
interval: 5
|
|
37
|
-
allow-padding: true
|
|
38
|
-
"group-by":
|
|
39
|
-
path: builtin
|
|
40
|
-
method: GroupBy
|
|
41
|
-
tree:
|
|
42
|
-
children:
|
|
43
|
-
child-1:
|
|
44
|
-
pipeline:
|
|
45
|
-
- teads-curve
|
|
46
|
-
- sci-e
|
|
47
|
-
- sci-embodied
|
|
48
|
-
- sci-o
|
|
49
|
-
- time-sync
|
|
50
|
-
- sci
|
|
51
|
-
config:
|
|
52
|
-
group-by:
|
|
53
|
-
group:
|
|
54
|
-
- cloud/region
|
|
55
|
-
- cloud/instance-type
|
|
56
|
-
defaults:
|
|
57
|
-
cpu/thermal-design-power: 100
|
|
58
|
-
grid/carbon-intensity: 800
|
|
59
|
-
device/emissions-embodied: 1533.120 # gCO2eq
|
|
60
|
-
time-reserved: 3600 # 1hr in seconds
|
|
61
|
-
device/expected-lifespan: 94608000 # 3 years in seconds
|
|
62
|
-
resources-reserved: 1
|
|
63
|
-
resources-total: 8
|
|
64
|
-
functional-unit-time: "1 min"
|
|
65
|
-
inputs:
|
|
66
|
-
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
67
|
-
cloud/instance-type: A1
|
|
68
|
-
cloud/region: uk-west
|
|
69
|
-
duration: 1
|
|
70
|
-
cpu/utilization: 10
|
|
71
|
-
- timestamp: "2023-12-12T00:00:01.000Z"
|
|
72
|
-
duration: 5
|
|
73
|
-
cpu/utilization: 20
|
|
74
|
-
cloud/instance-type: A1
|
|
75
|
-
cloud/region: uk-west
|
|
76
|
-
- timestamp: "2023-12-12T00:00:06.000Z"
|
|
77
|
-
duration: 7
|
|
78
|
-
cpu/utilization: 15
|
|
79
|
-
cloud/instance-type: A1
|
|
80
|
-
cloud/region: uk-west
|
|
81
|
-
- timestamp: "2023-12-12T00:00:13.000Z"
|
|
82
|
-
duration: 30
|
|
83
|
-
cloud/instance-type: A1
|
|
84
|
-
cloud/region: uk-west
|
|
85
|
-
cpu/utilization: 15
|
|
86
|
-
child-2:
|
|
87
|
-
pipeline:
|
|
88
|
-
- teads-curve
|
|
89
|
-
- sci-e
|
|
90
|
-
- sci-embodied
|
|
91
|
-
- sci-o
|
|
92
|
-
- time-sync
|
|
93
|
-
- sci
|
|
94
|
-
config:
|
|
95
|
-
group-by:
|
|
96
|
-
group:
|
|
97
|
-
- cloud/region
|
|
98
|
-
- cloud/instance-type
|
|
99
|
-
defaults:
|
|
100
|
-
cpu/thermal-design-power: 100
|
|
101
|
-
grid/carbon-intensity: 800
|
|
102
|
-
device/emissions-embodied: 1533.120 # gCO2eq
|
|
103
|
-
time-reserved: 3600 # 1hr in seconds
|
|
104
|
-
device/expected-lifespan: 94608000 # 3 years in seconds
|
|
105
|
-
resources-reserved: 1
|
|
106
|
-
resources-total: 8
|
|
107
|
-
functional-unit-time: "1 min"
|
|
108
|
-
inputs:
|
|
109
|
-
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
110
|
-
duration: 1
|
|
111
|
-
cpu/utilization: 30
|
|
112
|
-
cloud/instance-type: A1
|
|
113
|
-
cloud/region: uk-west
|
|
114
|
-
- timestamp: "2023-12-12T00:00:01.000Z"
|
|
115
|
-
duration: 5
|
|
116
|
-
cpu/utilization: 28
|
|
117
|
-
cloud/instance-type: A1
|
|
118
|
-
cloud/region: uk-west
|
|
119
|
-
- timestamp: "2023-12-12T00:00:06.000Z"
|
|
120
|
-
duration: 7
|
|
121
|
-
cpu/utilization: 40
|
|
122
|
-
cloud/instance-type: A1
|
|
123
|
-
cloud/region: uk-west
|
|
124
|
-
- timestamp: "2023-12-12T00:00:13.000Z"
|
|
125
|
-
duration: 30
|
|
126
|
-
cpu/utilization: 33
|
|
127
|
-
cloud/instance-type: A1
|
|
128
|
-
cloud/region: uk-west
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
name: pipeline-demo
|
|
2
|
-
description: https://github.com/Green-Software-Foundation/if-unofficial-plugins/issues/81
|
|
3
|
-
tags:
|
|
4
|
-
# aggregation:
|
|
5
|
-
# metrics:
|
|
6
|
-
# - "carbon"
|
|
7
|
-
# - "energy"
|
|
8
|
-
#type: "both"
|
|
9
|
-
initialize:
|
|
10
|
-
outputs:
|
|
11
|
-
- yaml
|
|
12
|
-
# - csv
|
|
13
|
-
plugins:
|
|
14
|
-
"azure-importer":
|
|
15
|
-
method: AzureImporter
|
|
16
|
-
path: "@grnsft/if-unofficial-plugins"
|
|
17
|
-
"try-defaults-1":
|
|
18
|
-
path: "builtin"
|
|
19
|
-
method: Coefficient
|
|
20
|
-
global-config:
|
|
21
|
-
input-parameter: grid/carbon-intensity
|
|
22
|
-
coefficient: 0.1
|
|
23
|
-
output-parameter: grid/carbon-intensity
|
|
24
|
-
"try-defaults-2":
|
|
25
|
-
path: "builtin"
|
|
26
|
-
method: Coefficient
|
|
27
|
-
global-config:
|
|
28
|
-
input-parameter: network/energy
|
|
29
|
-
coefficient: 1000
|
|
30
|
-
output-parameter: network/energy
|
|
31
|
-
"sci-o":
|
|
32
|
-
method: SciO
|
|
33
|
-
path: "@grnsft/if-plugins"
|
|
34
|
-
"group-by":
|
|
35
|
-
path: "builtin"
|
|
36
|
-
method: GroupBy
|
|
37
|
-
tree:
|
|
38
|
-
children:
|
|
39
|
-
web-front: # name this according to the sub-system, e.g. portal, APIs/backend, DB
|
|
40
|
-
pipeline:
|
|
41
|
-
- azure-importer
|
|
42
|
-
#- try-defaults-1
|
|
43
|
-
#- try-defaults-2
|
|
44
|
-
- sci-o
|
|
45
|
-
config:
|
|
46
|
-
group-by:
|
|
47
|
-
group:
|
|
48
|
-
- instance-type
|
|
49
|
-
azure-importer:
|
|
50
|
-
azure-observation-window: 60 min
|
|
51
|
-
azure-observation-aggregation: "average"
|
|
52
|
-
azure-subscription-id: 30b6e171-af2c-4fe6-b00d-d4c70f6291fe
|
|
53
|
-
azure-resource-group: gcf-app_group
|
|
54
|
-
azure-vm-name: gcf-app
|
|
55
|
-
defaults:
|
|
56
|
-
grid/carbon-intensity: 800 # adjust for SG grid
|
|
57
|
-
network/energy: 0.001 # review for naming accuracy
|
|
58
|
-
inputs:
|
|
59
|
-
- timestamp: "2024-04-04T08:00:00.001Z"
|
|
60
|
-
duration: 3600
|
|
61
|
-
energy: 100
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
name: pipeline-demo
|
|
2
|
-
description: https://github.com/Green-Software-Foundation/if-unofficial-plugins/issues/81
|
|
3
|
-
tags: null
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
azure-importer:
|
|
7
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
8
|
-
method: AzureImporter
|
|
9
|
-
try-defaults-1:
|
|
10
|
-
path: 'builtin'
|
|
11
|
-
method: Coefficient
|
|
12
|
-
global-config:
|
|
13
|
-
input-parameter: grid/carbon-intensity
|
|
14
|
-
coefficient: 0.1
|
|
15
|
-
output-parameter: grid/carbon-intensity
|
|
16
|
-
try-defaults-2:
|
|
17
|
-
path: 'builtin'
|
|
18
|
-
method: Coefficient
|
|
19
|
-
global-config:
|
|
20
|
-
input-parameter: network/energy
|
|
21
|
-
coefficient: 1000
|
|
22
|
-
output-parameter: network/energy
|
|
23
|
-
sci-o:
|
|
24
|
-
path: '@grnsft/if-plugins'
|
|
25
|
-
method: SciO
|
|
26
|
-
group-by:
|
|
27
|
-
path: builtin
|
|
28
|
-
method: GroupBy
|
|
29
|
-
outputs:
|
|
30
|
-
- yaml
|
|
31
|
-
if-version: v0.3.2
|
|
32
|
-
tree:
|
|
33
|
-
children:
|
|
34
|
-
web-front:
|
|
35
|
-
pipeline:
|
|
36
|
-
- azure-importer
|
|
37
|
-
- try-defaults-1
|
|
38
|
-
- try-defaults-2
|
|
39
|
-
config:
|
|
40
|
-
group-by:
|
|
41
|
-
group:
|
|
42
|
-
- instance-type
|
|
43
|
-
azure-importer:
|
|
44
|
-
azure-observation-window: 60 min
|
|
45
|
-
azure-observation-aggregation: average
|
|
46
|
-
azure-subscription-id: 30b6e171-af2c-4fe6-b00d-d4c70f6291fe
|
|
47
|
-
azure-resource-group: gcf-app_group
|
|
48
|
-
azure-vm-name: gcf-app
|
|
49
|
-
defaults:
|
|
50
|
-
grid/carbon-intensity: 800
|
|
51
|
-
network/energy: 0.001
|
|
52
|
-
inputs:
|
|
53
|
-
- timestamp: '2024-04-04T08:00:00.001Z'
|
|
54
|
-
duration: 3600
|
|
55
|
-
energy: 100
|
|
56
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
name: initialize-error-no-config
|
|
2
|
-
description: a negative test case that fails due to plugin initialization missing some required config
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
teads-curve:
|
|
7
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
8
|
-
method: TeadsCurve
|
|
9
|
-
global-config:
|
|
10
|
-
outputs: ['yaml']
|
|
11
|
-
tree:
|
|
12
|
-
children:
|
|
13
|
-
child-0:
|
|
14
|
-
defaults:
|
|
15
|
-
cpu/thermal-design-power: 100
|
|
16
|
-
pipeline:
|
|
17
|
-
- teads-curve
|
|
18
|
-
inputs:
|
|
19
|
-
- timestamp: 2023-07-06T00:00
|
|
20
|
-
duration: 1
|
|
21
|
-
cpu/utilization: 20
|
|
22
|
-
- timestamp: 2023-07-06T00:01
|
|
23
|
-
duration: 1
|
|
24
|
-
cpu/utilization: 80
|
|
25
|
-
- timestamp: 2023-07-06T00:02
|
|
26
|
-
duration: 1
|
|
27
|
-
cpu/utilization: 20
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
name: initialize-error-no-path
|
|
2
|
-
description: a negative test case that fails because the path is mising in a plugin initialization
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
teads-curve:
|
|
7
|
-
path:
|
|
8
|
-
method: TeadsCurve
|
|
9
|
-
global-config:
|
|
10
|
-
interpolation: spline
|
|
11
|
-
outputs: ['yaml']
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
child-0:
|
|
15
|
-
defaults:
|
|
16
|
-
cpu/thermal-design-power: 100
|
|
17
|
-
pipeline:
|
|
18
|
-
- teads-curve
|
|
19
|
-
inputs:
|
|
20
|
-
- timestamp: 2023-07-06T00:00
|
|
21
|
-
duration: 1
|
|
22
|
-
cpu/utilization: 20
|
|
23
|
-
- timestamp: 2023-07-06T00:01
|
|
24
|
-
duration: 1
|
|
25
|
-
cpu/utilization: 80
|
|
26
|
-
- timestamp: 2023-07-06T00:02
|
|
27
|
-
duration: 1
|
|
28
|
-
cpu/utilization: 20
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: initialize-error-no-path
|
|
2
|
-
description: a negative test case that fails becuase no plugins are included in the initialize block
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
outputs: ['yaml']
|
|
7
|
-
tree:
|
|
8
|
-
children:
|
|
9
|
-
child-0:
|
|
10
|
-
defaults:
|
|
11
|
-
cpu/thermal-design-power: 100
|
|
12
|
-
pipeline:
|
|
13
|
-
- teads-curve
|
|
14
|
-
inputs:
|
|
15
|
-
- timestamp: 2023-07-06T00:00
|
|
16
|
-
duration: 1
|
|
17
|
-
cpu/utilization: 20
|
|
18
|
-
- timestamp: 2023-07-06T00:01
|
|
19
|
-
duration: 1
|
|
20
|
-
cpu/utilization: 80
|
|
21
|
-
- timestamp: 2023-07-06T00:02
|
|
22
|
-
duration: 1
|
|
23
|
-
cpu/utilization: 20
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: input-error-missing-duration
|
|
2
|
-
description: a negative test case that fails due to the required `duration` field being omitted from input data
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
teads-curve:
|
|
7
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
8
|
-
method: TeadsCurve
|
|
9
|
-
global-config:
|
|
10
|
-
interpolation: spline
|
|
11
|
-
outputs: ['yaml']
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
child-0:
|
|
15
|
-
defaults:
|
|
16
|
-
cpu/thermal-design-power: 100
|
|
17
|
-
pipeline:
|
|
18
|
-
- teads-curve
|
|
19
|
-
inputs:
|
|
20
|
-
- timestamp: 2023-07-06T00:00
|
|
21
|
-
cpu/utilization: 20
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: mock-observation-demo
|
|
2
|
-
description: a manifest demonstrating how to use the mock observations feature
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
outputs: ['yaml']
|
|
6
|
-
plugins:
|
|
7
|
-
mock-observations:
|
|
8
|
-
kind: plugin
|
|
9
|
-
method: MockObservations
|
|
10
|
-
path: "builtin"
|
|
11
|
-
global-config:
|
|
12
|
-
timestamp-from: 2023-07-06T00:00
|
|
13
|
-
timestamp-to: 2023-07-06T00:10
|
|
14
|
-
duration: 0
|
|
15
|
-
components:
|
|
16
|
-
- cloud/instance-type: A1
|
|
17
|
-
- cloud/instance-type: B1
|
|
18
|
-
generators:
|
|
19
|
-
common:
|
|
20
|
-
region: uk-west
|
|
21
|
-
common-key: common-val
|
|
22
|
-
randint:
|
|
23
|
-
cpu/utilization:
|
|
24
|
-
min: 1
|
|
25
|
-
max: 99
|
|
26
|
-
memory/utilization:
|
|
27
|
-
min: 1
|
|
28
|
-
max: 99
|
|
29
|
-
tree:
|
|
30
|
-
children:
|
|
31
|
-
child:
|
|
32
|
-
pipeline:
|
|
33
|
-
- mock-observations
|
|
34
|
-
inputs:
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
name: pipeline-error-naming-mismatch
|
|
2
|
-
description: a negative test case that fails due to the plugin name in the pipeline not matching the name given in initialize
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
teads-curve:
|
|
7
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
8
|
-
method: TeadsCurve
|
|
9
|
-
global-config:
|
|
10
|
-
interpolation: spline
|
|
11
|
-
outputs: ['yaml']
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
child-0:
|
|
15
|
-
defaults:
|
|
16
|
-
cpu/thermal-design-power: 100
|
|
17
|
-
pipeline:
|
|
18
|
-
- wrong-name
|
|
19
|
-
inputs:
|
|
20
|
-
- timestamp: 2023-07-06T00:00
|
|
21
|
-
duration: 1
|
|
22
|
-
cpu/utilization: 20
|
|
23
|
-
- timestamp: 2023-07-06T00:01
|
|
24
|
-
duration: 1
|
|
25
|
-
cpu/utilization: 80
|
|
26
|
-
- timestamp: 2023-07-06T00:02
|
|
27
|
-
duration: 1
|
|
28
|
-
cpu/utilization: 20
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
name: pipeline-uninitialized-plugin-error
|
|
2
|
-
description: a negative test case that fails due to an uninitialized plugin being invoked in a pipeline
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
# outputs: ['yaml']
|
|
6
|
-
plugins:
|
|
7
|
-
teads-curve:
|
|
8
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
9
|
-
method: TeadsCurve
|
|
10
|
-
global-config:
|
|
11
|
-
interpolation: spline
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
child-0:
|
|
15
|
-
defaults:
|
|
16
|
-
cpu/thermal-design-power: 100
|
|
17
|
-
pipeline:
|
|
18
|
-
- teads-curve
|
|
19
|
-
- multiply
|
|
20
|
-
inputs:
|
|
21
|
-
- timestamp: 2023-07-06T00:00
|
|
22
|
-
duration: 1
|
|
23
|
-
cpu/utilization: 20
|
|
24
|
-
- timestamp: 2023-07-06T00:01
|
|
25
|
-
duration: 1
|
|
26
|
-
cpu/utilization: 80
|
|
27
|
-
- timestamp: 2023-07-06T00:02
|
|
28
|
-
duration: 1
|
|
29
|
-
cpu/utilization: 20
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
name: pipeline-ordering-error
|
|
2
|
-
description: a negative test case that fails because sci-o is invoked too early in the pipeline (before its inputs are generated)
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
"teads-curve":
|
|
7
|
-
path: "@grnsft/if-unofficial-plugins"
|
|
8
|
-
method: TeadsCurve
|
|
9
|
-
global-config:
|
|
10
|
-
interpolation: spline
|
|
11
|
-
"sum":
|
|
12
|
-
path: "builtin"
|
|
13
|
-
method: Sum
|
|
14
|
-
global-config:
|
|
15
|
-
input-parameters:
|
|
16
|
-
- cpu/energy
|
|
17
|
-
- network/energy
|
|
18
|
-
output-parameter: energy
|
|
19
|
-
"sci-embodied":
|
|
20
|
-
path: "builtin"
|
|
21
|
-
method: SciEmbodied
|
|
22
|
-
"sci-o":
|
|
23
|
-
path: "@grnsft/if-plugins"
|
|
24
|
-
method: SciO
|
|
25
|
-
"sci":
|
|
26
|
-
path: "builtin"
|
|
27
|
-
method: Sci
|
|
28
|
-
global-config:
|
|
29
|
-
functional-unit: ""
|
|
30
|
-
functional-unit-time: "1-day"
|
|
31
|
-
"time-sync":
|
|
32
|
-
method: TimeSync
|
|
33
|
-
path: "builtin"
|
|
34
|
-
global-config:
|
|
35
|
-
start-time: "2023-12-12T00:00:00.000Z"
|
|
36
|
-
end-time: "2023-12-12T00:01:00.000Z"
|
|
37
|
-
interval: 5
|
|
38
|
-
allow-padding: true
|
|
39
|
-
tree:
|
|
40
|
-
children:
|
|
41
|
-
child-1:
|
|
42
|
-
pipeline:
|
|
43
|
-
- teads-curve
|
|
44
|
-
- sci-o
|
|
45
|
-
- sum
|
|
46
|
-
- sci-embodied
|
|
47
|
-
- time-sync
|
|
48
|
-
- sci
|
|
49
|
-
config:
|
|
50
|
-
defaults:
|
|
51
|
-
cpu/thermal-design-power: 100
|
|
52
|
-
grid/carbon-intensity: 800
|
|
53
|
-
device/emissions-embodied: 1533.120 # gCO2eq
|
|
54
|
-
time-reserved: 3600 # 1hr in seconds
|
|
55
|
-
device/expected-lifespan: 94608000 # 3 years in seconds
|
|
56
|
-
resources-reserved: 1
|
|
57
|
-
resources-total: 8
|
|
58
|
-
inputs:
|
|
59
|
-
- timestamp: "2023-12-12T00:00:00.000Z"
|
|
60
|
-
cloud/instance-type: A1
|
|
61
|
-
cloud/region: uk-west
|
|
62
|
-
duration: 1
|
|
63
|
-
cpu/utilization: 50
|
|
64
|
-
network/energy: 0.000001
|
|
65
|
-
- timestamp: "2023-12-12T00:00:01.000Z"
|
|
66
|
-
duration: 5
|
|
67
|
-
cpu/utilization: 20
|
|
68
|
-
cloud/instance-type: A1
|
|
69
|
-
cloud/region: uk-west
|
|
70
|
-
network/energy: 0.000001
|
|
71
|
-
- timestamp: "2023-12-12T00:00:06.000Z"
|
|
72
|
-
duration: 7
|
|
73
|
-
cpu/utilization: 15
|
|
74
|
-
cloud/instance-type: A1
|
|
75
|
-
cloud/region: uk-west
|
|
76
|
-
network/energy: 0.000001
|
|
77
|
-
- timestamp: "2023-12-12T00:00:13.000Z"
|
|
78
|
-
duration: 30
|
|
79
|
-
cloud/instance-type: A1
|
|
80
|
-
cloud/region: uk-west
|
|
81
|
-
cpu/utilization: 15
|
|
82
|
-
network/energy: 0.000001
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: sci-embodied
|
|
2
|
-
description: receiving incorrect error message when running sci-embodied without `resources-total` issue #716
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
#outputs: ['yaml']
|
|
6
|
-
plugins:
|
|
7
|
-
"sci-embodied": # a model that calculates m from te, tir, el, rr and rtor
|
|
8
|
-
method: SciEmbodied
|
|
9
|
-
path: "builtin"
|
|
10
|
-
tree:
|
|
11
|
-
children:
|
|
12
|
-
child:
|
|
13
|
-
pipeline:
|
|
14
|
-
- sci-embodied # duration & config -> embodied
|
|
15
|
-
defaults:
|
|
16
|
-
device/emissions-embodied: 1533.120 # gCO2eq
|
|
17
|
-
time-reserved: 3600 # 1hr in seconds
|
|
18
|
-
device/expected-lifespan: 94608000 # 3 years in seconds
|
|
19
|
-
resources-reserved: 1
|
|
20
|
-
# resources-total: 8
|
|
21
|
-
inputs:
|
|
22
|
-
- timestamp: 2023-07-06T00:00
|
|
23
|
-
duration: 3600
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
name: basic
|
|
2
|
-
description: a minimal manifest executing a single plugin on a single component for a single timestep
|
|
3
|
-
tags:
|
|
4
|
-
initialize:
|
|
5
|
-
plugins:
|
|
6
|
-
teads-curve:
|
|
7
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
8
|
-
method: TeadsCurve
|
|
9
|
-
global-config:
|
|
10
|
-
interpolation: spline
|
|
11
|
-
outputs: ['yaml']
|
|
12
|
-
tree:
|
|
13
|
-
children:
|
|
14
|
-
child-0:
|
|
15
|
-
defaults:
|
|
16
|
-
cpu/thermal-design-power: 100
|
|
17
|
-
pipeline:
|
|
18
|
-
- teads-curve
|
|
19
|
-
inputs:
|
|
20
|
-
- timestamp: 2023-07-06T00:00
|
|
21
|
-
duration: 1
|
|
22
|
-
cpu/utilization: 20
|
|
23
|
-
- timestamp: 2023-07-06T00:01
|
|
24
|
-
duration: 1
|
|
25
|
-
cpu/utilization: 80
|
|
26
|
-
- timestamp: 2023-07-06T00:02
|
|
27
|
-
duration: 1
|
|
28
|
-
cpu/utilization: 20
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
name: mock-cpu-util-to-carbon
|
|
2
|
-
description: a complete pipeline that starts with mocked CPU utilization data and outputs operational carbon in gCO2eq
|
|
3
|
-
initialize:
|
|
4
|
-
#outputs: ['yaml']
|
|
5
|
-
plugins:
|
|
6
|
-
group-by:
|
|
7
|
-
path: 'builtin'
|
|
8
|
-
method: GroupBy
|
|
9
|
-
operational-carbon:
|
|
10
|
-
path: 'builtin'
|
|
11
|
-
method: Multiply
|
|
12
|
-
global-config:
|
|
13
|
-
input-parameters: ['cpu/energy', 'grid/carbon-intensity']
|
|
14
|
-
output-parameter: 'carbon'
|
|
15
|
-
watttime:
|
|
16
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
17
|
-
method: WattTimeGridEmissions
|
|
18
|
-
teads-curve:
|
|
19
|
-
path: '@grnsft/if-unofficial-plugins'
|
|
20
|
-
method: TeadsCurve
|
|
21
|
-
global-config:
|
|
22
|
-
interpolation: spline
|
|
23
|
-
cloud-metadata:
|
|
24
|
-
method: CloudMetadata
|
|
25
|
-
path: "@grnsft/if-plugins"
|
|
26
|
-
mock-observations:
|
|
27
|
-
path: 'builtin'
|
|
28
|
-
method: MockObservations
|
|
29
|
-
global-config:
|
|
30
|
-
timestamp-from: '2024-03-05T00:00:00.000Z'
|
|
31
|
-
timestamp-to: '2024-03-05T00:01:00.000Z'
|
|
32
|
-
duration: 10
|
|
33
|
-
components:
|
|
34
|
-
- name: server-1
|
|
35
|
-
cloud/instance-type: Standard_E64_v3
|
|
36
|
-
cloud/region: westus3
|
|
37
|
-
- name: server-2
|
|
38
|
-
cloud/instance-type: Standard_E64_v3
|
|
39
|
-
cloud/region: westus3
|
|
40
|
-
generators:
|
|
41
|
-
common:
|
|
42
|
-
cloud/vendor: azure
|
|
43
|
-
randint:
|
|
44
|
-
cpu/utilization:
|
|
45
|
-
min: 1
|
|
46
|
-
max: 99
|
|
47
|
-
'time-sync':
|
|
48
|
-
method: TimeSync
|
|
49
|
-
path: "builtin"
|
|
50
|
-
global-config:
|
|
51
|
-
start-time: '2024-03-05T00:00:00.000Z'
|
|
52
|
-
end-time: '2024-03-05T00:01:00.000Z'
|
|
53
|
-
interval: 5
|
|
54
|
-
allow-padding: true
|
|
55
|
-
tree:
|
|
56
|
-
pipeline:
|
|
57
|
-
- mock-observations
|
|
58
|
-
- group-by
|
|
59
|
-
- time-sync
|
|
60
|
-
- cloud-metadata
|
|
61
|
-
- watttime
|
|
62
|
-
- teads-curve
|
|
63
|
-
- operational-carbon
|
|
64
|
-
defaults:
|
|
65
|
-
config:
|
|
66
|
-
group-by:
|
|
67
|
-
group:
|
|
68
|
-
- cloud/region
|
|
69
|
-
- name
|
|
70
|
-
inputs: null
|