Managing Models¶
You can manage models, including editing and deleting models.
Task description¶
The steps to edit and delete a model are described in this section.
Editing models¶
You can edit the model information directly on the console, or you can export the model, edit the model information locally and then import it.
Editing through exporting/importing model¶
Exporting model¶
Select Model, and click in the Operation column corresponding to the model to be edited.
Select Feature Definition tab, click Export Model, and select the model file format: JSON or Excel.
Edit the exported model file as needed:
You can modify the existing model feature definitions or add new feature definitions.
If you need to quickly locate the feature definition during development, you can use the Priority of the JSON file or the Serial number of the Excel file to sort the feature definitions. You can assign any integer starting from 0 as the Priority or Serial number of a feature. The sequence numbers of different types of feature definitions are independent of each other. If you have not edited the Priority or Serial number, 0 by default represents the feature initialized when the model is created, and the newly added features start from 1 and increase by 1 in order. The number you assign to the features can be discontinuous or out of order. Priority or Serial number can be duplicate.
Importing model¶
On the Feature Definition tab, click Edit > Import Mode.
In the pop-up window, click Upload File, select the local model file to be imported and click OK.
EnOS will verify the format of the uploaded file. If there is no problem with the format, click OK to complete the model import. If there is a problem with the format, follow the error message to make corrections, and upload again for verification.
Click Publish to finish.
Editing through console¶
Select Model, and click in the Operation column of the corresponding model
Select Feature Definition tab, click Edit.
According to your needs, click on the corresponding feature definition to edit the existing function definition. If you need to add a new feature definition, click Add and then add the feature definition following the instruction.
After finishing editing, click Publish.
Deleting models¶
Click in the Operation column of the corresponding model to delete the model. Before deleting a model, make sure you have deleted the products, equipment assets and logical assets created based on the model, otherwise you cannot delete the model.
Note
If the data of a measurement point in the model have gone into the time series database through the configured storage policy, you cannot change the data type of the measurement point, delete the measurement point or delete the model. To perform these operations, you must clear the data of the measurement point in TSDB.
Result¶
You successfully change the model information or delete the model as needed.