« RRDUpdater::__construct
ScoutAPM »

RRDUpdater::update

(PECL rrd >= 0.9.0)

RRDUpdater::update — Update the RRD database file

説明

public function 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 particular data. Default value is current time.

戻り値

成功した場合に true を、失敗した場合に false を返します。

エラー / 例外

Throws a Exception on error.

例

例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");
?>
関連キーワード:
RRDUpdater   update   time   Update   database   values   speed   construct   defined   data source   updator   ScoutAPM   Updates   specific   Time   updating   Default   current   成功   Throws   Exception   examples   updates   timestamp
関連する関数・ページ:
class.rrdupdater   rrdupdater.construct   book.rrd   function.rrd-update   rrd.examples-oop   function.svn-update