1Unix::Statgrab::sg_loadU_ssetratCso(n3t)ributed Perl DocUunmiexn:t:aSttiaotngrab::sg_load_stats(3)
2
3
4

NAME

6       Unix::Statgrab::sg_load_stats - container for libstatgrab load average
7       statistics
8

DESCRIPTION

10       "Unix::Statgrab::sg_load_stats" is a Perl package name providing
11       accessors to bundled libstatgrab sg_load_stats <http://www.i-
12       scream.org/libstatgrab/docs/sg_get_load_stats.3.html> load average
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 load average statistics.
22
23   as_list
24       Deprecated alias of "fetchall_hash"
25
26   fetchall_hash
27       Returns all records from sg_load_stats <http://www.i-
28       scream.org/libstatgrab/docs/sg_get_load_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_load_stats <http://www.i-
33       scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as list
34       of arrays containing the values in following order:
35
36         (min1 min5 min15 systime)
37
38       in that order without leading headline.
39
40   fetchall_table
41       Returns all records from sg_load_stats <http://www.i-
42       scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as list
43       of arrays containing the values in following order:
44
45         (min1 min5 min15 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_load_stats <http://www.i-
54       scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as
55       array of arrays without header.
56
57   fetchrow_hashref($row = 0)
58       Returns one row as hash containing "{ min1 => $self.min1($row), min5 =>
59       ... }".
60
61   fetchall_hashref
62       Returns all records from sg_load_stats <http://www.i-
63       scream.org/libstatgrab/docs/sg_get_load_stats.3.html> container as
64       array of hashes.
65
66   colnames
67       Returns list of column names: "(min1 min5 min15 systime)"
68
69   min1
70       Load average of the last minute
71
72   min5
73       Load average of the last 5 minutes
74
75   min15
76       Load average of the last 15 minutes
77

AUTHOR

79       Jens Rehsack, <rehsack AT cpan.org>
80
82       Copyright (C) 2012-2018 by Jens Rehsack
83
84       This library is free software; you can redistribute it and/or modify it
85       under the terms of the GNU Lesser General Public License as published
86       by the Free Software Foundation; either version 2.1 of the License, or
87       (at your option) any later version.
88
89
90
91perl v5.36.0                      2022-07-22  Unix::Statgrab::sg_load_stats(3)
Impressum