This method allows to create new service times此方法允许创建新的服务时间.

    Parameters参数

    (object/array) Service times to create创建服务时间.

    Returns an object containing the IDs of the affected services under the serviceids property.返回一个包含serviceids属性下受影响的服务的ID的对象。

    Examples范例

    Adding a scheduled downtime添加预定的停机时间

    Add a downtime for service “2” scheduled weekly from Monday 22:00 till Tuesday 10:00.从星期一22:00至星期二10:00每周定期维修“2”的停机时间

    Response响应:

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

    Source源码

    CService::addTimes() in frontends/php/include/classes/api/services/CService.php.