IoT数据分析 IoTA-创建资产模型:请求示例

时间:2023-11-01 16:15:34

请求示例

{  "name" : "string",  "display_name" : "string",  "properties" : [ {    "name" : "string",    "display_name" : "string",    "source_type" : "static|measurement|analysis",    "data_schema" : {      "min" : 0,      "max" : 0,      "min_length" : 0,      "max_length" : 0,      "data_type" : "string"    },    "unit" : "string",    "value" : 0,    "is_tag" : true  } ],  "analyses" : [ {    "name" : "string",    "display_name" : "string",    "type" : "transform|aggregate|stream",    "transform" : {      "inputs" : [ {        "name" : "string",        "property_reference" : {          "type" : "this|single|children",          "asset_model_id" : "string",          "property_name" : "string"        }      } ],      "expression" : {        "formula" : "string",        "formulas" : [ {          "name" : "string",          "formula" : "string"        } ]      },      "output_property" : "string",      "outputs" : [ {        "name" : "string",        "output_asset_model_id" : "string",        "output_property" : "string"      } ]    },    "aggregate" : {      "inputs" : [ {        "name" : "string",        "property_reference" : {          "type" : "this|single|children",          "asset_model_id" : "string",          "property_name" : "string"        }      } ],      "expression" : {        "time_range" : "1m|5m|15m|1h",        "formula" : "string",        "formulas" : [ {          "name" : "string",          "formula" : "string"        } ]      },      "schedule" : {        "period" : "1m|5m|15m|1h"      },      "output_property" : "string",      "outputs" : [ {        "name" : "string",        "output_asset_model_id" : "string",        "output_property" : "string"      } ]    },    "stream" : {      "inputs" : [ {        "name" : "string",        "property_reference" : {          "type" : "this|single|children",          "asset_model_id" : "string",          "property_name" : "string"        }      } ],      "job_id" : "string",      "outputs" : [ {        "name" : "string",        "output_property" : "string"      } ]    }  } ]}
support.huaweicloud.com/api-iotanalytics/CreateAssetModel.html