Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more modular consumables description #63

Merged
merged 2 commits into from
Oct 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 14 additions & 1 deletion documentation/dev/spec/protocol/netinventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ title: Network inventory protocol
### Specification

{
'id': ''string'',
'id': ''string'',
'type': 'netinventory',
'workers': ''integer'',
'targets': [
Expand Down Expand Up @@ -255,6 +255,7 @@ title: Network inventory protocol

<!-- CARTRIDGES node can content any meaningful printer cartridge info
and it is up to the server to interpret given keys and values -->
<!-- this element is deprecated, CONSUMABLES should be used instead -->
<!ELEMENT CARTRIDGES ANY>
<!-- Following lines are well-known samples, so they are kept as comment
<!ELEMENT CARTRIDGEBLACK (#PCDATA)>
Expand Down Expand Up @@ -285,6 +286,18 @@ title: Network inventory protocol
<!ELEMENT CARTRIDGEPHOTOBLACK (#PCDATA)>
End of samples -->

<!-- consumables list ->
<!ELEMENT CONSUMABLES (CONSUMABLE)+>

<!-- a single consumable ->
<!ELEMENT CONSUMABLE (TYPE, COLOR, VALUE, UNIT)>
<!ELEMENT TYPE (#PCDATA)>
<!ELEMENT COLOR (#PCDATA)>
<!ELEMENT VALUE (#PCDATA)>
<!ELEMENT UNIT (#PCDATA)>
<!-- use MAX if available, or assume it's 100 when UNIT is not set -->
<!ELEMENT MAX (#PCDATA)>

<!-- netinventory module version(string) -->
<!ELEMENT MODULEVERSION (#PCDATA)>
<!-- server process ID (integer) -->
Expand Down