]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
add documentation for RRDs::xport
authorDavid Schweikert <dws@open.ch>
Thu, 20 Mar 2014 14:45:32 +0000 (15:45 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 22 Aug 2014 09:02:57 +0000 (11:02 +0200)
bindings/perl-shared/RRDs.pm

index 6bbf404b3e501f357f13efa5c5f953e83a327b0e..f31e8327c67ebe3420a3272e0aafa27737ed1053 100644 (file)
@@ -129,6 +129,18 @@ integers, a pointer to an array and a pointer to a array of pointers.
     print "\n";
   }
 
+B<RRDs::xport> exposes the L<rrdxport(1)> 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)
+
 B<RRDs::times> returns two integers which are the number of seconds since
 epoch (1970-01-01) for the supplied "start" and "end" arguments, respectively.