feat: add summary dashboard history charts
This commit is contained in:
@@ -37,6 +37,7 @@ protocol AnyServerAPI {
|
||||
func fetchLoadData() async throws -> Any
|
||||
func fetchMemoryData() async throws -> Any
|
||||
func fetchUtilizationData() async throws -> Any
|
||||
func fetchCPUUtilizationPercent(apiKey: String) async throws -> Double
|
||||
func fetchServerSummary(apiKey: String) async throws -> ServerInfo
|
||||
func restartServer(apiKey: String) async throws
|
||||
}
|
||||
@@ -64,6 +65,10 @@ private struct AnyServerAPIWrapper<T: ServerAPIProtocol>: AnyServerAPI {
|
||||
return try await wrapped.fetchUtilization()
|
||||
}
|
||||
|
||||
func fetchCPUUtilizationPercent(apiKey: String) async throws -> Double {
|
||||
return try await wrapped.fetchCPUUtilizationPercent(apiKey: apiKey)
|
||||
}
|
||||
|
||||
func fetchServerSummary(apiKey: String) async throws -> ServerInfo {
|
||||
return try await wrapped.fetchServerSummary(apiKey: apiKey)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user