Skip to Content

Manifest Description

The complete description of the fields of the manifest is available below.

Manifest

KeyTypeRequiredDescription
namestringDeltaTwin® component identifier
descriptionstringDeltaTwin® component description
short_descriptionstringDeltaTwin® component short description
licenseLicenseDeltaTwin® component license
ownerstringDeltaTwin® component owner
inputsRecord<name, InputParam>Input parameters must be provided at each run
outputsRecord<name, OutputParam>Output parameters generated at each run
resourcesRecord<name, Resource>Constant and data which not change between runs
modelsRecord<name, Model>Processes definition section
dependenciesRecord<name, Dependency>Section to define dependencies to other DeltaTwin® components

Licence

KeyTypeRequiredDescription
namestringLicense name
urlstringLicense URL
copyrightsarray<Copyright>License copyrights
KeyTypeRequiredDescription
yearsarray<number>Copyright application years
companystringCompany applying the copyright

Parameter

KeyTypeRequiredDescription
namestringParameter name
descriptionstringParameter description

InputParameter

Inherits from Parameter

KeyTypeRequiredDescription
valuestringAllowing to define a default value

Resource

Inherits from Parameter

KeyTypeRequiredDescription
valuestringAllowing to define a default value

OutputParameter

Inherits from Parameter

InputModelParameter

Inherits from InputParameter

KeyTypeRequiredDescription
prefixstringPattern to retrieve generated data during process execution

OutputModelParameter

Inherits from OutputParameter

KeyTypeRequiredDescription
globstringPattern to retrieve generated data during process execution

Model

KeyTypeRequiredDescription
namestringProcess name
typestringProcess type (currently only python is supported)
pathstringRelative path to the process directory
parametersstringPattern to retrieve generated data during process execution
inputsRecord<string, InputModelParameter>Process inputs definition
outputsRecord<string, OutputModelParameter>Pattern to retrieve generated data during process execution

ModelParameters

KeyTypeRequiredDescription
aptRequirementsarray<SoftwareRequirement>Libraries, packages and software need to perform the process
hardwareRequirementsHardwareRequirementsHardware requirement need to execute the process
environmentobject<string, string>Defines environment variables to inject to the process
commandstringCommand to perform the process

HardwareRequirements

Please see Kubernetes documentation  for more details

KeyTypeRequiredDescription
cpustringDefine CPU usage (default: 500m)
ramstringDefine memory usage (default: 2Gi)

Command

Model inputs can be injected in the command using the pattern $(parameter)

{ "parameters": { "command": "python script.py $(uppercase) $(message)" }, "inputs": { "uppercase": { "type": "boolean", "prefix": "--my-flag" }, "message": { "type": "string", "prefix": "--message" } } }

Parameter injection works those following rules:

  • string: add prefix and the string to the command line
  • integer / number: add prefix and decimal representation to the command line
  • boolean: if true, add prefix; if false, add nothing
  • Data: add prefix and the value of Data.path
  • null: add nothing

SoftwareRequirement

KeyTypeRequiredDescription
namestringSoftware/Package name
versionstringSoftware/Package version

PythonModelParameters

KeyTypeRequiredDescription
pythonVersionstringPython version
pipRequirementsarray<SoftwareRequirement>Python package to install from Pypi 

Dependency

KeyTypeRequiredDescription
namestringDependence identifier
idstringDeltatwin® component identifier
versionstringDeltatwin® component version