SatelliteContentHostsCount - command psql -d foreman -c 'select count(*) from hosts'
The SatelliteContentHostsCount parser reads the output of
psql -d foreman -c 'select count(*) from hosts'.
Sample output of psql -d foreman -c 'select count(*) from hosts':
count
-------
13
(1 row)
Examples:
>>> type(clients)
<class 'insights.parsers.satellite_content_hosts_count.SatelliteContentHostsCount'>
>>> clients.count
13
- class insights.parsers.satellite_content_hosts_count.SatelliteContentHostsCount(context, extra_bad_lines=None)[source]
Bases:
CommandParserRead the
psql -d foreman -c 'select count(*) from hosts'and set the hosts count to propertycount.- count
The count of satellite content hosts
- Type:
int