1Unix::Statgrab::sg_diskU_sieor_sCtoanttsr(i3b)uted PerlUDnoicxu:m:eSnttaattgiroanb::sg_disk_io_stats(3)
2
3
4

NAME

6       Unix::Statgrab::sg_disk_io_stats - container for libstatgrab disk I/O
7       statistics
8

DESCRIPTION

10       "Unix::Statgrab::sg_disk_io_stats" is a Perl package name providing
11       accessors to bundled libstatgrab sg_disk_io_stats <http://www.i-
12       scream.org/libstatgrab/docs/sg_get_disk_io_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_disk_io_stats <http://www.i-
28       scream.org/libstatgrab/docs/sg_get_disk_io_stats.3.html> container as
29       list of hash containing each datum name as key and the datum as value.
30
31   fetchall_array
32       Returns all records from sg_disk_io_stats <http://www.i-
33       scream.org/libstatgrab/docs/sg_get_disk_io_stats.3.html> container as
34       list of arrays containing the values in following order:
35
36         (disk_name read_bytes write_bytes systime)
37
38       in that order without leading headline.
39
40   fetchall_table
41       Returns all records from sg_disk_io_stats <http://www.i-
42       scream.org/libstatgrab/docs/sg_get_disk_io_stats.3.html> container as
43       list of arrays containing the values in following order:
44
45         (disk_name read_bytes write_bytes 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_disk_io_stats <http://www.i-
54       scream.org/libstatgrab/docs/sg_get_disk_io_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_disk_io_stats <http://www.i-
63       scream.org/libstatgrab/docs/sg_get_disk_io_stats.3.html> container as
64       array of hashes.
65
66   colnames
67       Returns list of column names: "(disk_name read_bytes write_bytes
68       systime)"
69
70   disk_name
71       Name of the disk device of the I/O statistics
72
73   read_bytes
74       Bytes read from disk
75
76   write_bytes
77       Bytes written to disk
78
79   get_disk_io_stats_diff
80       Provides the difference between the last measurement and the recent
81       one.
82
83         $recent->get_disk_io_stats_diff($last);
84

AUTHOR

86       Jens Rehsack, <rehsack AT cpan.org>
87
89       Copyright (C) 2012-2018 by Jens Rehsack
90
91       This library is free software; you can redistribute it and/or modify it
92       under the terms of the GNU Lesser General Public License as published
93       by the Free Software Foundation; either version 2.1 of the License, or
94       (at your option) any later version.
95
96
97
98perl v5.34.0                      2021-07-27Unix::Statgrab::sg_disk_io_stats(3)
Impressum