Creating custom optimization packs
To create a custom optimization pack, the following fixed directory structure and several YAML manifests need to be created.
Optimization pack directory structure
Optimization pack manifest
The optimizationPack.yaml
file is the manifest of the optimization pack to be created, which should always be named optimizationPack
and have the following structure:
Field | Type | Value restrictions | Is required | Default value | Description |
---|---|---|---|---|---|
| string | It should not contain spaces. | TRUE | The name of the optimization pack. | |
| string | TRUE | A description to characterize the optimization pack. | ||
| integer | weight > 0 | TRUE | A weight to be associated to the optimization pack. This field is used for licensing purposes. | |
| string | It should match the regexp: | TRUE | The version of the optimization pack. | |
| array of string | FALSE | An empty array | A set of tags to make the optimization pack more easily searchable and discoverable. |
Component types
The component-types
directory should contain the manifests of the component types to be included in the optimization pack. No particular naming constraint is enforced on those manifests. See Component Types template for details on the structure of those manifests.
Metrics
The metrics
directory should contain the manifests of the groups of metrics to be included in the optimization pack. No particular naming constraint is enforced on those manifests. See Metric template for details on the structure of those manifests.
Parameters
The parameters
directory should contain the manifests of the groups of parameters to be included in the optimization pack. No particular naming constraint is enforced on those manifests. See Parameter template for details on the structure of those manifests.
Building optimization pack descriptor
The following command needs to be executed to produce the final JSON descriptor:
After this, the optimization pack can be installed and used.
Last updated