RRDUpdater::update

(PECL rrd >= 0.9.0)

RRDUpdater::updateUpdate the RRD database file

说锟斤拷

public RRDUpdater::update ( array $values [, string $time = time() ] ) : bool

Updates the RRD file defined via RRDUpdater::__construct(). The file is updated with a specific values.

锟斤拷锟斤拷

values

Data for update. Key is data source name.

time

Time value for updating the RRD with a particulat data. Default value is current time.

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟斤拷锟斤拷锟届常

Throws a Exception on error.

锟斤拷锟斤拷

Example #1 RRDUpdater::update() examples

<?php
$updator 
= new RRDUpdater("speed.rrd");
//updates the data source "speed" with value "12411"
//for time defined by timestamp "920807700"
$updator->update(array("speed" => "12411"), "920807700");
?>