Files
Termix/plugins/host-metrics/manifest.json
T

157 lines
4.0 KiB
JSON

{
"id": "host-metrics",
"name": "Host Metrics",
"version": "1.0.0",
"description": "Live CPU, memory, disk, network and process stats, plus tools to manage services, packages, firewall rules, cron jobs, users and more.",
"author": {
"name": "Termix"
},
"license": "MIT",
"repository": "https://github.com/Termix-SSH/Termix",
"category": "Monitoring",
"icon": "Activity",
"engine": {
"termix": ">=2.9.0",
"api": "1"
},
"capabilities": [
"hosts:read",
"credentials:use",
"credentials:read",
"ssh:connect",
"db:own",
"network:serve",
"ui:surface",
"events:core"
],
"provides": [
{
"service": "host-metrics.viewers",
"version": "1.0.0",
"permission": "host-metrics.use"
}
],
"contributes": {
"tabs": [
{
"id": "host-metrics",
"titleKey": "nav.hostMetrics",
"icon": "Activity",
"openFrom": ["host-context-menu", "palette"]
}
],
"permissions": [
{
"name": "use",
"titleKey": "permissions.use.title",
"descriptionKey": "permissions.use.description",
"defaultRoles": ["admin", "user"]
}
],
"settings": {
"admin": [
{
"key": "metricsInterval",
"type": "number",
"labelKey": "settings.admin.metricsInterval.label",
"descriptionKey": "settings.admin.metricsInterval.description",
"default": 30,
"min": 5,
"max": 3600
},
{
"key": "historyRetentionDays",
"type": "number",
"labelKey": "settings.admin.historyRetentionDays.label",
"descriptionKey": "settings.admin.historyRetentionDays.description",
"default": 7,
"min": 1,
"max": 90
},
{
"key": "enabledForNewHosts",
"type": "boolean",
"labelKey": "settings.admin.enabledForNewHosts.label",
"descriptionKey": "settings.admin.enabledForNewHosts.description",
"default": true
}
],
"user": [
{
"key": "temperatureUnit",
"type": "select",
"labelKey": "settings.user.temperatureUnit.label",
"descriptionKey": "settings.user.temperatureUnit.description",
"default": "celsius",
"options": [
{
"value": "celsius",
"labelKey": "settings.user.temperatureUnit.celsius"
},
{
"value": "fahrenheit",
"labelKey": "settings.user.temperatureUnit.fahrenheit"
}
]
}
],
"host": {
"fields": [
{
"key": "metricsEnabled",
"type": "boolean",
"labelKey": "settings.host.metricsEnabled.label",
"default": true,
"hidden": true
},
{
"key": "metricsInterval",
"type": "number",
"labelKey": "settings.host.metricsInterval.label",
"min": 5,
"max": 3600,
"hidden": true
},
{
"key": "enabledWidgets",
"type": "json",
"labelKey": "settings.host.enabledWidgets.label",
"hidden": true
},
{
"key": "excludedMounts",
"type": "json",
"labelKey": "settings.host.excludedMounts.label",
"hidden": true
},
{
"key": "monitoredMounts",
"type": "json",
"labelKey": "settings.host.monitoredMounts.label",
"hidden": true
}
]
}
},
"actionSlots": [
{
"id": "host-metrics.managers",
"accepts": ["component"]
}
],
"uiPresets": {
"simple": {
"columns": 1
},
"balanced": {
"columns": 3
},
"advanced": {
"columns": 4
}
}
},
"locales": "locales",
"platforms": ["linux", "win32", "darwin"]
}