@grnsft/if 0.1.7 → 0.1.9
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/build/config/config.d.ts +0 -2
- package/build/config/config.js +6 -3
- package/build/config/index.d.ts +1 -0
- package/build/config/index.js +4 -2
- package/build/config/params.d.ts +2 -0
- package/build/config/params.js +146 -0
- package/build/config/strings.d.ts +5 -0
- package/build/config/strings.js +6 -1
- package/build/index.js +48 -18
- package/build/lib/aggregator.d.ts +7 -0
- package/build/lib/aggregator.js +46 -0
- package/build/lib/models-universe.d.ts +5 -1
- package/build/lib/models-universe.js +37 -5
- package/build/lib/supercomputer.d.ts +14 -12
- package/build/lib/supercomputer.js +55 -87
- package/build/models/time-sync.d.ts +8 -5
- package/build/models/time-sync.js +35 -12
- package/build/types/aggregator.d.ts +3 -0
- package/build/types/aggregator.js +5 -0
- package/build/types/impl.d.ts +65 -18
- package/build/types/impl.js +17 -3
- package/build/types/model-interface.d.ts +1 -2
- package/build/types/model-interface.js +1 -1
- package/build/types/models-universe.d.ts +2 -5
- package/build/types/models-universe.js +1 -1
- package/build/types/parameters.d.ts +16 -0
- package/build/types/parameters.js +5 -0
- package/build/types/process-args.d.ts +1 -0
- package/build/types/process-args.js +1 -1
- package/build/types/time-sync.d.ts +1 -0
- package/build/types/time-sync.js +1 -1
- package/build/util/args.d.ts +1 -0
- package/build/util/args.js +27 -3
- package/build/util/param-selectors.d.ts +5 -0
- package/build/util/param-selectors.js +14 -0
- package/build/util/validations.d.ts +11 -5
- package/build/util/validations.js +17 -25
- package/build/util/yaml.js +27 -4
- package/examples/impls/test/aggregation-test.yml +19 -19
- package/examples/impls/test/aggregation-test2.yml +52 -0
- package/examples/impls/test/{azure.yml → azure-importer.yml} +8 -10
- package/examples/impls/test/boavizta.yml +27 -0
- package/examples/impls/test/cim.yml +19 -0
- package/examples/impls/test/e-mem.yml +19 -0
- package/examples/impls/test/if-demo.yml +0 -2
- package/examples/impls/test/large-impl.yml +30031 -30031
- package/examples/impls/test/nesting.yml +93 -42
- package/examples/impls/test/new-params-test.yml +35 -0
- package/examples/impls/test/sci.yml +3 -3
- package/examples/impls/test/shell.yml +5 -5
- package/examples/impls/test/teads-cpu.yml +18 -0
- package/examples/impls/test/time-sync-avoid-padding.yml +50 -0
- package/examples/impls/test/time-sync.yml +14 -13
- package/examples/ompls/aggregation-test2.yml +83 -0
- package/examples/ompls/{azure.yml → azure-importer.yml} +40 -40
- package/examples/ompls/boavizta.yml +32 -0
- package/examples/ompls/cim.yml +29 -0
- package/examples/ompls/e-mem.yml +26 -0
- package/examples/ompls/nesting.yml +91 -85
- package/examples/ompls/sci.yml +6 -5
- package/examples/ompls/shell.yml +7 -7
- package/examples/ompls/teads-cpu.yml +24 -0
- package/jest.config.js +1 -1
- package/package.json +1 -1
- package/src/models/README.md +3 -1
- package/build/config/units.yaml +0 -112
- package/build/lib/planet-aggregator.d.ts +0 -6
- package/build/lib/planet-aggregator.js +0 -35
- package/build/types/helpers.d.ts +0 -1
- package/build/types/helpers.js +0 -3
- package/build/types/planet-aggregator.d.ts +0 -6
- package/build/types/planet-aggregator.js +0 -3
- package/build/types/units-dealer.d.ts +0 -3
- package/build/types/units-dealer.js +0 -3
- package/build/types/units.d.ts +0 -11
- package/build/types/units.js +0 -37
- package/build/util/units-dealer.d.ts +0 -10
- package/build/util/units-dealer.js +0 -32
- package/coverage/clover.xml +0 -396
- package/coverage/coverage-final.json +0 -14
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/config/config.ts.html +0 -256
- package/coverage/lcov-report/config/index.html +0 -146
- package/coverage/lcov-report/config/index.ts.html +0 -91
- package/coverage/lcov-report/config/strings.ts.html +0 -196
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -161
- package/coverage/lcov-report/lib/index.html +0 -161
- package/coverage/lcov-report/lib/models-universe.ts.html +0 -517
- package/coverage/lcov-report/lib/observatory.ts.html +0 -187
- package/coverage/lcov-report/lib/planet-aggregator.ts.html +0 -244
- package/coverage/lcov-report/lib/supercomputer.ts.html +0 -712
- package/coverage/lcov-report/models/index.html +0 -131
- package/coverage/lcov-report/models/index.ts.html +0 -88
- package/coverage/lcov-report/models/time-sync.ts.html +0 -1153
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/util/args.ts.html +0 -289
- package/coverage/lcov-report/util/errors.ts.html +0 -166
- package/coverage/lcov-report/util/index.html +0 -161
- package/coverage/lcov-report/util/units-dealer.ts.html +0 -199
- package/coverage/lcov-report/util/yaml.ts.html +0 -193
- package/coverage/lcov.info +0 -666
- package/src/config/units.yaml +0 -112
- package/tsconfig.build.tsbuildinfo +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: nesting-demo
|
|
2
|
+
description: null
|
|
3
|
+
tags:
|
|
4
|
+
kind: web
|
|
5
|
+
complexity: moderate
|
|
6
|
+
category: on-premise
|
|
7
|
+
params:
|
|
8
|
+
aggregation:
|
|
9
|
+
type: both
|
|
10
|
+
metrics:
|
|
11
|
+
- 'cpu-util'
|
|
12
|
+
- 'energy'
|
|
13
|
+
initialize:
|
|
14
|
+
models:
|
|
15
|
+
- name: sci-e
|
|
16
|
+
path: '@grnsft/if-models'
|
|
17
|
+
model: SciEModel
|
|
18
|
+
graph:
|
|
19
|
+
children:
|
|
20
|
+
child-0:
|
|
21
|
+
pipeline:
|
|
22
|
+
- sci-e
|
|
23
|
+
children:
|
|
24
|
+
child-0-1:
|
|
25
|
+
pipeline:
|
|
26
|
+
- sci-e
|
|
27
|
+
config: null
|
|
28
|
+
inputs:
|
|
29
|
+
- timestamp: 2023-07-06T00:00
|
|
30
|
+
duration: 10
|
|
31
|
+
cpu-util: 50
|
|
32
|
+
energy-network: 1
|
|
33
|
+
child:0-2:
|
|
34
|
+
children:
|
|
35
|
+
child-0-2-1:
|
|
36
|
+
pipeline:
|
|
37
|
+
- sci-e
|
|
38
|
+
config: null
|
|
39
|
+
inputs:
|
|
40
|
+
- timestamp: 2023-07-06T00:00
|
|
41
|
+
duration: 10
|
|
42
|
+
cpu-util: 50
|
|
43
|
+
energy-network: 1
|
|
44
|
+
child-0-2-2:
|
|
45
|
+
pipeline:
|
|
46
|
+
- sci-e
|
|
47
|
+
config: null
|
|
48
|
+
inputs:
|
|
49
|
+
- timestamp: 2023-07-06T00:00
|
|
50
|
+
duration: 10
|
|
51
|
+
cpu-util: 50
|
|
52
|
+
energy-network: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
name:
|
|
2
|
-
description: example impl invoking
|
|
1
|
+
name: azure-importer
|
|
2
|
+
description: example impl invoking Azure Importer model
|
|
3
3
|
tags:
|
|
4
4
|
initialize:
|
|
5
5
|
models:
|
|
@@ -15,12 +15,10 @@ graph:
|
|
|
15
15
|
config:
|
|
16
16
|
azure-importer:
|
|
17
17
|
inputs:
|
|
18
|
-
- timestamp:
|
|
18
|
+
- timestamp: "2023-11-02T10:35:31.820Z"
|
|
19
19
|
duration: 3600
|
|
20
|
-
azure-observation-window: 5 min # value and unit must be space separated
|
|
21
|
-
azure-observation-aggregation:
|
|
22
|
-
azure-subscription-id:
|
|
23
|
-
azure-resource-group:
|
|
24
|
-
azure-vm-name:
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
azure-observation-window: 5 min # value and unit must be space separated
|
|
21
|
+
azure-observation-aggregation: "average"
|
|
22
|
+
azure-subscription-id: 42a3c589-87ce-4478-8ed6-9adc11b81965
|
|
23
|
+
azure-resource-group: Group1
|
|
24
|
+
azure-vm-name: VM1
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: boavizta
|
|
2
|
+
description: calls boavizta api
|
|
3
|
+
tags:
|
|
4
|
+
initialize:
|
|
5
|
+
models:
|
|
6
|
+
- name: boavizta-cpu
|
|
7
|
+
model: BoaviztaCpuOutputModel
|
|
8
|
+
path: "@grnsft/if-unofficial-models"
|
|
9
|
+
config:
|
|
10
|
+
allocation: LINEAR
|
|
11
|
+
verbose: true
|
|
12
|
+
graph:
|
|
13
|
+
children:
|
|
14
|
+
child:
|
|
15
|
+
pipeline:
|
|
16
|
+
- boavizta-cpu
|
|
17
|
+
config:
|
|
18
|
+
boavizta-cpu:
|
|
19
|
+
core-units: 24
|
|
20
|
+
physical-processor: Intel® Core™ i7-1185G7
|
|
21
|
+
inputs:
|
|
22
|
+
- timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
|
|
23
|
+
duration: 3600 # Secs
|
|
24
|
+
cpu-util: 18.392
|
|
25
|
+
- timestamp: 2023-08-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
|
|
26
|
+
duration: 3600 # Secs
|
|
27
|
+
cpu-util: 16
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: cloud-instance-metadata
|
|
2
|
+
description: example impl invoking Cloud Instance Metadata model
|
|
3
|
+
tags:
|
|
4
|
+
initialize:
|
|
5
|
+
models:
|
|
6
|
+
- name: cloud-instance-metadata
|
|
7
|
+
model: CloudInstanceMetadataModel
|
|
8
|
+
path: "@grnsft/if-models"
|
|
9
|
+
graph:
|
|
10
|
+
children:
|
|
11
|
+
child:
|
|
12
|
+
pipeline:
|
|
13
|
+
- cloud-instance-metadata
|
|
14
|
+
config:
|
|
15
|
+
inputs:
|
|
16
|
+
- timestamp: '2021-01-01T00:00:00Z'
|
|
17
|
+
duration: 5
|
|
18
|
+
cloud-instance-type: "m5n.large"
|
|
19
|
+
cloud-vendor: "aws"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: e-mem
|
|
2
|
+
description:
|
|
3
|
+
tags:
|
|
4
|
+
initialize:
|
|
5
|
+
models:
|
|
6
|
+
- name: e-mem
|
|
7
|
+
model: EMemModel
|
|
8
|
+
path: "@grnsft/if-models"
|
|
9
|
+
graph:
|
|
10
|
+
children:
|
|
11
|
+
child:
|
|
12
|
+
pipeline:
|
|
13
|
+
- e-mem
|
|
14
|
+
config:
|
|
15
|
+
inputs:
|
|
16
|
+
- timestamp: 2023-08-06T00:00
|
|
17
|
+
duration: 3600
|
|
18
|
+
mem-util: 40
|
|
19
|
+
total-memoryGB: 1
|
|
@@ -44,7 +44,6 @@ graph:
|
|
|
44
44
|
sci:
|
|
45
45
|
functional-unit: ''
|
|
46
46
|
functional-unit-time: hour
|
|
47
|
-
functional-unit-duration: 1
|
|
48
47
|
inputs:
|
|
49
48
|
- timestamp: '2023-11-02T10:35:31.820Z'
|
|
50
49
|
duration: 3600
|
|
@@ -58,4 +57,3 @@ graph:
|
|
|
58
57
|
expected-lifespan: 94348800 # 3 yrs in seconds
|
|
59
58
|
resources-reserved: 1
|
|
60
59
|
total-resources: 64
|
|
61
|
-
|