【发布时间】:2021-05-19 22:27:50
【问题描述】:
我正在尝试利用 Perl 中 RRDs 模块的 xport 功能从 rrd 文件中提取数据。但是,我没有找到合适的语法来使用它。官网只提供以下解释。 如果有人使用此模块做同样的事情,请提供帮助。
RRDs::xport exposes the rrdxport functionality and returns data with the following structure:
my ($start,$end,$step,$cols,$names,$data) = RRDs::xport ...
# $start : timestamp
# $end : timestamp
# $step : seconds
# $cols : number of returned columns
# $names : arrayref with the names of the columns
# $data : arrayref of arrayrefs with the data (first index is time, second is column)
【问题讨论】: