CLI 参考 > 配置管理命令 > si createmetricinfo
  
si createmetricinfo
creates a new metric to be measured
Synopsis
si createmetricinfo [--description=value] [--name=value][--hostname=server] [--port=number] [--password=password] [--user=name] [(-?|--usage)] [(-F file|--selectionFile=file)] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=directory] [--forceConfirm=[yes|no]] [(-g|--gui)] [--quiet] [--settingsUI=[gui|default]] [--status=[none|gui|default]]
Description
si createmetricinfo creates a new metric to be measured.
You can use a third party tool to track metrics in addition to the standard metrics tracked by Windchill RV&S. Metrics tracked by a third party tool must be defined in Windchill RV&S and recorded for a specific project checkpoint. You define a metric by specifying a name and description for it using this command. Both --name and --description are mandatory.
You can run this command against an existing metric name to replace the description.
To define a metric you need the Metrics permission.
* 
Metrics are only supported for database type repositories.
Options
This command takes the universal options available to all si commands, as well as some general options. See the options reference page for descriptions.
--name=value
specifies a name for the metric being created
--description=value
specifies a description for the metric being created
Diagnostics
See the diagnostics reference page for possible exit status values.
Preferences
Using si setprefs or si viewprefs, you are able to set or view the preference keys for this command.
See Also
Commands: si viewmetricsinfo, si calculateprojectmetrics, si viewprojectmetrics, si addprojectmetric
Miscellaneous:diagnostics, options, preferences