RRDUpdater::update

(PECL rrd >= 0.9.0)
Update the RRD database file
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.

Parameters:
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.

Returns:

Returns TRUE on success or FALSE on failure.

Exception:

Throws a Exception on error.

Examples:
RRDUpdater::update() examples
1
2
3
4
5
6
<?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");
?>
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.