Skip to content

Commit

Permalink
[systeminfo] Standardize config URI (#11016)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored Jul 17, 2021
1 parent e01532b commit ee937de
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
usually need update of the state more often - at several minutes. Low priority channels do not change their state at all,
or very often. They do not need regular updates. -->

<config-description uri="systeminfo:channels:lowpriority">
<config-description uri="channel-type:systeminfo:lowpriority">

<parameter-group name="priorityGroup">
<label>String</label>
Expand All @@ -30,7 +30,7 @@
</parameter>
</config-description>

<config-description uri="systeminfo:channels:mediumpriority">
<config-description uri="channel-type:systeminfo:mediumpriority">
<parameter name="priority" type="text">
<label>Interval</label>
<description>Refresh interval in seconds.</description>
Expand All @@ -43,7 +43,7 @@
</parameter>
</config-description>

<config-description uri="systeminfo:channels:highpriority">
<config-description uri="channel-type:systeminfo:highpriority">
<parameter name="priority" type="text">
<label>Interval</label>
<description>Refresh interval in seconds.</description>
Expand All @@ -56,7 +56,7 @@
</parameter>
</config-description>

<config-description uri="systeminfo:channels:lowpriority_process">
<config-description uri="channel-type:systeminfo:lowpriority_process">
<parameter name="priority" type="text">
<label>Interval</label>
<description>Refresh interval in seconds.</description>
Expand All @@ -74,7 +74,7 @@
</parameter>
</config-description>

<config-description uri="systeminfo:channels:mediumpriority_process">
<config-description uri="channel-type:systeminfo:mediumpriority_process">
<parameter name="priority" type="text">
<label>Interval</label>
<description>Refresh interval in seconds.</description>
Expand All @@ -92,7 +92,7 @@
</parameter>
</config-description>

<config-description uri="systeminfo:channels:highpriority_process">
<config-description uri="channel-type:systeminfo:highpriority_process">
<parameter name="priority" type="text">
<label>Interval</label>
<description>Refresh interval in seconds.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,255 +130,255 @@
<label>Path</label>
<description>The full path</description>
<state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority_process"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority_process"/>
</channel-type>

<channel-type id="available">
<item-type>Number</item-type>
<label>Available</label>
<description>Available size in MB</description>
<state readOnly="true" pattern="%d MB"/>
<config-description-ref uri="systeminfo:channels:highpriority"/>
<config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type>

<channel-type id="used">
<item-type>Number</item-type>
<label>Used</label>
<description>Used size in MB</description>
<state readOnly="true" pattern="%d MB"/>
<config-description-ref uri="systeminfo:channels:highpriority"/>
<config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type>

<channel-type id="used_process">
<item-type>Number</item-type>
<label>Used</label>
<description>Used size in MB</description>
<state readOnly="true" pattern="%d MB"/>
<config-description-ref uri="systeminfo:channels:highpriority_process"/>
<config-description-ref uri="channel-type:systeminfo:highpriority_process"/>
</channel-type>

<channel-type id="total">
<item-type>Number</item-type>
<label>Total</label>
<description>Total size in MB</description>
<state readOnly="true" pattern="%d MB"/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="availablePercent">
<item-type>Number</item-type>
<label>Available (%)</label>
<description>Available size in percent</description>
<state readOnly="true" pattern="%.1f %%"/>
<config-description-ref uri="systeminfo:channels:highpriority"/>
<config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type>

<channel-type id="usedPercent">
<item-type>Number</item-type>
<label>Used (%)</label>
<description>Used size in percent</description>
<state readOnly="true" pattern="%.1f %%"/>
<config-description-ref uri="systeminfo:channels:highpriority"/>
<config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type>

<channel-type id="name">
<item-type>String</item-type>
<label>Name</label>
<description>Name of the device (process)</description>
<state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="name_process">
<item-type>String</item-type>
<label>Name</label>
<description>Name of the device (process)</description>
<state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority_process"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority_process"/>
</channel-type>

<channel-type id="model" advanced="true">
<item-type>String</item-type>
<label>Model</label>
<description>The model of the device</description>
<state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="serial" advanced="true">
<item-type>String</item-type>
<label>Serial Number</label>
<description>The serial number of the device</description>
<state readOnly="true" pattern="%s"/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="description" advanced="true">
<item-type>String</item-type>
<label>Description</label>
<description>Description of the device</description>
<state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="type" advanced="true">
<item-type>String</item-type>
<label>Type</label>
<description>Storage type</description>
<state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="cpuTemp" advanced="true">
<item-type>Number</item-type>
<label>CPU Temperature</label>
<description>CPU Temperature in Celsius degrees</description>
<state readOnly="true" pattern="%.1f °"/>
<config-description-ref uri="systeminfo:channels:highpriority"/>
<config-description-ref uri="channel-type:systeminfo:highpriority"/>
</channel-type>

<channel-type id="cpuVoltage" advanced="true">
<item-type>Number</item-type>
<label>CPU Voltage</label>
<description>CPU Voltage in V</description>
<state readOnly="true" pattern="%.1f V"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="fanSpeed" advanced="true">
<item-type>Number</item-type>
<label>Fan Speed</label>
<description>Fan speed in rpm</description>
<state readOnly="true" pattern="%d rpm"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="remainingTime">
<item-type>Number</item-type>
<label>Remaining Time</label>
<description>Remaining time in minutes</description>
<state readOnly="true" pattern="%.1f Minutes"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="remainingCapacity">
<item-type>Number</item-type>
<label>Remaining Capacity</label>
<description>Remaining capacity in percent</description>
<state readOnly="true" pattern="%.1f %%"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="load_process">
<item-type>Number</item-type>
<label>Load</label>
<description>Load in percent</description>
<state readOnly="true" pattern="%.1f %%"/>
<config-description-ref uri="systeminfo:channels:highpriority_process"/>
<config-description-ref uri="channel-type:systeminfo:highpriority_process"/>
</channel-type>

<channel-type id="loadAverage" advanced="true">
<item-type>Number</item-type>
<label>Load Average</label>
<description>Load as a number of processes for the last 1,5 or 15 minutes</description>
<state readOnly="true" pattern="%.1f"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="uptime" advanced="true">
<item-type>Number</item-type>
<label>System Uptime</label>
<description>System uptime (time after start) in minutes</description>
<state readOnly="true" pattern="%.1f Minutes"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="threads" advanced="true">
<item-type>Number</item-type>
<label>Number of Threads</label>
<description>Number of threads currently running</description>
<state readOnly="true" pattern="%d"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="threads_process" advanced="true">
<item-type>Number</item-type>
<label>Number of Threads</label>
<description>Number of threads currently running</description>
<state readOnly="true" pattern="%d"/>
<config-description-ref uri="systeminfo:channels:mediumpriority_process"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority_process"/>
</channel-type>

<channel-type id="information" advanced="true">
<item-type>String</item-type>
<label>Display Information</label>
<description>Product, manufacturer, SN, width and height of the display in cm</description>
<state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="ip">
<item-type>String</item-type>
<label>IP Address</label>
<description>Host IP address of the network</description>
<state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="mac" advanced="true">
<item-type>String</item-type>
<label>Mac Address</label>
<description>Mac address of the network</description>
<state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="networkName">
<item-type>String</item-type>
<label>Network Name</label>
<description>The name of the network.</description>
<state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="networkDisplayName">
<item-type>String</item-type>
<label>Network Display Name</label>
<description>The display name of the network</description>
<state readOnly="true" pattern="%s "/>
<config-description-ref uri="systeminfo:channels:lowpriority"/>
<config-description-ref uri="channel-type:systeminfo:lowpriority"/>
</channel-type>

<channel-type id="packetsSent" advanced="true">
<item-type>Number</item-type>
<label>Packets Sent</label>
<description>Number of packets sent</description>
<state readOnly="true" pattern="%d "/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="packetsReceived" advanced="true">
<item-type>Number</item-type>
<label>Packets Received</label>
<description>Number of packets received</description>
<state readOnly="true" pattern="%d "/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="dataSent" advanced="true">
<item-type>Number</item-type>
<label>Data Sent</label>
<description>Data sent in MB</description>
<state readOnly="true" pattern="%d MB"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

<channel-type id="dataReceived" advanced="true">
<item-type>Number</item-type>
<label>Data Received</label>
<description>Data received in MB</description>
<state readOnly="true" pattern="%d MB"/>
<config-description-ref uri="systeminfo:channels:mediumpriority"/>
<config-description-ref uri="channel-type:systeminfo:mediumpriority"/>
</channel-type>

</thing:thing-descriptions>

0 comments on commit ee937de

Please sign in to comment.