1Unix::Statgrab::sg_netwUosrekr_iCfoancter_isbtuattesdU(n3Pi)exr:l:SDtoactugmreanbt:a:tsigo_nnetwork_iface_stats(3)
2
3
4

NAME

6       Unix::Statgrab::sg_network_iface_stats - container for libstatgrab
7       network interface statistics
8

DESCRIPTION

10       "Unix::Statgrab::sg_network_iface_stats" is a Perl package name
11       providing accessors to bundled libstatgrab sg_network_iface_stats
12       <http://www.i-
13       scream.org/libstatgrab/docs/sg_get_network_iface_stats.3.html> network
14       interface statistics.
15

METHODS

17   nentries
18       Returns the number of entries in the container.
19
20   systime
21       Returns the seconds since Epoch (0:00:00 on January, 1st 1970) of the
22       time measure the network interface statistics.
23
24   as_list
25       Deprecated alias of "fetchall_hash"
26
27   fetchall_hash
28       Returns all records from sg_network_iface_stats <http://www.i-
29       scream.org/libstatgrab/docs/sg_get_network_iface_stats.3.html>
30       container as list of hash containing each datum name as key and the
31       datum as value.
32
33   fetchall_array
34       Returns all records from sg_network_iface_stats <http://www.i-
35       scream.org/libstatgrab/docs/sg_get_network_iface_stats.3.html>
36       container as list of arrays containing the values in following order:
37
38         (interface_name speed factor duplex up systime)
39
40       in that order without leading headline.
41
42   fetchall_table
43       Returns all records from sg_network_iface_stats <http://www.i-
44       scream.org/libstatgrab/docs/sg_get_network_iface_stats.3.html>
45       container as list of arrays containing the values in following order:
46
47         (interface_name speed factor duplex up systime)
48
49       in that order including leading headline.
50
51   fetchrow_arrayref($row = 0)
52       Returns one row as array containing values as above.
53
54   fetchall_arrayref
55       Returns all records from sg_network_iface_stats <http://www.i-
56       scream.org/libstatgrab/docs/sg_get_network_iface_stats.3.html>
57       container as array of arrays without header.
58
59   fetchrow_hashref($row = 0)
60       Returns one row as hash containing "{ disk_name =>
61       $self.disk_name($row), read_bytes => ... }".
62
63   fetchall_hashref
64       Returns all records from sg_network_iface_stats <http://www.i-
65       scream.org/libstatgrab/docs/sg_get_network_iface_stats.3.html>
66       container as array of hashes.
67
68   colnames
69       Returns list of column names: "(interface_name speed factor duplex up
70       systime)"
71
72   interface_name
73       The name of the interface known to the operating system. (e.g. on linux
74       it might be eth0)
75
76   speed
77       The speed of the interface, in factor/sec
78
79   factor
80       The factor for the speed in bit/sec - e.g. 1'000'000 for megabit/sec
81
82   duplex
83       One of
84
85           SG_IFACE_DUPLEX_FULL SG_IFACE_DUPLEX_HALF SG_IFACE_DUPLEX_UNKNOWN
86
87   up
88       True value when the interface is up
89

AUTHOR

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