...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "type": "daemon", "subType": "cronJob", "name": "kubernetes", "group": "damongroup", "description": "This is the description of your cronJob daemon", "tagstab": { ["tag1", "tag2"], "attributes": { "att1main": ["att1.1"kubernetes_cronjob", "att1.2"], "att2sub": ["att2.1", "att2.2"]"Subtype_Daemon" }, "program": ["soajs"], "tab": { "mainport": "kubernetes cronjob"4100, "subversion": "Subtype Daemon1" , }, "documentation": { "readme": "/doc/markupfile", "release": "/doc/markupfile" }, //Search criteria "tags": ["tag1", "tag2"], "attributes": { "portatt1": 4100, "version": "1", ["att1.1", "att1.2"], "att2": ["att2.1", "att2.2"] }, "program": ["soajs"], //Configuration "maintenance": { "port": { "type": "inherit" }, "readiness": "/heartbeat" }, "prerequisites": { "cpu": " ", "memory": " " }, //Custom profile "profile": { //free to add whatever you want } } |
...
Variable | Required | description | example | Default | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UI meta data | |||||||||||
type | Yes | The following type is supported: static, service, daemon, multi, custom (anything else) | if not set the default type will be custom. | custom | |||||||
subtype | daemons | ||||||||||
tab | - | ||||||||||
name | Yes | The name of the daemon has to be unique and not been used by other daemons at the API catalog. | If the repoName is : xx.pay.merchant-daemon | ||||||||
group | Yes | The group of the daemon, make sure you set the right group to properly display the daemon under the right group at the daemon catalog. | The daemon Group should reflect the system the service belongs to "Payment" | ||||||||
description | No | The daemon description to appear in the daemon catalog UI | "This is a string" | - | |||||||
Search meta data | |||||||||||
tags | No | - | |||||||||
attributes | No | - | |||||||||
program | No | - | |||||||||
Documentation meta data | |||||||||||
documentation | No | - | |||||||||
Type meta data | |||||||||||
swaggerFilename | No | The location of the service swagger file from the repository root. if not set soajs will look for swagger.yml or swagger.json at the root folder. | "/doc/swagger.yml" | swagger.json | |||||||
port | No | The port of the daemon. make sure it is unique and not being used by any other daemon at the API catalog. | 4100 | ||||||||
version | Yes | The version of the daemon. make sure it has the following syntax: a string of /[0-9]+(.[0-9]+)?/ | "1" or "1.1" | "1" | |||||||
maintenance | No | The heartbeat route to probe the health status of the service. |
| ||||||||
prerequisites | No |
...