downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SAM> <RRDUpdater::__construct
[edit] Last updated: Sat, 18 May 2013

view this page in

RRDUpdater::update

(PECL rrd >= 0.9.0)

RRDUpdater::updateUpdate the RRD database file

Açıklama

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

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

Değiştirgeler

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.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Hatalar/İstisnalar

Throws a Exception on error.

Örnekler

Örnek 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");
?>



add a note add a note User Contributed Notes RRDUpdater::update - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites