import { apiClient } from './apiClient'

export const systemService = {
  /**
   * Live Monitor / System Health
   */
  async getHealthStatus() {
    return apiClient('/api/v1/system/health')
  },

  /**
   * Cache Management
   */
  async getCacheStats() {
    return apiClient('/api/v1/system/cache/stats')
  },
  
  async clearCache(keyPrefix = '*') {
    return apiClient('/api/v1/system/cache/clear', {
      method: 'POST',
      data: { prefix: keyPrefix }
    })
  },

  /**
   * Experiments Log
   */
  async getExperiments() {
    return apiClient('/api/v1/experiments')
  }
}
