Files
Backend/src/main/java/xyz/mcutils/backend/model/mojang/EndpointStatus.java

50 lines
939 B
Java
Raw Normal View History

2024-04-17 16:35:52 +01:00
package xyz.mcutils.backend.model.mojang;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
2024-04-17 16:35:52 +01:00
import java.util.Map;
@RequiredArgsConstructor
@Getter @Setter
2024-04-17 16:35:52 +01:00
public class EndpointStatus {
/**
* The name of the service.
2024-04-17 16:35:52 +01:00
*/
private final String name;
2024-04-17 16:35:52 +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
}
}