略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: RRDGraph

2024-11-14

The RRDGraph class

(PECL rrd >= 0.9.0)

简介

Class for exporting data from RRD database to image file.

类摘要

class RRDGraph {
/* 方法 */
public __construct(string $path)
public save(): array
public saveVerbose(): array
public setOptions(array $options): void
}

目录

add a noteadd a note

User Contributed Notes 1 note

up
-1
Anonymous
5 years ago
On Windows if you get "Cannot parse DS in 'DEF:rr=C:/Users/xxx/code/monitor/speed_gauge.rrd:value:MAX'" error on Windows. This may mean that rrdtool does not like ":" on your file name - it needs to be replaced with "\:"

Atleast for me fixed that issue if I replace colon "str_replace(':', '\\:', $rrdPath);"

官方地址:https://www.php.net/manual/en/class.rrdgraph.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3