Since: PECL rrd >= 0.9.0

class RRDUpdater (View source)

Class for updating RDD database file.

Methods

__construct(string $path)

Creates new RRDUpdater instance. This instance is responsible for updating the RRD database file.

bool
update(array $values, string $time = '')

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

Details

__construct(string $path)

Since: PECL rrd >= 0.9.0

Creates new RRDUpdater instance. This instance is responsible for updating the RRD database file.

RRDUpdater constructor.

Parameters

string $path

Filesystem path for RRD database file, which will be updated.

bool update(array $values, string $time = '')

Since: PECL rrd >= 0.9.0

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

Parameters

array $values

Data for update. Key is data source name.

string $time

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

Return Value

bool

TRUE on success or FALSE on failure.

Exceptions

Exception