106 lines
2.4 KiB
YAML
106 lines
2.4 KiB
YAML
{
|
|
"apiVersion": "hub.example.com/v1alpha1",
|
|
"kind": "ToolManifest",
|
|
"metadata": {
|
|
"name": "Unraid Container Health",
|
|
"slug": "unraid-container-health"
|
|
},
|
|
"spec": {
|
|
"canonicalName": "unraid.container.health",
|
|
"version": "1.0.0",
|
|
"connectorType": "unraid",
|
|
"description": "Return current and recent bounded health state for a registered container.",
|
|
"riskClass": "R1",
|
|
"readOnly": true,
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"containerRef": {
|
|
"type": "string",
|
|
"pattern": "^[a-z0-9][a-z0-9-]{0,127}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"containerRef"
|
|
]
|
|
},
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"containerRef": {
|
|
"type": "string",
|
|
"pattern": "^[a-z0-9][a-z0-9-]{0,127}$"
|
|
},
|
|
"state": {
|
|
"type": "string",
|
|
"maxLength": 100
|
|
},
|
|
"health": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"maxLength": 100
|
|
},
|
|
"failingStreak": {
|
|
"type": [
|
|
"integer",
|
|
"null"
|
|
],
|
|
"minimum": 0
|
|
},
|
|
"lastChecks": {
|
|
"type": "array",
|
|
"maxItems": 10,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"exitCode": {
|
|
"type": "integer"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"maxLength": 1000
|
|
}
|
|
},
|
|
"required": [
|
|
"at",
|
|
"exitCode",
|
|
"summary"
|
|
]
|
|
}
|
|
},
|
|
"generatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"required": [
|
|
"containerRef",
|
|
"state",
|
|
"health",
|
|
"failingStreak",
|
|
"lastChecks",
|
|
"generatedAt"
|
|
]
|
|
},
|
|
"limits": {
|
|
"timeoutMs": 10000,
|
|
"maxOutputBytes": 262144,
|
|
"maxItems": 100
|
|
},
|
|
"redactionProfile": "metadata",
|
|
"requiredScopes": [
|
|
"project:{project}:read"
|
|
]
|
|
}
|
|
}
|