-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[manager, web-app] Support Monitor config export and import (#863)
* [manager] feat support import and export monitor config * [manager] feat support import and export monitor config * [manager] fix import and export button not danger * [manager] fix export response can be void * [web-app] working on export monitor * bugfix get blob error * update import export monitors ui * Optimize import and export * fix PMD check * fix PMD check ---------
- Loading branch information
Showing
18 changed files
with
654 additions
and
100 deletions.
There are no files selected for viewing
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
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
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
66 changes: 66 additions & 0 deletions
66
manager/src/main/java/org/dromara/hertzbeat/manager/service/ImExportService.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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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 org.dromara.hertzbeat.manager.service; | ||
|
||
import java.io.InputStream; | ||
import java.io.OutputStream; | ||
import java.util.List; | ||
|
||
/** | ||
* Configuration Import Export | ||
* 配置导入导出 | ||
* | ||
* @author <a href="mailto:gcwm99@gmail.com">gcdd1993</a> | ||
* Created by gcdd1993 on 2023/3/31 | ||
*/ | ||
public interface ImExportService { | ||
|
||
/** | ||
* Import Configuration | ||
* 导入配置 | ||
* | ||
* @param is 输入流 | ||
*/ | ||
void importConfig(InputStream is); | ||
|
||
/** | ||
* Export Configuration | ||
* 导出配置 | ||
* | ||
* @param os 输出流 | ||
* @param configList 配置列表 | ||
*/ | ||
void exportConfig(OutputStream os, List<Long> configList); | ||
|
||
/** | ||
* Export file type | ||
* 导出文件类型 | ||
* | ||
* @return 文件类型 | ||
*/ | ||
String type(); | ||
|
||
/** | ||
* Get Export File Name | ||
* 获取导出文件名 | ||
* | ||
* @return 文件名 | ||
*/ | ||
String getFileName(); | ||
|
||
} |
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
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
Oops, something went wrong.