描述
This method allows to create new graphs. 此方法用于创建新的图表
Parameters
参数
(object/array)
Graphs to create. (对象/数组)
要创建的图表.
参数 | 类型 | 描述 |
---|---|---|
gitems (必选) | array | 创建到图表中的监控项. |
返回值
(object)
Returns an object containing the IDs of the created graphs under the property. The order of the returned IDs matches the order of the passed graphs. (对象)
在 graphids
属性下,返回一个包含已创建图表ID的对象. 返回ID的顺序与传递图表的顺序想在匹配.
Examples
例子
Creating a graph
创建一个图表
Create a graph with two items. 创建一个包含两个监控项的图表.
Response: 响应:
{
"graphids": [
"652"
]
},
}
参考
Source
来源
CGraph::create() in frontends/php/include/classes/api/services/CGraph.php.