更新时间:2021-12-17 GMT+08:00
分享

根据标签列表查询模板

功能介绍

查询项目运行的记录列表。

URI

  • URI格式
    POST /softcomai/datalake/dataplan/v1.0/templates/getTemplatebytag
  • 参数说明

    无。

请求

  • 请求样例
    POST https://ipaddr:port/softcomai/datalake/dataplan/v1.0/templates/getTemplatebytag
    ["KPIanomaly", "localCollectDrive", "NMS", "coreNetwork", "U2020", "V2R19"]
  • 参数说明

    参数名

    是否必选

    参数类型

    备注

    列表

    List

    标签列表。

响应

  • 响应样例
    {
        "success":true,
        "errorMsg":null,
        "errorCode":null,
        "returnData":{
            "id":"P_20200317141930_842365822",
            "name":"KPI异常检测批数据V5",
            "description":null,
            "userId":"PUBLIC",
            "tenantId":"PUBLIC",
            "tenantName":null,
            "projectId":null,
            "scheduleCycle":null,
            "scheduleInterval":null,
            "scheduleBeginTime":null,
            "beginTime":null,
            "endTime":null,
            "createTime":"2020-03-17 14:19:30",
            "updateTime":"2020-03-17 14:19:30",
            "period":null,
            "status":null,
            "schedulerStatus":null,
            "lastStartTime":null,
            "lastEndTime":null,
            "startUser":null,
            "tag":"KPIanomaly",
            "tags":null,
            "fromSource":null,
            "driveStrategy":"localCollectDrive",
            "lastObsBucketName":null,
            "lastObsPath":null,
            "templateExtraInfoList":[
    
            ],
            "subProgress":[
    
            ],
            "progressType":"PROGRESS",
            "tasks":[
                {
                    "id":"3718511874417495656",
                    "source":"1642389222035434835",
                    "taskName":"手工采集_采集",
                    "taskType":"COLLECTION_BUILTIN",
                    "builtInTaskType":"COLLECTION_CLOUD_MANUAL",
                    "executeType":"SCRIPT",
                    "executeMethod":"GET",
                    "executeTarget":null,
                    "isKeyTask":"true",
                    "isStautsUrl":"false",
                    "userId":"PUBLIC",
                    "tenantId":"PUBLIC",
                    "rootTask":"false",
                    "createTime":"2020-03-16 17:34:41",
                    "updateTime":"2020-03-16 17:34:41",
                    "timeout":"60",
                    "script":{
                        "id":"1173177980774134292",
                        "source":"6357228211637831760",
                        "scriptName":null,
                        "scriptType":null,
                        "executeType":null,
                        "scriptVersion":null,
                        "bucketName":null,
                        "scriptPath":null,
                        "storageType":null,
                        "scriptDesc":null,
                        "userId":"PUBLIC",
                        "tenantId":"PUBLIC",
                        "userName":null,
                        "tenantName":null,
                        "createTime":null,
                        "updateTime":null,
                        "taskId":"3718511874417495656",
                        "status":"none"
                    },
                    "paramList":null,
                    "successFlag":null,
                    "successValue":null,
                    "statusFlag":null,
                    "statusSuccessValue":null,
                    "statusFailValue":null,
                    "statusRunningValue":null,
                    "responseVariableName":null,
                    "description":null,
                    "variables":[
                        {
                            "id":"3287549880712726629",
                            "source":"7935874892733480817",
                            "showName":"businessArea",
                            "showNameEn":"businessArea",
                            "varName":"businessArea",
                            "varType":null,
                            "varValue":"时空领域",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"3718511874417495656",
                            "taskType":null
                        },
                        {
                            "id":"1387732241979356544",
                            "source":"7478470724881399698",
                            "showName":"netManage",
                            "showNameEn":"netManage",
                            "varName":"netManage",
                            "varType":null,
                            "varValue":"kpi",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"3718511874417495656",
                            "taskType":null
                        },
                        {
                            "id":"805914355994226662",
                            "source":"1520837827927887117",
                            "showName":"netElement",
                            "showNameEn":"netElement",
                            "varName":"netElement",
                            "varType":null,
                            "varValue":"kpi",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"3718511874417495656",
                            "taskType":null
                        },
                        {
                            "id":"8050878831496053468",
                            "source":"1876788596384403463",
                            "showName":"dataType",
                            "showNameEn":"dataType",
                            "varName":"dataType",
                            "varType":null,
                            "varValue":"性能数据",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"3718511874417495656",
                            "taskType":null
                        }
                    ],
                    "oneTimeTask":null,
                    "commonTask":"false",
                    "authType":null,
                    "saveResponseVariableAsJson":null,
                    "consoleAddr":null,
                    "children":[
    
                    ],
                    "bpmnUseful":true,
                    "pid":"0"
                },
                {
                    "id":"5216166160092115818",
                    "source":"8033629687063552129",
                    "taskName":"KPI异常检测批数据V3",
                    "taskType":"GOVERN",
                    "builtInTaskType":"",
                    "executeType":"SCRIPT",
                    "executeMethod":"GET",
                    "executeTarget":null,
                    "isKeyTask":"false",
                    "isStautsUrl":"false",
                    "userId":"PUBLIC",
                    "tenantId":"PUBLIC",
                    "rootTask":"false",
                    "createTime":"2020-03-17 09:27:53",
                    "updateTime":"2020-03-17 09:27:53",
                    "timeout":"60",
                    "script":{
                        "id":"3933611056634666257",
                        "source":"154593294661571940",
                        "scriptName":"KPI异常检测V3",
                        "scriptType":"GOVERN",
                        "executeType":"JAVA",
                        "scriptVersion":"kpicloud",
                        "bucketName":"obs-3f58",
                        "scriptPath":"scripts/Template/Cloud/Public/P_20200317141930_842365822/ModelGenerate-2.0.jar",
                        "storageType":null,
                        "scriptDesc":null,
                        "userId":"PUBLIC",
                        "tenantId":"PUBLIC",
                        "userName":"qiaoweigang",
                        "tenantName":"hwstaff_pub_IntegrationT1",
                        "createTime":"2020-03-17 09:15:20",
                        "updateTime":null,
                        "taskId":"5216166160092115818",
                        "status":"none"
                    },
                    "paramList":[
                        {
                            "id":"5104514759269213290",
                            "source":"5454451749283672296",
                            "paramName":"string",
                            "paramType":null,
                            "paramValue":"-tableInfo "#{tableInfo}" -serviceType AnomalyDetect -resourceType DWS -domainId #{tenantId} -obsBucketName #{obsBucketName} -obsPath #{obsPath} -tenantName #{tenantName} -pyzipname #{pyzipname} -pymainpath #{pymainpath} -tables #{tables} -managementToken ${getManageToken} -integrationAddr #{integrationAddr} -iamAddr #{iamAddr} -obsendpoint #{obsendpoint}",
                            "appendType":"STRING",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":"2020-03-17 09:27:53",
                            "updateTime":"2020-03-17 09:27:53",
                            "taskId":"5216166160092115818",
                            "newCreate":"false"
                        },
                        {
                            "id":"2665880229634301626",
                            "source":"383977671905649529",
                            "paramName":"pyzippath",
                            "paramType":null,
                            "paramValue":"scripts/Cloud/hwstaff_pub_IntegrationT1/GOVERN/kpicloud/cloud_code24.zip",
                            "appendType":"FILE",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":"2020-03-17 09:27:53",
                            "updateTime":"2020-03-17 09:27:53",
                            "taskId":"5216166160092115818",
                            "newCreate":"false"
                        }
                    ],
                    "successFlag":null,
                    "successValue":null,
                    "statusFlag":null,
                    "statusSuccessValue":null,
                    "statusFailValue":null,
                    "statusRunningValue":null,
                    "responseVariableName":null,
                    "description":null,
                    "variables":[
                        {
                            "id":"5235516422075374667",
                            "source":"3385488250784146554",
                            "showName":"tables",
                            "showNameEn":"tables",
                            "varName":"tables",
                            "varType":null,
                            "varValue":"kpi_series",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"5216166160092115818",
                            "taskType":null
                        },
                        {
                            "id":"7729057600388954746",
                            "source":"8679876256794680613",
                            "showName":"tableInfo",
                            "showNameEn":"tableInfo",
                            "varName":"tableInfo",
                            "varType":null,
                            "varValue":"{\"tablename\":\"kpi_series\",\"columns\":[{\"name\":\"kpi_id\",\"size\":255,\"type\":\"varchar\",\"csvnum\":1,\"primaryKey\":true},{\"name\":\"collect_time\",\"size\":255,\"type\":\"varchar\",\"csvnum\":2,\"primaryKey\":true},{\"name\":\"observed_value\",\"size\":20,\"type\":\"float\",\"csvnum\":3},{\"name\":\"sampling_period\",\"size\":10,\"type\":\"integer\",\"csvnum\":4},{\"name\":\"tz_offset\",\"size\":10,\"type\":\"integer\",\"csvnum\":5},{\"name\":\"dst_offset\",\"size\":10,\"type\":\"integer\",\"csvnum\":6}]}",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"5216166160092115818",
                            "taskType":null
                        },
                        {
                            "id":"1179607629813016492",
                            "source":"4563700442641027692",
                            "showName":"obsBucketName",
                            "showNameEn":"obsBucketName",
                            "varName":"obsBucketName",
                            "varType":null,
                            "varValue":"bucket-0a4pe8qx",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"5216166160092115818",
                            "taskType":null
                        },
                        {
                            "id":"5927758938839471041",
                            "source":"5477805835565247124",
                            "showName":"obsPath",
                            "showNameEn":"obsPath",
                            "varName":"obsPath",
                            "varType":null,
                            "varValue":"liangmengjie/sftp/191218171131/Wireless_U2020-M_V100R019C00SPC01_eNodeB_V100R018C00SPC01_PM",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"5216166160092115818",
                            "taskType":null
                        },
                        {
                            "id":"1740835364127994510",
                            "source":"7798890659503885669",
                            "showName":"pyzipname",
                            "showNameEn":"pyzipname",
                            "varName":"pyzipname",
                            "varType":null,
                            "varValue":"cloud_code24.zip",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"5216166160092115818",
                            "taskType":null
                        },
                        {
                            "id":"7759035649150164930",
                            "source":"3601600827504907702",
                            "showName":"pymainpath",
                            "showNameEn":"pymainpath",
                            "varName":"pymainpath",
                            "varType":null,
                            "varValue":"cloud_code1/bin/CN_data_deal.py",
                            "remark":null,
                            "defaultVisible":"true",
                            "encrypt":"false",
                            "userId":"PUBLIC",
                            "tenantId":"PUBLIC",
                            "createTime":null,
                            "updateTime":null,
                            "taskId":"5216166160092115818",
                            "taskType":null
                        }
                    ],
                    "oneTimeTask":null,
                    "commonTask":"false",
                    "authType":null,
                    "saveResponseVariableAsJson":null,
                    "consoleAddr":null,
                    "children":[
    
                    ],
                    "bpmnUseful":true,
                    "pid":"0"
                }
            ],
            "sourceId":"P_20200317141919_426698601",
            "url":"3144394723356522599",
            "templateType":"PUBLIC",
            "extraInfo":null
        }
    }
  • 要素说明

    参数名

    参数类型

    备注

    success

    String

    请求是否成功,取值包括true和false。

    returnData

    JSON LIST

    返回值。

    id

    String

    模板ID。

    name

    String

    模板名称。

    tasks

    List

    任务列表。

    progressName

    String

    项目名称。

    beginTime

    String

    开始时间。

    costTime

    String

    花费时间。

    dataBucket

    String

    数据桶。

    dataPath

    String

    数据路径。

    dataFileList

    String

    文件列表。

状态码

具体请参考状态码

相关文档