api.getResourceUsage("server777", "diskioread", "minute");
}
private ServerStatus expectedServerStatus() {
ResourceStatus cpu = ResourceStatus.builder().unit("cores").max(1.0).usage(0.0).build();
ResourceStatus disk = ResourceStatus.builder().unit("MB").usage(0.0).max(5120).build();
ResourceStatus memory = ResourceStatus.builder().unit("MB").usage(2.0).max(512).build();
ServerUptime uptime = ServerUptime.builder().current(21).unit("seconds").build();
return ServerStatus.builder().state(Server.State.RUNNING).uptime(uptime).
cpu(cpu).disk(disk).memory(memory).build();
}