Skip to content

Commit

Permalink
[#762] add crud logic for alarm rule
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo-jung committed Aug 5, 2015
1 parent 4d229dc commit 90f9570
Show file tree
Hide file tree
Showing 17 changed files with 1,073 additions and 690 deletions.
221 changes: 109 additions & 112 deletions web/src/main/java/com/navercorp/pinpoint/web/alarm/vo/Rule.java
@@ -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;
}
}

0 comments on commit 90f9570

Please sign in to comment.