描述

    This method allows to create new graph prototypes. 此方法用于创建新的图形原型

    Parameters

    参数

    (object/array) Graph prototypes to create. (对象/数组) 将要创建的图形原型

    参数类型描述
    gitems
    (必选)
    array创建到图形原型中的图表监控项. 图表监控项能同时被监控项与监控项原型检索到,但必须至少有一个监控项原型。

    返回值

    (object) Returns an object containing the IDs of the created graph prototypes under the property. The order of the returned IDs matches the order of the passed graph prototypes. (对象)graphids属性下,返回一个包含已被创建的图形原型ID的对象。返回的ID的顺序与传递的图形原型的顺序相匹配。

    Examples

    例子

    Creating a graph prototype

    创建一个图形原型

    Create a graph prototype with two items. 创建一个含有两个监控项的图形原型。

    Response: 响应:

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

    参考

    Source

    来源

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