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

    Parameters参数

    (object/array) Graph prototypes to create.创建图形原型

    (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.返回一个包含所创建的图形原型的ID的关联数组在graphids 参数下。返回的ID的顺序与通过的图形原型项匹配。

    Examples示例

    Creating a graph prototype创建一个图形原型

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

    Response响应:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "graphids": [
    5. ]
    6. },
    7. "id": 1
    8. }

    Source来源

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