[rrd-developers] Re: API for reading RRD metadata
    Tobias Oetiker 
    oetiker at ee.ethz.ch
       
    Thu Oct  4 17:39:58 MEST 2001
    
    
  
Today Tiago Pedroso wrote:
> wouldn't it be great to have things like this:
>
> my $rrd = RRD->new->( filename => "my.rrd" );
>
> my $info = $rrd->info();
>
> foreach my $elem (keys %{$info->{ds}} {
>    print "dsname = $elem\n";
>    print "dst = ".$info->{ds}{$elem}{type}."\n";
>    print "hb = ".$info->{ds}{$elem}{minimal_heartbeat}."\n";
>    print "min = ".$info->{ds}{$elem}{min}."\n";
>    print "max = ".$info->{ds}{$elem}{max}."\n";
> }
>
> Am I being to demanding ? Well at least rddtool ships with a perl API
Hi Tiago,
not at all, but designing such an second level API in perl is much
simpler and IMHO the right thing todo as oposed to create such an
API in XS ... so if you wrote a second level API which not make it
availale to othrs to enjoy ...
cheers
tobi
-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, ETZ J97, ETH, 8092 Zurich, Switzerland
 / // _ \/ _ \/ / phoneto:+41(0)1-632-5286  faxto:+41(0)1-632-1517
/_/ \.__/_.__/_/ mailto:oetiker at ee.ethz.ch http://people.ee.ethz.ch/~oetiker
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
    
    
More information about the rrd-developers
mailing list