UNPKG

@takashito/linode-mcp-server

Version:

MCP server for Linode API

61 lines 2.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createMonitorLogsClient = createMonitorLogsClient; /** * Create a new Monitor Logs client * @param axios - The Axios instance for API calls * @returns A new Monitor Logs client */ function createMonitorLogsClient(axios) { return { async getLogStreams(params) { const response = await axios.get('/monitor/streams', { params }); return response.data; }, async getLogStream(streamId) { const response = await axios.get(`/monitor/streams/${encodeURIComponent(streamId)}`); return response.data; }, async createLogStream(data) { const response = await axios.post('/monitor/streams', data); return response.data; }, async updateLogStream(streamId, data) { const response = await axios.put(`/monitor/streams/${encodeURIComponent(streamId)}`, data); return response.data; }, async deleteLogStream(streamId) { const response = await axios.delete(`/monitor/streams/${encodeURIComponent(streamId)}`); return response.data; }, async getLogStreamHistory(streamId, params) { const response = await axios.get(`/monitor/streams/${encodeURIComponent(streamId)}/history`, { params }); return response.data; }, async getLogDestinations(params) { const response = await axios.get('/monitor/streams/destinations', { params }); return response.data; }, async getLogDestination(destinationId) { const response = await axios.get(`/monitor/streams/destinations/${encodeURIComponent(destinationId)}`); return response.data; }, async createLogDestination(data) { const response = await axios.post('/monitor/streams/destinations', data); return response.data; }, async updateLogDestination(destinationId, data) { const response = await axios.put(`/monitor/streams/destinations/${encodeURIComponent(destinationId)}`, data); return response.data; }, async deleteLogDestination(destinationId) { const response = await axios.delete(`/monitor/streams/destinations/${encodeURIComponent(destinationId)}`); return response.data; }, async getLogDestinationHistory(destinationId, params) { const response = await axios.get(`/monitor/streams/destinations/${encodeURIComponent(destinationId)}/history`, { params }); return response.data; } }; } //# sourceMappingURL=monitorLogs.js.map