// Path: server/src/main/java/com/cloudwise/sap/niping/common/constant/Result.java
// public enum Result {
// 
// 	SUCCESS(1000, "success"),
// 
// 	Error(2000, "error"),
// 	DBError(2001, "database access error."),
// 	ServerError(2002, "server error."),
// 
// 	MonitoridNotMatchError(3001, "monitorId parameter not match error.");
// 
// 	@Getter
// 	private int code;
// 	@Getter
// 	private String message;
// 
// 	Result(int code, String message) {
// 		this.code = code;
// 		this.message = message;
// 	}
// }
// 
// Path: server/src/main/java/com/cloudwise/sap/niping/exception/NiPingException.java
// @Data
// public class NiPingException extends Exception {
//     private int code;
//     private String errorMessage;
// 
//     public NiPingException(Result errorResult) {
//         this.code = errorResult.getCode();
//         this.errorMessage = errorResult.getMessage();
//     }
// }


import com.cloudwise.sap.niping.common.constant.Result;
import com.cloudwise.sap.niping.exception.NiPingException;
import static com.cloudwise.sap.niping.view.ViewTemplateMap.historyPage;
package com.cloudwise.sap.niping.view;



public class HistoryView extends ResultView {
    public HistoryView(Result result, Object data) {
        super(result, data, historyPage.getTemplateName());
    }

// Path: server/src/main/java/com/cloudwise/sap/niping/common/constant/Result.java
// public enum Result {
// 
// 	SUCCESS(1000, "success"),
// 
// 	Error(2000, "error"),
// 	DBError(2001, "database access error."),
// 	ServerError(2002, "server error."),
// 
// 	MonitoridNotMatchError(3001, "monitorId parameter not match error.");
// 
// 	@Getter
// 	private int code;
// 	@Getter
// 	private String message;
// 
// 	Result(int code, String message) {
// 		this.code = code;
// 		this.message = message;
// 	}
// }
// 
// Path: server/src/main/java/com/cloudwise/sap/niping/exception/NiPingException.java
// @Data
// public class NiPingException extends Exception {
//     private int code;
//     private String errorMessage;
// 
//     public NiPingException(Result errorResult) {
//         this.code = errorResult.getCode();
//         this.errorMessage = errorResult.getMessage();
//     }
// }


// Path: server/src/main/java/com/cloudwise/sap/niping/view/HistoryView.java
import com.cloudwise.sap.niping.common.constant.Result;
import com.cloudwise.sap.niping.exception.NiPingException;
import static com.cloudwise.sap.niping.view.ViewTemplateMap.historyPage;

package com.cloudwise.sap.niping.view;



public class HistoryView extends ResultView {
    public HistoryView(Result result, Object data) {
        super(result, data, historyPage.getTemplateName());
    }

    public HistoryView(NiPingException exception, Object data) {