import ApiCall from "./ApiCall"; const RESOURCEPATH = "/metrics.json"; export interface MetricsResponse { system_cpu1_active_percentage: string; system_cpu2_active_percentage: string; system_cpu3_active_percentage: string; system_cpu4_active_percentage: string; system_cpu_active_percentage: string; system_disk_total_bytes: string; system_disk_used_bytes: string; system_memory_total_bytes: string; system_memory_used_bytes: string; system_network_received_bytes: string; system_network_sent_bytes: string; kumosearch_memory_active_bytes: string; kumosearch_memory_allocated_bytes: string; kumosearch_memory_fragmentation_ratio: string; kumosearch_memory_mapped_bytes: string; kumosearch_memory_metadata_bytes: string; kumosearch_memory_resident_bytes: string; kumosearch_memory_retained_bytes: string; } export default class Metrics { constructor(private apiCall: ApiCall) {} async retrieve(): Promise { return this.apiCall.get(RESOURCEPATH); } }