2.4.1.7.17.1. 查询Fault列表(关注设备或无设备ID)

    请求参数:

    字段字段名称字段类型说明是否必传
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20
    condition查询条件JsonLIKE模糊搜索条件
    start_time开始时间Datetime按创建时间搜索的开始时间和结束时间
    end_time结束时间Datetime

    condition参数:

    格式

    举例

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result结果Json

    返回数据举例:

    2.4.1.7.17.2. 查询Fault指定记录

    调用接口:

    属性
    url/api/fault/get
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    fault_id故障IDInteger自增id
    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "查询成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",
    7. "fault_id": 1001,
    8. "code": "7493",
    9. "fault_name": "速度反馈错误",
    10. "description": "Label_En:Speed Feedback Error;Label_Cn:速度反馈错误",
    11. "equipment_id": 1001,
    12. "template": "",
    13. "script": "",
    14. "reference": "",
    15. "created": "2018-09-03 15:43:32",
    16. "is_available": 1
    17. }
    18. }

    2.4.1.7.17.3. 查询Fault列表(EXP使用:关注设备)

    调用接口:

    请求参数:

    字段字段名称字段类型说明是否必传
    page_index查询页码Integer大于 0,如果为空,则默认从第一页显示
    page_size每页记录数Integer大于 0,如果为空,则默认为 20
    condition查询条件JsonLIKE模糊搜索条件
    start_time开始时间Datetime按创建时间搜索的开始时间和结束时间
    end_time结束时间Datetime

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result结果Json

    返回数据举例:

    2.4.1.7.17.4. 添加Fault

    调用接口:

    属性
    url/api/fault/add
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    fault_name故障代码String
    description描述Text
    aprus_id适配器标识String
    equipment_id设备标识String
    template模板/样式text
    script脚本text
    reference参考号String

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json
    1. "code": 200,
    2. "msg": "添加成功",
    3. "mix_msg":"",
    4. "mix_ext":"",
    5. "result": []
    6. }

    2.4.1.7.17.5. 编辑Fault

    调用接口:

    请求参数:

    字段字段名称字段类型说明是否必传
    fault_id故障标识String
    fault_name故障代码String
    description描述Text
    aprus_id适配器标识String
    equipment_id设备标识String
    template模板/样式text
    script脚本text
    reference参考号String

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    2.4.1.7.17.6. 删除Fault

    调用接口:

    属性
    url/api/fault/delete
    http方法post
    Content-Typeapplication/json或application/x-www-form-urlencoded

    请求参数:

    字段字段名称字段类型说明是否必传
    fault_id故障IDInteger自增id

    返回参数:

    字段字段名称字段类型说明是否必传
    code返回码Integer200:成功 500:失败
    msg提示信息String
    result返回结果Json

    返回示例:

    1. {
    2. "code": 200,
    3. "msg": "删除成功",
    4. "mix_code":130001,
    5. "mix_msg":"",
    6. "mix_ext":"",