112 lines
2.6 KiB
YAML
112 lines
2.6 KiB
YAML
{
|
|
"apiVersion": "hub.example.com/v1alpha1",
|
|
"kind": "ToolManifest",
|
|
"metadata": {
|
|
"name": "Deployment Project Status",
|
|
"slug": "deployment-project-status"
|
|
},
|
|
"spec": {
|
|
"canonicalName": "deployment.project.status",
|
|
"version": "1.0.0",
|
|
"connectorType": "deployment",
|
|
"description": "Return read-only deployment revision and service health for the current project.",
|
|
"riskClass": "R1",
|
|
"readOnly": true,
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {},
|
|
"required": []
|
|
},
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"deploymentRef": {
|
|
"type": "string",
|
|
"pattern": "^[a-z0-9][a-z0-9-]{0,127}$"
|
|
},
|
|
"revision": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"maxLength": 200
|
|
},
|
|
"sourceCommit": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"maxLength": 100
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"healthy",
|
|
"degraded",
|
|
"unavailable",
|
|
"unknown"
|
|
]
|
|
},
|
|
"services": {
|
|
"type": "array",
|
|
"maxItems": 100,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"containerRef": {
|
|
"type": "string",
|
|
"pattern": "^[a-z0-9][a-z0-9-]{0,127}$"
|
|
},
|
|
"state": {
|
|
"type": "string",
|
|
"maxLength": 100
|
|
},
|
|
"health": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"maxLength": 100
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"containerRef",
|
|
"state",
|
|
"health"
|
|
]
|
|
}
|
|
},
|
|
"generatedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"required": [
|
|
"deploymentRef",
|
|
"revision",
|
|
"sourceCommit",
|
|
"status",
|
|
"services",
|
|
"generatedAt"
|
|
]
|
|
},
|
|
"limits": {
|
|
"timeoutMs": 10000,
|
|
"maxOutputBytes": 262144,
|
|
"maxItems": 100
|
|
},
|
|
"redactionProfile": "metadata",
|
|
"requiredScopes": [
|
|
"project:{project}:read"
|
|
]
|
|
}
|
|
}
|