2024-04-17 21:06:43 +01:00
|
|
|
package xyz.mcutils.models.mojang;
|
|
|
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.Getter;
|
2024-04-17 21:22:33 +01:00
|
|
|
import lombok.ToString;
|
2024-04-17 21:06:43 +01:00
|
|
|
import xyz.mcutils.models.CachedResponse;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@AllArgsConstructor
|
2024-04-17 21:22:33 +01:00
|
|
|
@Getter @ToString
|
2024-04-17 21:06:43 +01:00
|
|
|
public class CachedMojangEndpointStatus extends CachedResponse {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The list of endpoints and their status.
|
|
|
|
*/
|
|
|
|
private Map<String, Status> endpoints;
|
|
|
|
|
|
|
|
public enum Status {
|
|
|
|
/**
|
|
|
|
* The service is online and operational.
|
|
|
|
*/
|
|
|
|
ONLINE,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The service is online, but may be experiencing issues.
|
|
|
|
* This could be due to high load or other issues.
|
|
|
|
*/
|
|
|
|
DEGRADED,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The service is offline and not operational.
|
|
|
|
*/
|
|
|
|
OFFLINE
|
|
|
|
}
|
|
|
|
}
|