平衡性分析

脚本描述

[
  ["FV","weight", "direct"]
]
  • FV:马赛克key
  • weight: 权重值,值必须小于1
  • direct: 方向, 只能为LEFTRIGHT

创建项目

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

json

请求Body参数

{
    "action": "create_balance_project",
    "name": "p1",
    "frequency": 60,
    "cycle": 3600,
    "mapping_id": "",
    "object_list": ["yjj"],
    "script": [
        ["S01", 0.5, "LEFT"],
         ["S02", 0.5, "LEFT"],
          ["S03", 0.5, "RIGHT"],
         ["S04", 0.5, "RIGHT"]
    ]
}
参数名 示例值 参数类型 是否必填 参数描述
action create_balance_project String -
name p1 String 项目名称
frequency 60 Number 计算频次,次/小时
cycle 3600 Number 分析周期:单位:小时
mapping_id - String 映射表id
object_list yjj Array 对象列表
script - Array 脚本
script.0 S01 String -
script.1 0.5 Number 权重
script.2 LEFT String LEFT 或 RIGHT

成功响应示例

{
    "resp": "create_balance_project",
    "code": 200,
    "msg": "成功",
    "result": {
        "id": 2,
        "uid": "Bla3100524600001",
        "name": "p1",
        "class_id": "balance",
        "frequency": 60,
        "cycle": 3600,
        "mapping_id": "",
        "object_list": [
            "yjj"
        ],
        "script": [
            [
                "S01",
                0.5,
                "LEFT"
            ],
            [
                "S02",
                0.5,
                "LEFT"
            ],
            [
                "S03",
                0.5,
                "RIGHT"
            ],
            [
                "S04",
                0.5,
                "RIGHT"
            ]
        ],
        "created": "2023-11-20 17:45:05",
        "last_modified": "2023-11-20 17:45:05",
        "Status": 0
    }
}

编辑项目

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

json

请求Body参数

{
    "action": "update_balance_project",
    "uid": "Bla3100524600001",
    "name": "p1",
    "frequency": 60,
    "cycle": 3600,
    "mapping_id": "",
    "object_list": ["yjj"],
    "script": [
        ["S01", 0.5, "LEFT"],
         ["S02", 0.5, "LEFT"],
          ["S03", 0.5, "RIGHT"],
         ["S04", 0.5, "RIGHT"]
    ]
}
参数名 示例值 参数类型 是否必填 参数描述
action update_stability_project String -
uid Sbi3052227700001 String 项目编号
name p2 String 项目名称
frequency 100 Number 计算频次:次/小时
cycle 3600 Number 分析周期:单位小时
mapping_id - Object 映射表id
object_list yjj String 对象列表
script - Object 脚本
script.0 S01 String -
script.1 S01 String -
script.2 - Object -
script.3 0.2 Number -

成功响应示例

{
    "resp": "update_balance_project",
    "code": 200,
    "msg": "成功",
    "result": {
        "id": 2,
        "uid": "Bla3100524600001",
        "name": "p1",
        "class_id": "balance",
        "frequency": 60,
        "cycle": 3600,
        "mapping_id": "",
        "object_list": [
            "yjj"
        ],
        "script": [
            [
                "S01",
                0.5,
                "LEFT"
            ],
            [
                "S02",
                0.5,
                "LEFT"
            ],
            [
                "S03",
                0.5,
                "RIGHT"
            ],
            [
                "S04",
                0.5,
                "RIGHT"
            ]
        ],
        "created": "0001-01-01 00:00:00",
        "last_modified": "2023-11-20 17:50:04",
        "Status": 0
    }
}
参数名 示例值 参数类型 参数描述
resp update_balance_project String
code 200 Number
msg 成功 String 返回文字描述
result - Object 结果集
result.id 2 Number
result.uid Bla3100524600001 String
result.name p1 String
result.class_id balance String
result.frequency 60 Number
result.cycle 3600 Number
result.mapping_id - Object
result.object_list yjj String
result.script - Object
result.script.0 S01 String
result.script.1 0.5 Number 权重
result.script.2 LEFT String LEFT 或 RIGHT
result.created 0001-01-01 00:00:00 String
result.last_modified 2023-11-20 17:50:04 String
result.Status - Number

停止项目

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

json

请求Body参数

{
    "action": "stop_balance_project",
    "uid":"Bla3100524600001"
}

启动项目

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

json

请求Body参数

{
    "action": "start_balance_project",
    "uid":"Bla3100524600001"
}

删除项目

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

application/json

请求Body参数

{
    "action": "delete_balance_project",
    "uid": "Bla3100524600001",
}

获取项目详情

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

application/json

请求Body参数

{
    "action": "get_balance_project_item",
    "uid": "Bla3100524600001"
}

成功响应示例

{
    "resp": "get_balance_project_item",
    "code": 200,
    "msg": "成功",
    "result": {
        "id": 2,
        "uid": "Bla3100524600001",
        "name": "p1",
        "class_id": "balance",
        "frequency": 60,
        "cycle": 3600,
        "mapping_id": "",
        "object_list": [
            "yjj"
        ],
        "script": [
            [
                "S01",
                0.5,
                "LEFT"
            ],
            [
                "S02",
                0.5,
                "LEFT"
            ],
            [
                "S03",
                0.5,
                "RIGHT"
            ],
            [
                "S04",
                0.5,
                "RIGHT"
            ]
        ],
        "created": "2023-11-20 17:45:05",
        "last_modified": "2023-11-20 17:51:32",
        "Status": 0
    }
}
参数名 示例值 参数类型 参数描述
resp get_balance_project_item String
code 200 Number
msg 成功 String 返回文字描述
result - Object 结果集
result.id 2 Number
result.uid Bla3100524600001 String 项目编号
result.name p1 String 项目名称
result.class_id balance String 分析类型:暂时固定为stability
result.frequency 60 Number 计算频次:次/小时
result.cycle 3600 Number 分析周期:单位小时
result.mapping_id - Object 映射表id
result.object_list yjj String 对象列表
result.script - Object 脚本
result.script.0 S01 String
result.script.1 0.5 String 权重
result.script.2 LEFT Object LEFT 或 RIGHT
result.created 2023-11-20 17:45:05 String
result.last_modified 2023-11-20 17:51:32 String
result.Status - Number 状态 0.未启动 1.已启动

获取项目列表

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

application/json

请求Body参数

{
    "action": "get_balance_project_list",
    "page_index": 1,
    "page_size": 5
}

成功响应示例

{
    "resp": "get_balance_project_list",
    "code": 200,
    "msg": "成功",
    "result": {
        "page_index": 1,
        "page_size": 5,
        "total_pages": 1,
        "total_records": 1,
        "data": [
            {
                "id": 2,
                "uid": "Bla3100524600001",
                "name": "p1",
                "class_id": "balance",
                "frequency": 60,
                "cycle": 3600,
                "mapping_id": "",
                "object_list": [
                    "yjj"
                ],
                "script": [
                    [
                        "S01",
                        0.5,
                        "LEFT"
                    ],
                    [
                        "S02",
                        0.5,
                        "LEFT"
                    ],
                    [
                        "S03",
                        0.5,
                        "RIGHT"
                    ],
                    [
                        "S04",
                        0.5,
                        "RIGHT"
                    ]
                ],
                "created": "2023-11-20 17:45:05",
                "last_modified": "2023-11-20 17:45:05",
                "Status": 0
            }
        ]
    }
}
参数名 示例值 参数类型 参数描述
resp get_balance_project_list String
code 200 Number
msg 成功 String 返回文字描述
result - Object 结果集
result.page_index 1 Number
result.page_size 5 Number
result.total_pages 1 Number
result.total_records 1 Number
result.data - Object 返回数据
result.data.id 2 Number
result.data.uid Bla3100524600001 String 项目编号
result.data.name p1 String 项目名称
result.data.class_id balance String 分析类型:暂时固定为stability
result.data.frequency 60 Number 计算频次,次/小时
result.data.cycle 3600 Number 分析周期,小时
result.data.mapping_id - Object 映射表id
result.data.object_list yjj String 对象列表
result.data.script - Object 脚本
result.data.script.0 S01 String
result.data.script.1 0.5 String 权重
result.data.script.2 LEFT Object LEFT 或 RIGHT
result.data.created 2023-11-20 17:45:05 String
result.data.last_modified 2023-11-20 17:45:05 String
result.data.Status - Number 状态 0.未启动 1.已启动

获取项目分析结果列表

暂无描述

接口状态

已完成

接口URL

http://{{indass}}/api

请求方式

POST

Content-Type

application/json

请求Body参数

{
    "action": "get_balance_result_list",
    "page_index": 1,
    "page_size": 5,
    "where_and": "[[\"project_name\", \"like\", \"%p12%\"]]"
}

成功响应示例

{
    "resp": "get_stability_result_list",
    "code": 200,
    "msg": "成功",
    "result": {
        "page_index": 1,
        "page_size": 5,
        "total_pages": 6,
        "total_records": 27,
        "data": [
            {
                "id": 27,
                "project_uid": "Sbi3052227700001",
                "object_id": "yjj",
                "start_time": "",
                "end_time": "",
                "data": {
                    "S01": 3350.678,
                    "S02": 826.842,
                    "S03": 1032.821,
                    "data": 5210.341
                },
                "created": "2023-10-27 16:14:18",
                "last_modified": "2023-10-27 16:14:18"
            }
        ]
    }
}
参数名 示例值 参数类型 参数描述
resp get_stability_result_list String
code 200 Number
msg 成功 String 返回文字描述
result - Object 结果集
result.page_index 1 Number
result.page_size 5 Number
result.total_pages 6 Number
result.total_records 27 Number
result.data - Object
result.data.id 27 Number
result.data.project_uid Sbi3052227700001 String 项目编号
result.data.object_id yjj String 对象编号
result.data.start_time - Object 开始时间
result.data.end_time - Object 结束时间
result.data.data - Object 结果详情
result.data.data.S01 3350.678 Number fv 的MSE值
result.data.data.S02 826.842 Number
result.data.data.S03 1032.821 Number
result.data.data.data 5210.341 Number 结果值
result.data.created 2023-10-27 16:14:18 String
result.data.last_modified 2023-10-27 16:14:18 String
文档更新时间: 2024-08-09 15:45   作者:技术支持