1Unix::Statgrab::sg_userU_ssetratCso(n3t)ributed Perl DocUunmiexn:t:aSttiaotngrab::sg_user_stats(3)
2
3
4

NAME

6       Unix::Statgrab::sg_user_stats - container for libstatgrab user-login
7       collection
8

DESCRIPTION

10       "Unix::Statgrab::sg_user_stats" is a Perl package name providing
11       accessors to bundled libstatgrab sg_user_stats <http://www.i-
12       scream.org/libstatgrab/docs/sg_get_user_stats.3.html> disk I/O
13       statistics.
14

METHODS

16   nentries
17       Returns the number of entries in the container.
18
19   systime
20       Returns the seconds since Epoch (0:00:00 on January, 1st 1970) of the
21       time measure the disk I/O statistics.
22
23   as_list
24       Deprecated alias of "fetchall_hash"
25
26   fetchall_hash
27       Returns all records from sg_user_stats <http://www.i-
28       scream.org/libstatgrab/docs/sg_get_user_stats.3.html> container as list
29       of hash containing each datum name as key and the datum as value.
30
31   fetchall_array
32       Returns all records from sg_user_stats <http://www.i-
33       scream.org/libstatgrab/docs/sg_get_user_stats.3.html> container as list
34       of arrays containing the values in following order:
35
36         (login_name record_id record_id_size device hostname pid login_time systime)
37
38       in that order without leading headline.
39
40   fetchall_table
41       Returns all records from sg_user_stats <http://www.i-
42       scream.org/libstatgrab/docs/sg_get_user_stats.3.html> container as list
43       of arrays containing the values in following order:
44
45         (login_name record_id record_id_size device hostname pid login_time systime)
46
47       in that order including leading headline.
48
49   fetchrow_arrayref($row = 0)
50       Returns one row as array containing values as above.
51
52   fetchall_arrayref
53       Returns all records from sg_user_stats <http://www.i-
54       scream.org/libstatgrab/docs/sg_get_user_stats.3.html> container as
55       array of arrays without header.
56
57   fetchrow_hashref($row = 0)
58       Returns one row as hash containing "{ disk_name =>
59       $self.disk_name($row), read_bytes => ...}".
60
61   fetchall_hashref
62       Returns all records from sg_user_stats <http://www.i-
63       scream.org/libstatgrab/docs/sg_get_user_stats.3.html> container as
64       array of hashes.
65
66   colnames
67       Returns list of column names: "(login_name record_id record_id_size
68       device hostname pid login_time systime)"
69
70   login_name
71       The username which was used to log in
72
73   record_id
74       Record identifier of host database containing login information
75
76   device
77       Device name (e.g. "pts/0") of the tty assigned to the login session
78
79   hostname
80       (remote) Hostname from where the user is logged on, e.g.
81       "infoterm7.some.kind.of.domain.local", "localhost", "10.42.17.4" or
82       ":0.0" (in case it's a local logon via new xterm)
83
84   pid
85       Process identifier of the process which made the entry to the logged on
86       users database
87
88   login_time
89       Timestamp (time in seconds since epoch) when the user logged on
90

AUTHOR

92       Jens Rehsack, <rehsack AT cpan.org>
93
95       Copyright (C) 2012-2018 by Jens Rehsack
96
97       This library is free software; you can redistribute it and/or modify it
98       under the terms of the GNU Lesser General Public License as published
99       by the Free Software Foundation; either version 2.1 of the License, or
100       (at your option) any later version.
101
102
103
104perl v5.38.0                      2023-07-21  Unix::Statgrab::sg_user_stats(3)
Impressum