Skip to Content
⚠️ Action required: DeltaTwin API has been updated to v2.0. Please update your deltatwin-cli. Read our technical notes for details.

Manifest Description

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

Manifest

KeyTypeRequiredDescription
namestring✓DeltaTwin® component identifier
descriptionstring✓DeltaTwin® component description
short_descriptionstring✓DeltaTwin® component short description
licenseLicense✓DeltaTwin® component license
ownerstring✓DeltaTwin® 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
namestring✓License name
urlstring✓License URL
copyrightsarray<Copyright>✓License copyrights
KeyTypeRequiredDescription
yearsarray<number>✓Copyright application years
companystring✓Company applying the copyright

Parameter

KeyTypeRequiredDescription
namestring✓Parameter name
descriptionstring–Parameter description

InputParameter

Inherits from Parameter

KeyTypeRequiredDescription
valuestring–Allowing to define a default value

Resource

Inherits from Parameter

KeyTypeRequiredDescription
valuestring✓Allowing to define a default value

OutputParameter

Inherits from Parameter

InputModelParameter

Inherits from InputParameter

KeyTypeRequiredDescription
prefixstring–Pattern to retrieve generated data during process execution

OutputModelParameter

Inherits from OutputParameter

KeyTypeRequiredDescription
globstring–Pattern to retrieve generated data during process execution

Model

KeyTypeRequiredDescription
namestring✓Process name
typestring✓Process type (currently only python is supported)
pathstring✓Relative path to the process directory
parametersstring✓Pattern 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
hardwareRequirementsHardwareRequirements–Hardware requirement need to execute the process
environmentobject<string, string>–Defines environment variables to inject to the process
commandstring✓Command to perform the process

HardwareRequirements

Please see Kubernetes documentation  for more details

KeyTypeRequiredDescription
cpustring–Define CPU usage (default: 500m)
ramstring–Define 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
namestring✓Software/Package name
versionstring✓Software/Package version

PythonModelParameters

KeyTypeRequiredDescription
pythonVersionstring✓Python version
pipRequirementsarray<SoftwareRequirement>–Python package to install from Pypi 

Dependency

KeyTypeRequiredDescription
namestring✓Dependence identifier
idstring✓Deltatwin® component identifier
versionstring✓Deltatwin® component version