Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#762] add crud logic for alarm rule
- Loading branch information
1 parent
4d229dc
commit 90f9570
Showing
17 changed files
with
1,073 additions
and
690 deletions.
There are no files selected for viewing
221 changes: 109 additions & 112 deletions
221
web/src/main/java/com/navercorp/pinpoint/web/alarm/vo/Rule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,112 +1,109 @@ | ||
/* | ||
* Copyright 2014 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.navercorp.pinpoint.web.alarm.vo; | ||
|
||
import org.apache.ibatis.type.Alias; | ||
|
||
/** | ||
* @author minwoo.jung | ||
*/ | ||
@Alias(value = "rule") | ||
public class Rule { | ||
|
||
private String id; | ||
private String applicationId; | ||
private String CheckerName; | ||
private Integer threshold; | ||
private String userGroupId; | ||
private boolean smsSend; | ||
private boolean emailSend; | ||
private String notes; | ||
|
||
public Rule() { | ||
} | ||
|
||
public Rule(String applicationId, String checkerName, Integer Threshold, String userGroupId, boolean smsSend, boolean emailSend, String notes) { | ||
this.applicationId = applicationId; | ||
this.CheckerName = checkerName; | ||
this.threshold = Threshold; | ||
this.userGroupId = userGroupId; | ||
this.smsSend = smsSend; | ||
this.emailSend = emailSend; | ||
this.notes = notes; | ||
} | ||
|
||
public String getApplicationId() { | ||
return applicationId; | ||
} | ||
|
||
public void setApplicationId(String applicationId) { | ||
this.applicationId = applicationId; | ||
} | ||
|
||
public String getCheckerName() { | ||
return CheckerName; | ||
} | ||
|
||
public void setCheckerName(String checkerName) { | ||
CheckerName = checkerName; | ||
} | ||
|
||
public Integer getThreshold() { | ||
return threshold; | ||
} | ||
|
||
public void setThreshold(Integer threshold) { | ||
this.threshold = threshold; | ||
} | ||
|
||
public String getUserGroupId() { | ||
return userGroupId; | ||
} | ||
|
||
public void setuserGroupId(String userGroupId) { | ||
this.userGroupId = userGroupId; | ||
} | ||
|
||
public boolean isSmsSend() { | ||
return smsSend; | ||
} | ||
|
||
public void setSmsSend(boolean smsSend) { | ||
this.smsSend = smsSend; | ||
} | ||
|
||
public boolean isEmailSend() { | ||
return emailSend; | ||
} | ||
|
||
public void setEmailSend(boolean emailSend) { | ||
this.emailSend = emailSend; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getNotes() { | ||
return notes; | ||
} | ||
|
||
public void setNotes(String notes) { | ||
this.notes = notes; | ||
} | ||
} | ||
/* | ||
* Copyright 2014 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.navercorp.pinpoint.web.alarm.vo; | ||
|
||
/** | ||
* @author minwoo.jung | ||
*/ | ||
public class Rule { | ||
|
||
private String ruleId; | ||
private String applicationId; | ||
private String CheckerName; | ||
private Integer threshold; | ||
private String userGroupId; | ||
private boolean smsSend; | ||
private boolean emailSend; | ||
private String notes; | ||
|
||
public Rule() { | ||
} | ||
|
||
public Rule(String applicationId, String checkerName, Integer Threshold, String userGroupId, boolean smsSend, boolean emailSend, String notes) { | ||
this.applicationId = applicationId; | ||
this.CheckerName = checkerName; | ||
this.threshold = Threshold; | ||
this.userGroupId = userGroupId; | ||
this.smsSend = smsSend; | ||
this.emailSend = emailSend; | ||
this.notes = notes; | ||
} | ||
|
||
public String getApplicationId() { | ||
return applicationId; | ||
} | ||
|
||
public void setApplicationId(String applicationId) { | ||
this.applicationId = applicationId; | ||
} | ||
|
||
public String getCheckerName() { | ||
return CheckerName; | ||
} | ||
|
||
public void setCheckerName(String checkerName) { | ||
CheckerName = checkerName; | ||
} | ||
|
||
public Integer getThreshold() { | ||
return threshold; | ||
} | ||
|
||
public void setThreshold(Integer threshold) { | ||
this.threshold = threshold; | ||
} | ||
|
||
public String getUserGroupId() { | ||
return userGroupId; | ||
} | ||
|
||
public void setuserGroupId(String userGroupId) { | ||
this.userGroupId = userGroupId; | ||
} | ||
|
||
public boolean isSmsSend() { | ||
return smsSend; | ||
} | ||
|
||
public void setSmsSend(boolean smsSend) { | ||
this.smsSend = smsSend; | ||
} | ||
|
||
public boolean isEmailSend() { | ||
return emailSend; | ||
} | ||
|
||
public void setEmailSend(boolean emailSend) { | ||
this.emailSend = emailSend; | ||
} | ||
|
||
public String getRuleId() { | ||
return ruleId; | ||
} | ||
|
||
public void setRuleId(String ruleId) { | ||
this.ruleId = ruleId; | ||
} | ||
|
||
public String getNotes() { | ||
return notes; | ||
} | ||
|
||
public void setNotes(String notes) { | ||
this.notes = notes; | ||
} | ||
} |
Oops, something went wrong.