{
  "$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
  "self": {
    "vendor": "com.iqrftech.self-desc",
    "name": "schema__iqrf__MonitorService",
    "format": "jsonschema",
    "version": "1-0-0"
  },
  "type": "object",
  "required": [
    "component",
    "instance",
    "reportPeriod",
    "port",
    "acceptOnlyLocalhost",
    "transportMode",
    "tlsMode",
    "tlsPort",
    "cert",
    "privKey"
  ],
  "additionalProperties": false,
  "properties": {
    "component": {
      "title": "Component name",
      "description": "Name of component.",
      "type": "string",
      "enum": [
        "iqrf::MonitorService"
      ]
    },
    "instance": {
      "title": "Instance name",
      "description": "Name of component instance.",
      "type": "string",
      "pattern": "^[a-zA-Z0-9-]+$",
      "example": "MonitorService-1"
    },
    "reportPeriod": {
      "title": "Report period",
      "description": "Time in seconds between monitor notifications.",
      "type": "integer",
      "example": 10
    },
    "port": {
      "title": "Listening port",
      "type": "integer",
      "description": "Port on which monitoring websocket server listens for plain connections.",
      "minimum": 1,
      "maximum": 65535,
      "example": 1438
    },
    "acceptOnlyLocalhost": {
      "title": "Accept localhost only",
      "description": "Only accept localhost connections.",
      "type": "boolean",
      "example": true
    },
    "transportMode": {
      "title": "Transport mode",
      "description": "Mode of transport determines whether websocket server allows plain, tls or both connection types.",
      "type": "string",
      "enum": [
        "plain",
        "tls",
        "both"
      ],
      "example": "both"
    },
    "tlsMode": {
      "title": "TLS mode",
      "description": "TLS configuration according to mozilla SSL configuration profiles.",
      "type": "string",
      "enum": [
        "modern",
        "intermediate",
        "old"
      ],
      "example": "intermediate"
    },
    "tlsPort": {
      "title": "Listening port TLS",
      "type": "integer",
      "description": "Port on which monitoring websocket server listens for TLS connections.",
      "minimum": 1,
      "maximum": 65535,
      "example": 8438
    },
    "cert": {
      "title": "Certificate file",
      "description": "Path to server certificate file.",
      "type": "string",
      "example": "cert.pem"
    },
    "privKey": {
      "title": "Private key file",
      "description": "Path to server private key file.",
      "type": "string",
      "example": "privkey.pem"
    }
  }
}
