import api from './api';

const monitoringService = {
    getAll: () => api.get('/monitoring').then(r => r.data.data),
    getStatistics: () => api.get('/monitoring/statistics').then(r => r.data.data),
    getById: (id) => api.get(`/monitoring/${id}`).then(r => r.data.data),
    delete: (id) => api.delete(`/monitoring/${id}`).then(r => r.data),
};

export default monitoringService;
