Uptime

Combiner for uptime information. It uses the results of the Uptime parser to get the uptime information. Uptime is the preferred source of data.

Examples

>>> ut = shared[uptime]
>>> ut.updays
21
>>> ht.uptime
03:45
class insights.combiners.uptime.Uptime(currtime, updays, uphhmm, users, loadavg, uptime)

Bases: tuple

namedtuple: Type for storing the uptime information.

property currtime
property loadavg
property updays
property uphhmm
property uptime
property users
insights.combiners.uptime.uptime(ut)[source]

Warning

This combiner method is deprecated, please use insights.parsers.uptime.Uptime instead.

Check uptime to get the uptime information.

Returns

A named tuple with currtime, updays, uphhmm, users, loadavg and uptime components.

Return type

insights.combiners.uptime.Uptime

Raises

SkipComponent -- If no data is available or if loadavg is not available.