2024-04-17 16:35:52 +01:00
|
|
|
package xyz.mcutils.backend.model.mojang;
|
|
|
|
|
2024-04-19 20:46:30 +01:00
|
|
|
import lombok.*;
|
2024-04-17 16:35:52 +01:00
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
2024-04-19 17:21:10 +01:00
|
|
|
@RequiredArgsConstructor
|
2024-04-19 20:46:30 +01:00
|
|
|
@Getter @Setter @EqualsAndHashCode
|
2024-04-17 16:35:52 +01:00
|
|
|
public class EndpointStatus {
|
|
|
|
|
|
|
|
/**
|
2024-04-19 17:21:10 +01:00
|
|
|
* The name of the service.
|
2024-04-17 16:35:52 +01:00
|
|
|
*/
|
2024-04-19 17:21:10 +01:00
|
|
|
private final String name;
|
2024-04-17 16:35:52 +01:00
|
|
|
|
2024-04-19 17:21:10 +01:00
|
|
|
/**
|
|
|
|
* The hostname of the service.
|
|
|
|
*/
|
|
|
|
private final String hostname;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The status of the service.
|
|
|
|
*/
|
|
|
|
private Status status;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Statuses for the endpoint.
|
|
|
|
*/
|
2024-04-17 16:35:52 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|