Added pattern for DateTime channel types (#11681)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp 2021-12-04 14:50:13 +01:00 committed by GitHub
parent 6c6c93e8f0
commit 6da7defddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,62 +8,60 @@
<item-type>String</item-type> <item-type>String</item-type>
<label>Last Error Event</label> <label>Last Error Event</label>
<description>Displays contents of last [ERROR] event</description> <description>Displays contents of last [ERROR] event</description>
<state readOnly="true"></state> <state readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="lastWarningEvent"> <channel-type id="lastWarningEvent">
<item-type>String</item-type> <item-type>String</item-type>
<label>Last Warning Event</label> <label>Last Warning Event</label>
<description>Displays contents of last [WARN] event</description> <description>Displays contents of last [WARN] event</description>
<state readOnly="true"></state> <state readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="lastCustomEvent" advanced="true"> <channel-type id="lastCustomEvent" advanced="true">
<item-type>String</item-type> <item-type>String</item-type>
<label>Last Custom Event</label> <label>Last Custom Event</label>
<description>Displays contents of last custom event</description> <description>Displays contents of last custom event</description>
<state readOnly="true"></state> <state readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="warningEvents"> <channel-type id="warningEvents">
<item-type>Number</item-type> <item-type>Number</item-type>
<label>Warning Events Matched</label> <label>Warning Events Matched</label>
<description>Displays number of [WARN] lines matched to search pattern</description> <description>Displays number of [WARN] lines matched to search pattern</description>
<state readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="errorEvents"> <channel-type id="errorEvents">
<item-type>Number</item-type> <item-type>Number</item-type>
<label>Error Events Matched</label> <label>Error Events Matched</label>
<description>Displays number of [ERROR] lines matched to search pattern</description> <description>Displays number of [ERROR] lines matched to search pattern</description>
<state readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="customEvents" advanced="true"> <channel-type id="customEvents" advanced="true">
<item-type>Number</item-type> <item-type>Number</item-type>
<label>Custom Events Matched</label> <label>Custom Events Matched</label>
<description>Displays number of custom lines matched to search pattern</description> <description>Displays number of custom lines matched to search pattern</description>
<state readOnly="true"/>
</channel-type> </channel-type>
<channel-type id="logRotated" advanced="true"> <channel-type id="logRotated" advanced="true">
<item-type>DateTime</item-type> <item-type>DateTime</item-type>
<label>Log Rotated</label> <label>Log Rotated</label>
<description>Last time when log rotated recognized</description> <description>Last time when log rotated recognized</description>
<state readOnly="true"></state> <category>Time</category>
<state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
</channel-type> </channel-type>
<channel-type id="newErrorEvent"> <channel-type id="newErrorEvent">
<kind>trigger</kind> <kind>trigger</kind>
<label>New Error Event</label> <label>New Error Event</label>
<description>Fires when a new [ERROR] appears in the log</description> <description>Fires when a new [ERROR] appears in the log</description>
<event>
</event>
</channel-type> </channel-type>
<channel-type id="newWarningEvent"> <channel-type id="newWarningEvent">
<kind>trigger</kind> <kind>trigger</kind>
<label>New Warning Event</label> <label>New Warning Event</label>
<description>Fires when a new [WARN] appears in the log</description> <description>Fires when a new [WARN] appears in the log</description>
<event>
</event>
</channel-type> </channel-type>
<channel-type id="newCustomEvent" advanced="true"> <channel-type id="newCustomEvent" advanced="true">
<kind>trigger</kind> <kind>trigger</kind>
<label>New Custom Event</label> <label>New Custom Event</label>
<description>Fires when a new [CUSTOM] appears in the log</description> <description>Fires when a new [CUSTOM] appears in the log</description>
<event>
</event>
</channel-type> </channel-type>
</thing:thing-descriptions> </thing:thing-descriptions>