Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sourceType for subscribe #819

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "alarm_subscribe")
public class AlarmSubscribe {
/**
Expand Down Expand Up @@ -85,216 +87,15 @@ public class AlarmSubscribe {
private String envType;

/**
* 获取id
*
* @return id - id
* 来源类型
*/
public Long getId() {
return id;
}
@Column(name = "source_type")
private String sourceType;

/**
* 设置id
*
* @param id id
* 来源id
*/
public void setId(Long id) {
this.id = id;
}
@Column(name = "source_id")
private Long sourceId;

/**
* 获取创建时间
*
* @return gmt_create - 创建时间
*/
public Date getGmtCreate() {
return gmtCreate;
}

/**
* 设置创建时间
*
* @param gmtCreate 创建时间
*/
public void setGmtCreate(Date gmtCreate) {
this.gmtCreate = gmtCreate;
}

/**
* 获取修改时间
*
* @return gmt_modified - 修改时间
*/
public Date getGmtModified() {
return gmtModified;
}

/**
* 设置修改时间
*
* @param gmtModified 修改时间
*/
public void setGmtModified(Date gmtModified) {
this.gmtModified = gmtModified;
}

/**
* 获取创建者
*
* @return creator - 创建者
*/
public String getCreator() {
return creator;
}

/**
* 设置创建者
*
* @param creator 创建者
*/
public void setCreator(String creator) {
this.creator = creator;
}

/**
* 获取修改者
*
* @return modifier - 修改者
*/
public String getModifier() {
return modifier;
}

/**
* 设置修改者
*
* @param modifier 修改者
*/
public void setModifier(String modifier) {
this.modifier = modifier;
}

/**
* 获取订阅者
*
* @return subscriber - 订阅者
*/
public String getSubscriber() {
return subscriber;
}

/**
* 设置订阅者
*
* @param subscriber 订阅者
*/
public void setSubscriber(String subscriber) {
this.subscriber = subscriber;
}

/**
* 获取订阅组id
*
* @return group_id - 订阅组id
*/
public Long getGroupId() {
return groupId;
}

/**
* 设置订阅组id
*
* @param groupId 订阅组id
*/
public void setGroupId(Long groupId) {
this.groupId = groupId;
}

/**
* 获取告警id
*
* @return unique_id - 告警id
*/
public String getUniqueId() {
return uniqueId;
}

/**
* 设置告警id
*
* @param uniqueId 告警id
*/
public void setUniqueId(String uniqueId) {
this.uniqueId = uniqueId;
}

/**
* 获取通知方式
*
* @return notice_type - 通知方式
*/
public String getNoticeType() {
return noticeType;
}

/**
* 设置通知方式
*
* @param noticeType 通知方式
*/
public void setNoticeType(String noticeType) {
this.noticeType = noticeType;
}

/**
* 获取通知是否生效
*
* @return status - 通知是否生效
*/
public Byte getStatus() {
return status;
}

/**
* 设置通知是否生效
*
* @param status 通知是否生效
*/
public void setStatus(Byte status) {
this.status = status;
}

/**
* 获取租户id
*
* @return tenant - 租户id
*/
public String getTenant() {
return tenant;
}

/**
* 设置租户id
*
* @param tenant 租户id
*/
public void setTenant(String tenant) {
this.tenant = tenant;
}

public String getEnvType() {
return envType;
}

public void setEnvType(String envType) {
this.envType = envType;
}

public String getWorkspace() {
return workspace;
}

public void setWorkspace(String workspace) {
this.workspace = workspace;
}
}
Loading