🔨 修改配置.
This commit is contained in:
BIN
docs/assets/screenshot/alarm-webhook.jpg
Normal file
BIN
docs/assets/screenshot/alarm-webhook.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 950 KiB |
@@ -63,13 +63,15 @@ public interface AutoConfigureOrderConst {
|
||||
|
||||
int FRAMEWORK_JOB = Integer.MIN_VALUE + 2600;
|
||||
|
||||
int FRAMEWORK_JOB_QUARTZ = Integer.MIN_VALUE + 2700;
|
||||
int FRAMEWORK_JOB_QUARTZ = Integer.MIN_VALUE + 2610;
|
||||
|
||||
int FRAMEWORK_JOB_ASYNC = Integer.MIN_VALUE + 2800;
|
||||
int FRAMEWORK_JOB_ASYNC = Integer.MIN_VALUE + 2620;
|
||||
|
||||
int FRAMEWORK_MONITOR = Integer.MIN_VALUE + 2900;
|
||||
int FRAMEWORK_PUSH = Integer.MIN_VALUE + 2700;
|
||||
|
||||
int FRAMEWORK_BIZ_OPERATOR_LOG = Integer.MIN_VALUE + 3000;
|
||||
int FRAMEWORK_BIZ_OPERATOR_LOG = Integer.MIN_VALUE + 7000;
|
||||
|
||||
int FRAMEWORK_MONITOR = Integer.MIN_VALUE + 9000;
|
||||
|
||||
int FRAMEWORK_BANNER = Integer.MIN_VALUE + 10000;
|
||||
|
||||
|
||||
@@ -100,6 +100,12 @@ public interface ErrorMessage {
|
||||
|
||||
String GROUP_ABSENT = "分组不存在";
|
||||
|
||||
String METRICS_ABSENT = "指标不存在";
|
||||
|
||||
String RULE_ABSENT = "规则不存在";
|
||||
|
||||
String ALARM_POLICY_ABSENT = "告警策略不存在";
|
||||
|
||||
String HOST_TYPE_ERROR = "主机类型错误";
|
||||
|
||||
String HOST_NOT_ENABLED = "{} 主机未启用";
|
||||
@@ -132,6 +138,8 @@ public interface ErrorMessage {
|
||||
|
||||
String CURRENT_USER_UNSUPPORTED_OPT = "当前" + USER_UNSUPPORTED_OPT;
|
||||
|
||||
String PUSH_USER_NOT_EMPTY = "推送用户不能为空";
|
||||
|
||||
String PATH_NOT_NORMALIZE = "路径不合法";
|
||||
|
||||
String OPERATE_ERROR = "操作失败";
|
||||
@@ -140,6 +148,8 @@ public interface ErrorMessage {
|
||||
|
||||
String DECRYPT_ERROR = "数据解密失败";
|
||||
|
||||
String GET_REQUEST_URL_ERROR = "获取请求路径失败";
|
||||
|
||||
String UNKNOWN_TYPE = "未知类型";
|
||||
|
||||
String ERROR_TYPE = "错误的类型";
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package org.dromara.visor.common.entity;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 推送用户
|
||||
*
|
||||
* @author Jiahang Li
|
||||
* @version 1.0.0
|
||||
* @since 2025/9/18 21:46
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Schema(name = "PushUser", description = "推送用户")
|
||||
public class PushUser implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "用户id")
|
||||
private Long id;
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "用户名")
|
||||
private String username;
|
||||
|
||||
@Schema(description = "花名")
|
||||
private String nickname;
|
||||
|
||||
@Schema(description = "手机号")
|
||||
private String mobile;
|
||||
|
||||
@Schema(description = "邮箱")
|
||||
private String email;
|
||||
|
||||
}
|
||||
@@ -18,7 +18,7 @@
|
||||
<spring.boot.version>2.7.17</spring.boot.version>
|
||||
<spring.boot.admin.version>2.7.15</spring.boot.admin.version>
|
||||
<flatten.maven.plugin.version>1.5.0</flatten.maven.plugin.version>
|
||||
<orion.kit.version>2.0.2</orion.kit.version>
|
||||
<orion.kit.version>2.0.3</orion.kit.version>
|
||||
<aspectj.version>1.9.7</aspectj.version>
|
||||
<lombok.version>1.18.26</lombok.version>
|
||||
<springdoc.version>1.6.15</springdoc.version>
|
||||
@@ -156,6 +156,11 @@
|
||||
<artifactId>orion-visor-spring-boot-starter-influxdb</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.dromara.visor</groupId>
|
||||
<artifactId>orion-visor-spring-boot-starter-biz-push</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.dromara.visor</groupId>
|
||||
<artifactId>orion-visor-spring-boot-starter-biz-operator-log</artifactId>
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
<module>orion-visor-spring-boot-starter-monitor</module>
|
||||
<module>orion-visor-spring-boot-starter-test</module>
|
||||
<module>orion-visor-spring-boot-starter-influxdb</module>
|
||||
<module>orion-visor-spring-boot-starter-biz-push</module>
|
||||
<module>orion-visor-spring-boot-starter-biz-operator-log</module>
|
||||
</modules>
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ DELETE FROM exec_host_log WHERE deleted = 1;
|
||||
DELETE FROM terminal_connect_log WHERE deleted = 1;
|
||||
DELETE FROM upload_task WHERE deleted = 1;
|
||||
DELETE FROM upload_task_file WHERE deleted = 1;
|
||||
DELETE FROM monitor_alarm_event WHERE deleted = 1;
|
||||
|
||||
-- 修改连接日志状态
|
||||
UPDATE terminal_connect_log l SET status = 'COMPLETE', end_time = l.start_time WHERE status = 'CONNECTING';
|
||||
|
||||
Reference in New Issue
Block a user