Omit power_failed and power_restored when the Apex provides invalid timestamps (#5896)

This commit is contained in:
Max Renaud
2019-05-22 10:33:09 -07:00
committed by Daniel Nelson
parent 3c451a1f25
commit 0535dc92ed
3 changed files with 42 additions and 18 deletions

View File

@@ -59,8 +59,8 @@ programming. These tags are clearly marked in the list below and should be consi
- amp (float, Ampere) is the amount of current flowing through the 120V outlet.
- watt (float, Watt) represents the amount of energy flowing through the 120V outlet.
- xstatus (string) indicates the xstatus of an outlet. Found on wireless Vortech devices.
- power_failed (int64, Unix epoch in ns) when the controller last lost power.
- power_restored (int64, Unix epoch in ns) when the controller last powered on.
- power_failed (int64, Unix epoch in ns) when the controller last lost power. Omitted if the apex reports it as "none"
- power_restored (int64, Unix epoch in ns) when the controller last powered on. Omitted if the apex reports it as "none"
- serial (string, serial number)
- time:
- The time used for the metric is parsed from the status.xml page. This helps when cross-referencing events with