@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.
Files changed (108) hide show
  1. package/build/config/config.d.ts +0 -2
  2. package/build/config/config.js +6 -3
  3. package/build/config/index.d.ts +1 -0
  4. package/build/config/index.js +4 -2
  5. package/build/config/params.d.ts +2 -0
  6. package/build/config/params.js +146 -0
  7. package/build/config/strings.d.ts +5 -0
  8. package/build/config/strings.js +6 -1
  9. package/build/index.js +48 -18
  10. package/build/lib/aggregator.d.ts +7 -0
  11. package/build/lib/aggregator.js +46 -0
  12. package/build/lib/models-universe.d.ts +5 -1
  13. package/build/lib/models-universe.js +37 -5
  14. package/build/lib/supercomputer.d.ts +14 -12
  15. package/build/lib/supercomputer.js +55 -87
  16. package/build/models/time-sync.d.ts +8 -5
  17. package/build/models/time-sync.js +35 -12
  18. package/build/types/aggregator.d.ts +3 -0
  19. package/build/types/aggregator.js +5 -0
  20. package/build/types/impl.d.ts +65 -18
  21. package/build/types/impl.js +17 -3
  22. package/build/types/model-interface.d.ts +1 -2
  23. package/build/types/model-interface.js +1 -1
  24. package/build/types/models-universe.d.ts +2 -5
  25. package/build/types/models-universe.js +1 -1
  26. package/build/types/parameters.d.ts +16 -0
  27. package/build/types/parameters.js +5 -0
  28. package/build/types/process-args.d.ts +1 -0
  29. package/build/types/process-args.js +1 -1
  30. package/build/types/time-sync.d.ts +1 -0
  31. package/build/types/time-sync.js +1 -1
  32. package/build/util/args.d.ts +1 -0
  33. package/build/util/args.js +27 -3
  34. package/build/util/param-selectors.d.ts +5 -0
  35. package/build/util/param-selectors.js +14 -0
  36. package/build/util/validations.d.ts +11 -5
  37. package/build/util/validations.js +17 -25
  38. package/build/util/yaml.js +27 -4
  39. package/examples/impls/test/aggregation-test.yml +19 -19
  40. package/examples/impls/test/aggregation-test2.yml +52 -0
  41. package/examples/impls/test/{azure.yml → azure-importer.yml} +8 -10
  42. package/examples/impls/test/boavizta.yml +27 -0
  43. package/examples/impls/test/cim.yml +19 -0
  44. package/examples/impls/test/e-mem.yml +19 -0
  45. package/examples/impls/test/if-demo.yml +0 -2
  46. package/examples/impls/test/large-impl.yml +30031 -30031
  47. package/examples/impls/test/nesting.yml +93 -42
  48. package/examples/impls/test/new-params-test.yml +35 -0
  49. package/examples/impls/test/sci.yml +3 -3
  50. package/examples/impls/test/shell.yml +5 -5
  51. package/examples/impls/test/teads-cpu.yml +18 -0
  52. package/examples/impls/test/time-sync-avoid-padding.yml +50 -0
  53. package/examples/impls/test/time-sync.yml +14 -13
  54. package/examples/ompls/aggregation-test2.yml +83 -0
  55. package/examples/ompls/{azure.yml → azure-importer.yml} +40 -40
  56. package/examples/ompls/boavizta.yml +32 -0
  57. package/examples/ompls/cim.yml +29 -0
  58. package/examples/ompls/e-mem.yml +26 -0
  59. package/examples/ompls/nesting.yml +91 -85
  60. package/examples/ompls/sci.yml +6 -5
  61. package/examples/ompls/shell.yml +7 -7
  62. package/examples/ompls/teads-cpu.yml +24 -0
  63. package/jest.config.js +1 -1
  64. package/package.json +1 -1
  65. package/src/models/README.md +3 -1
  66. package/build/config/units.yaml +0 -112
  67. package/build/lib/planet-aggregator.d.ts +0 -6
  68. package/build/lib/planet-aggregator.js +0 -35
  69. package/build/types/helpers.d.ts +0 -1
  70. package/build/types/helpers.js +0 -3
  71. package/build/types/planet-aggregator.d.ts +0 -6
  72. package/build/types/planet-aggregator.js +0 -3
  73. package/build/types/units-dealer.d.ts +0 -3
  74. package/build/types/units-dealer.js +0 -3
  75. package/build/types/units.d.ts +0 -11
  76. package/build/types/units.js +0 -37
  77. package/build/util/units-dealer.d.ts +0 -10
  78. package/build/util/units-dealer.js +0 -32
  79. package/coverage/clover.xml +0 -396
  80. package/coverage/coverage-final.json +0 -14
  81. package/coverage/lcov-report/base.css +0 -224
  82. package/coverage/lcov-report/block-navigation.js +0 -87
  83. package/coverage/lcov-report/config/config.ts.html +0 -256
  84. package/coverage/lcov-report/config/index.html +0 -146
  85. package/coverage/lcov-report/config/index.ts.html +0 -91
  86. package/coverage/lcov-report/config/strings.ts.html +0 -196
  87. package/coverage/lcov-report/favicon.png +0 -0
  88. package/coverage/lcov-report/index.html +0 -161
  89. package/coverage/lcov-report/lib/index.html +0 -161
  90. package/coverage/lcov-report/lib/models-universe.ts.html +0 -517
  91. package/coverage/lcov-report/lib/observatory.ts.html +0 -187
  92. package/coverage/lcov-report/lib/planet-aggregator.ts.html +0 -244
  93. package/coverage/lcov-report/lib/supercomputer.ts.html +0 -712
  94. package/coverage/lcov-report/models/index.html +0 -131
  95. package/coverage/lcov-report/models/index.ts.html +0 -88
  96. package/coverage/lcov-report/models/time-sync.ts.html +0 -1153
  97. package/coverage/lcov-report/prettify.css +0 -1
  98. package/coverage/lcov-report/prettify.js +0 -2
  99. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  100. package/coverage/lcov-report/sorter.js +0 -196
  101. package/coverage/lcov-report/util/args.ts.html +0 -289
  102. package/coverage/lcov-report/util/errors.ts.html +0 -166
  103. package/coverage/lcov-report/util/index.html +0 -161
  104. package/coverage/lcov-report/util/units-dealer.ts.html +0 -199
  105. package/coverage/lcov-report/util/yaml.ts.html +0 -193
  106. package/coverage/lcov.info +0 -666
  107. package/src/config/units.yaml +0 -112
  108. 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: ccf-demo
2
- description: example impl invoking CCF model
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: '2023-11-02T10:35:31.820Z'
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: 'average'
22
- azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
23
- azure-resource-group: vm1_group
24
- azure-vm-name: vm1
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
-