diff options
| author | Alessio Leonardo Tomei <122273875+T0mexX@users.noreply.github.com> | 2024-08-22 14:40:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 14:40:57 +0200 |
| commit | 4f98fb2bf8204f6af52cd6eeb3313d21c6ca95bc (patch) | |
| tree | a9a67ce01615cfccfc787573626ae8c9f2ff740c /site/docs | |
| parent | b2877899b9479458dba5e7dcba2891f1248b5d6d (diff) | |
Added Unit of measurament system with new deserialization (#242)
Diffstat (limited to 'site/docs')
| -rw-r--r-- | site/docs/documentation/Input/Topology.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/site/docs/documentation/Input/Topology.md b/site/docs/documentation/Input/Topology.md index 23286c09..12e9c485 100644 --- a/site/docs/documentation/Input/Topology.md +++ b/site/docs/documentation/Input/Topology.md @@ -178,3 +178,38 @@ Following is an example of a more complex topology: This topology defines two types of hosts with different coreCount, and coreSpeed. Both types of hosts are created twice. + + +### With Units of Measure + +Aside from using number to indicate values it is also possible to define values using strings. This allows the user to define the unit of the input parameter. +```json +{ + "clusters": [ + { + "count": 2, + "hosts" : + [ + { + "name": "H01", + "cpu": + { + "coreCount": 8, + "coreSpeed": "3.2 Ghz" + }, + "memory": { + "memorySize": "128e3 MiB", + "memorySpeed": "1 Mhz" + }, + "powerModel": { + "modelType": "linear", + "power": "400 Watts", + "maxPower": "1 KW", + "idlePower": "0.4W" + } + } + ] + } + ] +} +``` |
