2.2.13 kpimodel
usage: kpimodel display [-f,--file <filename>] [-v,--view <view>]| help [<subcommand>] | validate [-f,--file <filename>]
This command is used to view and validate models in KPI Management.
display
Use kpimodel
display
to view a model.
$ mzsh kpimodel display --file <filename> --view tree
Example - Viewing a model
MZ>> kpimodel display --file /home/mz/Downloads/example_model.json --view tree Region ├──Region.KPI_01 └──SubRegion ├──SubRegion.KPI_02 └──Area └──Area.KPI_03
Option | Description |
---|---|
[-f, --file <filename>] | An absolute path to the file that contains service model. |
[-v, --view <view type>] | The view type. The only type that is currently available is tree . |
help
Use kpimodel help
to retrieve a description of a subcommand.
mz>> kpimodel help <subcommand>
validate
Use kpimodel validate to ensure the integrity of the service model.
mz>> kpimodel validate --file <filename>
Example - Validating a model
mz>> kpimodel validate --file /home/mz/kpi/servicemodels/model1.json
Option | Description |
---|---|
[-f, --file <filename>] | The file that contains service model. |
Return Codes
Listed below are the different return codes for the kpimodel
command:
Code | Description |
---|---|
0 | Will be returned if the command is successful. |
1 | Will be returned if the argument count is incorrect or argument(s) are invalid or if the validation of the service model fails. |
Next chapter: