创建模型
POST
http://127.0.0.1:8190/model/createModel
请求参数
参数名
类型
描述
必填
modelName
String
模型名称
必填
modelDescribe
String
模型描述
可选
selectTimeType
Integer
选择时间类型 1 过去时间 2 未来时间 3 过去+未来时间 4 实时 5 具体时间 6 相同 7 同期 8 过去 + 过去时间 9 连续时间
必填
overTimeNumber
Integer
过去时间数
可选
futureTimeNumber
Integer
未来时间数
可选
duringSameNumber
Integer
历史同期时间数
可选
overTimeUnit
Integer
过去时间单位 1 小时 2 天 3 周 4 月 5 季度 6 年
可选
futureTimeUnit
Integer
未来时间单位 1 小时 2 天 3 周 4 月 5 季度 6 年
可选
specificTime
String[]
具体时间范围(String[0]表示开始时间 String[1]表示结束时间)
可选
duringSameUnit
Integer
历史同期时间单位 3 周 4 月 6 年
可选
continuousTimeUnit
Integer
连续时间时间单位 1 小时 2 天 3 周 4 月 5 季度 6 年
可选
continuousTimeNumber
Integer
连续时间数
可选
continuousTrend
Integer
连续时间趋势 1 上升 2 降低 3 /
可选
secondOverTimeNumber
Integer
过去时间数
可选
secondOverTimeUnit
Integer
过去时间单位 1 小时 2 天 3 周 4 月 5 季度 6 年
可选
regionRange
String
区域范围字段名
可选
regionRangeChineseName
String
区域范围字段中文名
可选
tableName
String
数据表名
必填
tableChineseName
String
数据表中文名
必填
timeFieldName
String
表时间字段
必填
timeFieldChineseName
String
表时间字段中文名
必填
whetherAssociateRule
Integer
是否关联规则 0,1,2,3,4......
必填
tableFieldName
String
表字段名
必填
tableFieldChineseName
String
表字段中文名
必填
conditionType
Integer
条件类型 1 关系 2 运算 3 函数计算 4 /(结束) 5 同比 6 环比 7 值数据量 8 占比
必填
conditionTypeRelationSymbols
Integer
运算符 1包含 2 不包含 3 等于 4 不等于 5 > 6 >= 7 = 8 < 9 <= 10 + 11 - 13 求和 14 求平均值 15 最大值 16 最小值 17 统计数量
必填
operationalValue
String
运算值
必填
operationDimension
Integer
运算维度 1 / 2 数据量
必填
secondConditionType
Integer
第二条件类型
可选
secondConditionTypeRelationSymbols
Integer
第二运算符
可选
secondOperationalValue
String
第二运算值
可选
thirdConditionType
Integer
第三条件类型 1 关系 4 /(结束)
必填
thirdConditionTypeRelationSymbols
Integer
第三运算符 5 > 6 >= 7 = 8 < 9 <=
必填
thirdOperationalValue
String
第三运算值
必填
tableFieldName
String
表字段
必填
conditionType
Integer
条件类型 1 关系 2 运算
必填
conditionTypeRelationSymbols
Integer
运算符 1包含 2 不包含 3 等于 4 不等于 5 > 6 >= 7 = 8 < 9 <= 10 + 11 -
必填
operationalValue
String
运算值
必填
operationDimension
Integer
运算维度 1 / 2 数据量
必填
secondConditionType
Integer
第二条件类型
必填
secondConditionTypeRelationSymbols
Integer
第二运算符
必填
secondOperationalValue
String
第二运算值
必填
operationRelation
Integer
条件运算关系 1 且 2 或
必填
tableFieldChineseName
String
表字段中文名
必填
executionFrequency
Integer
执行频率 1 实时 2 定时
必填
timeNumber
Integer
时间数
可选
timeUnit
Integer
时间单位 1 小时 2 天 3 周 4 月 5 季度 6 年
可选
modelStatus
Integer
模型状态 0 关闭 1 开启
必填
imessageNotice
Integer
是否i国网消息通知 0 否 1 是
必填
imessageContent
String
i国网消息提醒内容
必填
manageWorkOrder
Integer
是否生成管理工单 0 否 1 是
必填
fieldName
String
字段名称
必填
fieldChineseName
String
字段中文名称
必填
fieldType
Integer
字段类型
必填
fieldLength
Integer
字段长度
必填
whetherNull
Integer
是否可为空 0 否 1 是
必填
fieldDescribe
String
字段说明
必填
dataClassify
Integer
模型分类
必填
executionStartTime
String
定时执行开始时间(yyyy-MM-dd HH:mm:ss)
必填
workOrderRuleId
Integer
工单规则id
必填
workOrderDistributionDescription
String
工单派发说明
可选
响应参数
参数名
类型
描述
必填
code
Integer
200 成功,其余失败
必填
msg
String
操作描述
必填