public static ServerHealthState warning(String message, String description, HealthStateType healthStateType, Timeout timeout) { return new ServerHealthState(HealthStateLevel.WARNING, healthStateType, message, description, timeout); }
public static ServerHealthState warningWithHtml(String message, String description, HealthStateType stateType, long milliSeconds) { return new ServerHealthState(HealthStateLevel.WARNING, stateType, message, description, milliSeconds); }
public static ServerHealthState success(HealthStateType type) { return new ServerHealthState(HealthStateLevel.OK, type); }
public static ServerHealthState warningWithHtml(String message, String description, HealthStateType stateType) { return new ServerHealthState(HealthStateLevel.WARNING, stateType, message, description); }
public static ServerHealthState failedToScheduleStage(HealthStateType healthStateType, String pipelineName, String stageName, String description) { String message = String.format("Failed to trigger stage [%s] pipeline [%s]", stageName, pipelineName); return new ServerHealthState(HealthStateLevel.ERROR, healthStateType, message, description, Timeout.TWO_MINUTES); }
public static ServerHealthState failToScheduling(HealthStateType healthStateType, String pipelineName, String description) { String message = String.format("Failed to trigger pipeline [%s]", pipelineName); return new ServerHealthState(HealthStateLevel.ERROR, healthStateType, message, description); }
public static ServerHealthState error(String message, String description, HealthStateType type) { return new ServerHealthState(HealthStateLevel.ERROR, type, escapeHtml4(message), escapeHtml4(description)); }
public static ServerHealthState warning(String message, String description, HealthStateType healthStateType, long milliSeconds) { return new ServerHealthState(HealthStateLevel.WARNING, healthStateType, escapeHtml4(message), escapeHtml4(description), milliSeconds); }
public static ServerHealthState warning(String message, String description, HealthStateType healthStateType) { return new ServerHealthState(HealthStateLevel.WARNING, healthStateType, escapeHtml4(message), escapeHtml4(description)); }