get_resource_health
Check the health status of cloud resources across AWS, Azure, and GCP to monitor instances, storage, databases, and functions for operational issues.
Instructions
Get health status of a cloud resource
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Cloud provider | |
| resourceId | Yes | Resource ID | |
| resourceType | Yes | Resource type |
Implementation Reference
- src/tools/monitoring.ts:110-121 (handler)The handler logic for the 'get_resource_health' tool within the handleMonitoringTool function. It extracts provider, resourceId, and resourceType parameters and returns a placeholder object indicating the health status is unknown as the full implementation is pending.case 'get_resource_health': { const resourceId = params.resourceId as string; const resourceType = params.resourceType as string; return { provider, resourceId, resourceType, health: 'unknown', message: 'Resource health check not yet fully implemented', }; }
- src/tools/monitoring.ts:65-84 (schema)Input schema for the 'get_resource_health' tool, defining required parameters: provider (aws/azure/gcp), resourceId, and resourceType (instance/storage/database/function).inputSchema: { type: 'object', properties: { provider: { type: 'string', enum: ['aws', 'azure', 'gcp'], description: 'Cloud provider', }, resourceId: { type: 'string', description: 'Resource ID', }, resourceType: { type: 'string', enum: ['instance', 'storage', 'database', 'function'], description: 'Resource type', }, }, required: ['provider', 'resourceId', 'resourceType'], },
- src/tools/monitoring.ts:62-86 (registration)Registration of the 'get_resource_health' tool as part of the exported monitoringTools array, including name, description, and input schema.{ name: 'get_resource_health', description: 'Get health status of a cloud resource', inputSchema: { type: 'object', properties: { provider: { type: 'string', enum: ['aws', 'azure', 'gcp'], description: 'Cloud provider', }, resourceId: { type: 'string', description: 'Resource ID', }, resourceType: { type: 'string', enum: ['instance', 'storage', 'database', 'function'], description: 'Resource type', }, }, required: ['provider', 'resourceId', 'resourceType'], }, }, ];
- src/server.ts:74-75 (registration)Main server dispatch logic that checks if the tool name matches any in monitoringTools and routes the call to handleMonitoringTool, which implements get_resource_health.} else if (monitoringTools.some((t) => t.name === name)) { result = await handleMonitoringTool(name, args || {});