#
ae36f5ef |
| 19-Sep-2024 |
George Liu <liuxiwei@ieisystem.com> |
schemas: virtual sensor: Add average and sum for calculation sensor
Average and Sum are implemented in phosphor-virtual-sensors [1]. This commit supports Average and Sum types in schemas.
[1]: http
schemas: virtual sensor: Add average and sum for calculation sensor
Average and Sum are implemented in phosphor-virtual-sensors [1]. This commit supports Average and Sum types in schemas.
[1]: https://gerrit.openbmc.org/c/openbmc/phosphor-virtual-sensor/+/74716
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I726b7a853b5b42bea9c5ea266d5c5a7be6addd83
show more ...
|
#
7d6080db |
| 04-Sep-2024 |
Patrick Williams <patrick@stwcx.xyz> |
json: adjust definitions alias
JSON Schema suggests[1] using "$defs" rather than "definitions" as the location for reusable definitions in a schema. While, this isn't strictly required, there is so
json: adjust definitions alias
JSON Schema suggests[1] using "$defs" rather than "definitions" as the location for reusable definitions in a schema. While, this isn't strictly required, there is some implication that using it lends to better schema validation error reporting[2].
Adjust all the schema files to use "$defs" rather than "definitions".
[1]: https://json-schema.org/understanding-json-schema/structuring#defs [2]: https://github.com/orgs/json-schema-org/discussions/151
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4b23890950bd2ebb7a7de99fd911fb3c9e0a4dbd
show more ...
|
#
23e5f87f |
| 31-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
schemas: virtual sensor: Add Minimum for calculation sensor uses
Minimum has been implemented in phosphor-virtual-sensors [1]. This commit supports Minimum type in schemas.
[1] https://gerrit.openb
schemas: virtual sensor: Add Minimum for calculation sensor uses
Minimum has been implemented in phosphor-virtual-sensors [1]. This commit supports Minimum type in schemas.
[1] https://gerrit.openbmc.org/c/openbmc/phosphor-virtual-sensor/+/74099
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I2370c22c487caaaaaf812b6b91024d82c96388fb
show more ...
|
#
bb8aa370 |
| 19-Mar-2024 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
schemas: Descriptions must be strings
``` $ python3 -c 'import json; import jsonschema; schema = json.load(open("schemas/global.json")); cls = jsonschema.validators.validator_for(schema); cls.check_
schemas: Descriptions must be strings
``` $ python3 -c 'import json; import jsonschema; schema = json.load(open("schemas/global.json")); cls = jsonschema.validators.validator_for(schema); cls.check_schema(schema)' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 204, in check_schema raise exceptions.SchemaError.create_from(error) jsonschema.exceptions.SchemaError: ['The schema for an entity manager configuration file. An entity ', 'mananger configuration file can consist of a single object, or an ', 'array of objects. Objects must be of type EMConfig.'] is not of type 'string'
Failed validating 'type' in metaschema['properties']['description']: {'type': 'string'}
On schema['description']: ['The schema for an entity manager configuration file. An entity ', 'mananger configuration file can consist of a single object, or an ', 'array of objects. Objects must be of type EMConfig.'] ```
Change-Id: I2b8102e7d6047c8a7e624e182465065268fb8ad9 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
#
f7b0b472 |
| 08-Oct-2022 |
Tao Lin <lintao.lc@inspur.com> |
Add Maximum for calculation sensor uses
Add a type - Maximum for calculation sensor uses.
There are too many NVMe temperature sensors of the same type. The fan speed regulation strategy only requir
Add Maximum for calculation sensor uses
Add a type - Maximum for calculation sensor uses.
There are too many NVMe temperature sensors of the same type. The fan speed regulation strategy only requires a maximum hard disk temperature, which can be used as a PID parameter.
The sensor list does not need to know all the NVMe temperatures, but only the maximum temperature of the NVMe.
For example: In my machine has two sets of NVMes, one is 24 NVMe, the other is 4 NVMe disks, but only the maximum temperature of the two sets is required to participate in PID and display to the customer.
Tested: Need to add code to photoshop-virtual-sensor to calculate sensor value.
usage like: in entity-manager/baseboard.json: add virtual sensor use Type=Maximum: ``` { "Exposes": [ { "Name": "NVMe MAX Temp", "Sensors": [ "NVMe 0 Temp", "NVMe 1 Temp", "NVMe 2 Temp", "NVMe 3 Temp", "NVMe 4 Temp" ], "Thresholds": [ { "Direction": "greater than", "Name": "upper critical", "Severity": 1, "Value": 116 }, { "Direction": "less than", "Name": "lower critical", "Severity": 1, "Value": 1 } ], "Type": "Maximum", "Units": "DegreesC" } ], "Logging": "Off", "Name": "NVMe MAX", "Probe": "TRUE", "Type": "NVMe" } ```
Signed-off-by: Tao Lin <lintao.lc@inspur.com> Change-Id: Id0f2c465200301c95bf54b19f11a5962d662d164
show more ...
|
#
fa8ee87e |
| 07-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
format: reformat with latest openbmc-build-scripts
Run all the latest formatters from openbmc-build-scripts. Disable prettier on the configurations subdirectory because these are script-formatted a
format: reformat with latest openbmc-build-scripts
Run all the latest formatters from openbmc-build-scripts. Disable prettier on the configurations subdirectory because these are script-formatted already with the repo-local `format-code` extension.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ifa4f2ec6688d60fde2a5f42efc96b6046e9be642
show more ...
|
#
7d05ee59 |
| 26-May-2022 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
schemas: use lower_snake_case for filenames
To be consistent with lower_snake_case source code filenames, use lower_snake_case for schema file names as well.
Signed-off-by: Brad Bishop <bradleyb@fu
schemas: use lower_snake_case for filenames
To be consistent with lower_snake_case source code filenames, use lower_snake_case for schema file names as well.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: Id5ddeb4152a147229d522ddc0a1376875bfdfc78
show more ...
|