描述

    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: 响应:

    1. {
    2. "graphids": [
    3. "652"
    4. ]
    5. },
    6. }

    参考

    Source

    来源

    CGraph::create() in frontends/php/include/classes/api/services/CGraph.php.