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

  1. Select Model, and click edit in the Operation column corresponding to the model to be edited.

  2. Select Feature Definition tab, click Export Model, and select the model file format: JSON or Excel.

  3. 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

  1. On the Feature Definition tab, click Edit > Import Mode.

  2. In the pop-up window, click Upload File, select the local model file to be imported and click OK.

  3. 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.

  4. Click Publish to finish.

Editing through console

  1. Select Model, and click edit in the Operation column of the corresponding model

  2. Select Feature Definition tab, click Edit.

  3. According to your needs, click edit 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.

  4. After finishing editing, click Publish.

Deleting models

Click delete 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.