UNPKG

@takashito/linode-mcp-server

Version:

MCP server for Linode API

45 lines 1.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createMonitorMetricsClient = createMonitorMetricsClient; /** * Create a new Monitor Metrics client * @param axios - The Axios instance for API calls * @returns A new Monitor Metrics client */ function createMonitorMetricsClient(axios) { return { async listDashboards(params) { const response = await axios.get('/monitor/dashboards', { params }); return response.data; }, async getDashboard(dashboardId) { const response = await axios.get(`/monitor/dashboards/${encodeURIComponent(dashboardId)}`); return response.data; }, async listServices(params) { const response = await axios.get('/monitor/services', { params }); return response.data; }, async getService(serviceType) { const response = await axios.get(`/monitor/services/${encodeURIComponent(serviceType)}`); return response.data; }, async listServiceDashboards(serviceType, params) { const response = await axios.get(`/monitor/services/${encodeURIComponent(serviceType)}/dashboards`, { params }); return response.data; }, async listServiceMetricDefinitions(serviceType) { const response = await axios.get(`/monitor/services/${encodeURIComponent(serviceType)}/metric-definitions`); return response.data; }, async getServiceMetrics(serviceType, data) { const response = await axios.post(`/monitor/services/${encodeURIComponent(serviceType)}/metrics`, data); return response.data; }, async createServiceToken(serviceType) { const response = await axios.post(`/monitor/services/${encodeURIComponent(serviceType)}/token`); return response.data; } }; } //# sourceMappingURL=monitorMetrics.js.map