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

48 lines
934 B
Java
Raw Normal View History

2024-04-17 16:35:52 +01:00
package xyz.mcutils.backend.model.mojang;
2024-04-19 21:00:08 +01:00
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
2024-04-17 16:35:52 +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 {
/**
* 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
}
}