2024-04-13 20:53:31 +01:00
|
|
|
package xyz.mcutils.backend.common;
|
2024-04-13 15:34:19 +01:00
|
|
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.Getter;
|
|
|
|
import org.springframework.http.HttpStatusCode;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@AllArgsConstructor @Getter
|
|
|
|
public class EndpointStatus {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The endpoint.
|
|
|
|
*/
|
|
|
|
private final String endpoint;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The statuses that indicate that the endpoint is online.
|
|
|
|
*/
|
|
|
|
private final List<HttpStatusCode> allowedStatuses;
|
|
|
|
}
|