Files
dashboardAPI/dependencies/dashboardapi/dashboardapiConfig.json
znetsixe ac3bdd76eb changes
2025-05-26 17:44:56 +02:00

130 lines
3.6 KiB
JSON

{
"general": {
"name": {
"default": "dashboardapi",
"rules": {
"type": "string",
"description": "A human-readable name or label."
}
},
"id": {
"default": null,
"rules": {
"type": "string",
"nullable": true,
"description": "A unique identifier for this configuration. If not provided, defaults to null."
}
},
"unit": {
"default": "N/A",
"rules": {
"type": "string",
"description": "The default measurement unit for this configuration (e.g., 'meters', 'seconds', 'unitless')."
}
},
"logging": {
"logLevel": {
"default": "info",
"rules": {
"type": "enum",
"values": [
{
"value": "debug",
"description": "Log messages are printed for debugging purposes."
},
{
"value": "info",
"description": "Informational messages are printed."
},
{
"value": "warn",
"description": "Warning messages are printed."
},
{
"value": "error",
"description": "Error messages are printed."
}
]
}
},
"enabled": {
"default": true,
"rules": {
"type": "boolean",
"description": "Indicates whether logging is active. If true, log messages will be generated."
}
}
}
},
"functionality": {
"softwareType": {
"default": "dashboardapi",
"rules": {
"type": "string",
"description": "Specified software type for this configuration."
}
},
"role": {
"default": "auto ui generator",
"rules": {
"type": "string",
"description": "Indicates the role this configuration plays within the system."
}
}
},
"grafanaConnector": {
"host": {
"default": "localhost",
"rules": {
"type": "string",
"description": "The host name or IP address of the server."
}
},
"port": {
"default": 3000,
"rules": {
"type": "integer",
"description": "The port number on which the server is listening."
}
},
"protocol": {
"default": "http",
"rules": {
"type": "string",
"description": "The protocol used to communicate with the server."
}
},
"header": {
"default": {},
"rules": {
"type": "object",
"schema":{
"Accept": {
"default": "application/json",
"rules": {
"type": "string",
"description": "Specifies the expected response format for requests using this header."
}
},
"Content-Type":{
"default": "application/json",
"rules": {
"type": "string",
"description": "Specifies the MIME type of the content."
}
}
},
"description": "The header object to be sent with the request."
}
},
"bearerToken": {
"default": null,
"rules": {
"type": "string",
"nullable": true,
"description": "The bearer token to be sent with the request."
}
}
}
}