diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AA.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AA.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AA.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AA.java index 05ed2b4d6..54ece8e3b 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AA.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AA.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AB.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AB.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AB.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AB.java index be701eaf7..5ee0354bf 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AB.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AB.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AlertGorupFacade.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AlertGorupFacade.java similarity index 88% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AlertGorupFacade.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AlertGorupFacade.java index 3a041d7f3..f31f59024 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AlertGorupFacade.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AlertGorupFacade.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.service.bo.AlertGroupQryInfo; +import org.apache.ozhera.monitor.service.bo.AlertGroupQryInfo; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AppCapacityAutoAdjustService.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AppCapacityAutoAdjustService.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AppCapacityAutoAdjustService.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AppCapacityAutoAdjustService.java index 8429d0b16..ebbb8b3a7 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/AppCapacityAutoAdjustService.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/AppCapacityAutoAdjustService.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.service.bo.AppCapacityAutoAdjustBo; +import org.apache.ozhera.monitor.service.bo.AppCapacityAutoAdjustBo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/Grafana.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/Grafana.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/Grafana.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/Grafana.java index 6f7e9e008..f0e00875e 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/Grafana.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/Grafana.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; public interface Grafana { String requestGrafana(String group,String title,String area); diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/GrafanaApiService.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/GrafanaApiService.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/GrafanaApiService.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/GrafanaApiService.java index d394fc649..0ed2dabff 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/GrafanaApiService.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/GrafanaApiService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/MiFeiShuService.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/MiFeiShuService.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/MiFeiShuService.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/MiFeiShuService.java index 13902c0bd..86d6fa97b 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/MiFeiShuService.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/MiFeiShuService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/NoticeService.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/NoticeService.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/NoticeService.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/NoticeService.java index cecb27ef6..1d22f3b58 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/NoticeService.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/NoticeService.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.service.bo.CapacityAdjustNoticeParam; +import org.apache.ozhera.monitor.service.bo.CapacityAdjustNoticeParam; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/SendSmsService.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/SendSmsService.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/SendSmsService.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/SendSmsService.java index db0aff9f4..4a933ace0 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/SendSmsService.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/SendSmsService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; public interface SendSmsService { void sendSms(String address, String templateId, String paramJsonStr); diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/AlertGroupQryInfo.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/AlertGroupQryInfo.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/AlertGroupQryInfo.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/AlertGroupQryInfo.java index 871d4d317..f4a9e6909 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/AlertGroupQryInfo.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/AlertGroupQryInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.bo; +package org.apache.ozhera.monitor.service.bo; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/AppCapacityAutoAdjustBo.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/AppCapacityAutoAdjustBo.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/AppCapacityAutoAdjustBo.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/AppCapacityAutoAdjustBo.java index 95baf4ae7..ae2e46c94 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/AppCapacityAutoAdjustBo.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/AppCapacityAutoAdjustBo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.bo; +package org.apache.ozhera.monitor.service.bo; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustCause.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustCause.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustCause.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustCause.java index 0d7678d61..c633eddbb 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustCause.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustCause.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.bo; +package org.apache.ozhera.monitor.service.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustNoticeParam.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustNoticeParam.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustNoticeParam.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustNoticeParam.java index faa2ef652..c6b43743f 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustNoticeParam.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustNoticeParam.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.bo; +package org.apache.ozhera.monitor.service.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustType.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustType.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustType.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustType.java index d9bb20b93..806c46946 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CapacityAdjustType.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CapacityAdjustType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.bo; +package org.apache.ozhera.monitor.service.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CensusInfo.java b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CensusInfo.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CensusInfo.java rename to ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CensusInfo.java index fc2e3a441..8ad79700b 100644 --- a/ozhera-monitor/ozhera-monitor-api/src/main/java/com/xiaomi/mone/monitor/service/bo/CensusInfo.java +++ b/ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/bo/CensusInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.bo; +package org.apache.ozhera.monitor.service.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/DashboardConstant.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/DashboardConstant.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/DashboardConstant.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/DashboardConstant.java index b0634e498..582e5fc23 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/DashboardConstant.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/DashboardConstant.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor; +package org.apache.ozhera.monitor; import java.util.Arrays; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/ErrorCode.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/ErrorCode.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/ErrorCode.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/ErrorCode.java index b29b2fd2e..e0d871149 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/ErrorCode.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/ErrorCode.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.result; +package org.apache.ozhera.monitor.result; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/ExceptionCode.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/ExceptionCode.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/ExceptionCode.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/ExceptionCode.java index d21f579b3..fc4224428 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/ExceptionCode.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/ExceptionCode.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.result; +package org.apache.ozhera.monitor.result; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/Result.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/Result.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/Result.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/Result.java index 62de69df4..edb09d87c 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/Result.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/Result.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.result; +package org.apache.ozhera.monitor.result; /** diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplateAppType.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplateAppType.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplateAppType.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplateAppType.java index f8f38d7a5..f945bbe59 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplateAppType.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplateAppType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.result; +package org.apache.ozhera.monitor.result; /** * @author zhangxiaowei6 * @date 2022/3/30 diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplateLanguage.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplateLanguage.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplateLanguage.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplateLanguage.java index 5be44896c..d16ba231c 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplateLanguage.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplateLanguage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.result; +package org.apache.ozhera.monitor.result; /** * @author zhangxiaowei6 * @date 2022/3/30 diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplatePlatform.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplatePlatform.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplatePlatform.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplatePlatform.java index 3b587e249..c8531fa5b 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/result/TemplatePlatform.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/result/TemplatePlatform.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.result; +package org.apache.ozhera.monitor.result; /** * @author zhangxiaowei6 * @date 2022/3/30 diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/AesUtil.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/AesUtil.java similarity index 100% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/AesUtil.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/AesUtil.java diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/CommonUtil.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/CommonUtil.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/CommonUtil.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/CommonUtil.java index 352b73034..33c614564 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/CommonUtil.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/CommonUtil.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.utils; +package org.apache.ozhera.monitor.utils; /** * diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/ConstUtil.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/ConstUtil.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/ConstUtil.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/ConstUtil.java index 4f040899c..006d1e553 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/ConstUtil.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/ConstUtil.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.utils; +package org.apache.ozhera.monitor.utils; public class ConstUtil { diff --git a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/FreeMarkerUtil.java b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/FreeMarkerUtil.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/FreeMarkerUtil.java rename to ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/FreeMarkerUtil.java index 749318a44..84d0949f2 100644 --- a/ozhera-monitor/ozhera-monitor-common/src/main/java/com/xiaomi/mone/monitor/utils/FreeMarkerUtil.java +++ b/ozhera-monitor/ozhera-monitor-common/src/main/java/org/apache/ozhera/monitor/utils/FreeMarkerUtil.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.utils; +package org.apache.ozhera.monitor.utils; import com.google.gson.JsonObject; import com.google.gson.JsonParser; @@ -23,7 +23,6 @@ import freemarker.template.TemplateException; import java.io.*; -import java.util.HashMap; import java.util.Map; /** diff --git a/ozhera-monitor/ozhera-monitor-server/pom.xml b/ozhera-monitor/ozhera-monitor-server/pom.xml index 786342c12..ee431143f 100644 --- a/ozhera-monitor/ozhera-monitor-server/pom.xml +++ b/ozhera-monitor/ozhera-monitor-server/pom.xml @@ -82,7 +82,7 @@ spring-boot-maven-plugin 2.7.15 - com.xiaomi.mone.monitor.bootstrap.MiMonitorBootstrap + org.apache.ozhera.monitor.bootstrap.MiMonitorBootstrap diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/aop/HeraRequestMapping.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/aop/HeraRequestMapping.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/aop/HeraRequestMapping.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/aop/HeraRequestMapping.java index 1e03c65b7..8df6727db 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/aop/HeraRequestMapping.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/aop/HeraRequestMapping.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.aop; +package org.apache.ozhera.monitor.aop; -import com.xiaomi.mone.monitor.bo.InterfaceNameEnum; +import org.apache.ozhera.monitor.bo.InterfaceNameEnum; import org.springframework.core.annotation.AliasFor; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/aop/HeraRequestMappingAspect.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/aop/HeraRequestMappingAspect.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/aop/HeraRequestMappingAspect.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/aop/HeraRequestMappingAspect.java index a8f6ca71a..4611d30fc 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/aop/HeraRequestMappingAspect.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/aop/HeraRequestMappingAspect.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.aop; +package org.apache.ozhera.monitor.aop; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingAction; -import com.xiaomi.mone.monitor.service.aop.context.HeraRequestMappingContext; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingAction; +import org.apache.ozhera.monitor.service.aop.context.HeraRequestMappingContext; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/bootstrap/MiMonitorBootstrap.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/bootstrap/MiMonitorBootstrap.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/bootstrap/MiMonitorBootstrap.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/bootstrap/MiMonitorBootstrap.java index 4f74af66c..e84bb9782 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/bootstrap/MiMonitorBootstrap.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/bootstrap/MiMonitorBootstrap.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.bootstrap; +package org.apache.ozhera.monitor.bootstrap; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/BeanConfiguration.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/BeanConfiguration.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/BeanConfiguration.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/BeanConfiguration.java index ccc89a2d9..3b8743f3e 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/BeanConfiguration.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/BeanConfiguration.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/DataSourceConfig.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/DataSourceConfig.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/DataSourceConfig.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/DataSourceConfig.java index 0dae6a4bb..25c904386 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/DataSourceConfig.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/DataSourceConfig.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.github.pagehelper.PageInterceptor; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/DubboConfiguration.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/DubboConfiguration.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/DubboConfiguration.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/DubboConfiguration.java index 7166e7c7b..a7ed4841b 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/DubboConfiguration.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/DubboConfiguration.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import org.apache.dubbo.config.ApplicationConfig; import org.apache.dubbo.config.ProtocolConfig; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/FilterConfiguration.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/FilterConfiguration.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/FilterConfiguration.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/FilterConfiguration.java index 2546b2d57..c2ef11367 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/FilterConfiguration.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/FilterConfiguration.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import com.xiaomi.mone.tpc.login.filter.HttpReqUserFilter; import com.xiaomi.mone.tpc.login.util.ConstUtil; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/RedisConfig.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/RedisConfig.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/RedisConfig.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/RedisConfig.java index 9e24a0ce7..493e38c5a 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/config/RedisConfig.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/config/RedisConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import java.rmi.UnknownHostException; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmAutoConfigController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmAutoConfigController.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmAutoConfigController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmAutoConfigController.java index 850ff0d42..200427fe1 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmAutoConfigController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmAutoConfigController.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AppMonitorService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmController.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmController.java index 281723ea7..0b8e991dd 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmController.java @@ -13,26 +13,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; - -import com.xiaomi.mone.monitor.aop.HeraRequestMapping; -import com.xiaomi.mone.monitor.bo.AlarmAlertLevel; -import com.xiaomi.mone.monitor.bo.AlarmCheckDataCount; -import com.xiaomi.mone.monitor.bo.AlarmSendInterval; -import com.xiaomi.mone.monitor.bo.InterfaceNameEnum; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplate; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AppAlarmService; -import com.xiaomi.mone.monitor.service.alertmanager.AlertServiceAdapt; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionRuleDelete; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionRuleEdit; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionStrategyAdd; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionStrategyEdit; -import com.xiaomi.mone.monitor.service.api.AlarmPresetMetricsService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.*; -import com.xiaomi.mone.monitor.service.user.UserConfigService; +package org.apache.ozhera.monitor.controller; + +import org.apache.ozhera.monitor.aop.HeraRequestMapping; +import org.apache.ozhera.monitor.bo.AlarmAlertLevel; +import org.apache.ozhera.monitor.bo.AlarmCheckDataCount; +import org.apache.ozhera.monitor.bo.AlarmSendInterval; +import org.apache.ozhera.monitor.bo.InterfaceNameEnum; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplate; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AppAlarmService; +import org.apache.ozhera.monitor.service.alertmanager.AlertServiceAdapt; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionRuleDelete; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionRuleEdit; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionStrategyAdd; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionStrategyEdit; +import org.apache.ozhera.monitor.service.api.AlarmPresetMetricsService; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.*; +import org.apache.ozhera.monitor.service.user.UserConfigService; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmStrategyController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmStrategyController.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmStrategyController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmStrategyController.java index ad4784e06..81080619d 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlarmStrategyController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlarmStrategyController.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import com.google.common.collect.Lists; -import com.xiaomi.mone.monitor.aop.HeraRequestMapping; -import com.xiaomi.mone.monitor.bo.AlarmStrategyInfo; -import com.xiaomi.mone.monitor.bo.AlarmStrategyParam; -import com.xiaomi.mone.monitor.bo.AlarmStrategyType; -import com.xiaomi.mone.monitor.bo.InterfaceNameEnum; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlarmStrategyService; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionStrategyDelete; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionStrategyEnable; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.user.UserConfigService; +import org.apache.ozhera.monitor.aop.HeraRequestMapping; +import org.apache.ozhera.monitor.bo.AlarmStrategyInfo; +import org.apache.ozhera.monitor.bo.AlarmStrategyParam; +import org.apache.ozhera.monitor.bo.AlarmStrategyType; +import org.apache.ozhera.monitor.bo.InterfaceNameEnum; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlarmStrategyService; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionStrategyDelete; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionStrategyEnable; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.user.UserConfigService; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlertGroupController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlertGroupController.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlertGroupController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlertGroupController.java index a788c9af5..13a535dc2 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlertGroupController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlertGroupController.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import com.google.gson.Gson; -import com.xiaomi.mone.monitor.aop.HeraRequestMapping; -import com.xiaomi.mone.monitor.bo.AlertGroupInfo; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.InterfaceNameEnum; -import com.xiaomi.mone.monitor.bo.UserInfo; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlertGroupService; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionAlertGroupAdd; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionAlertGroupDelete; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingActionAlertGroupEdit; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.user.UserConfigService; +import org.apache.ozhera.monitor.aop.HeraRequestMapping; +import org.apache.ozhera.monitor.bo.AlertGroupInfo; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.InterfaceNameEnum; +import org.apache.ozhera.monitor.bo.UserInfo; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlertGroupService; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionAlertGroupAdd; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionAlertGroupDelete; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingActionAlertGroupEdit; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.user.UserConfigService; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import com.xiaomi.mone.tpc.login.vo.UserInfoVO; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlertHistoryController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlertHistoryController.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlertHistoryController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlertHistoryController.java index 06a0b473a..40153b005 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AlertHistoryController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AlertHistoryController.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; -import com.xiaomi.mone.monitor.bo.AlertHistory; -import com.xiaomi.mone.monitor.bo.AlertHistoryDetailed; -import com.xiaomi.mone.monitor.bo.AlertHistoryParam; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlertHistoryService; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.AlertHistory; +import org.apache.ozhera.monitor.bo.AlertHistoryDetailed; +import org.apache.ozhera.monitor.bo.AlertHistoryParam; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlertHistoryService; +import org.apache.ozhera.monitor.service.model.PageData; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AppMonitorController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AppMonitorController.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AppMonitorController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AppMonitorController.java index 670982929..58b1362c7 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AppMonitorController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AppMonitorController.java @@ -13,25 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import com.google.common.collect.Lists; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; import org.apache.ozhera.app.api.model.HeraAppRoleModel; -import com.xiaomi.mone.monitor.bo.AppType; -import com.xiaomi.mone.monitor.bo.Pair; -import com.xiaomi.mone.monitor.dao.HeraAppRoleDao; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthQuery; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AppMonitorService; -import com.xiaomi.mone.monitor.service.ComputeTimerService; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; -import com.xiaomi.mone.monitor.service.api.AppMonitorServiceExtension; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; -import com.xiaomi.mone.monitor.service.model.*; -import com.xiaomi.mone.monitor.service.model.redis.AppAlarmData; +import org.apache.ozhera.monitor.bo.AppType; +import org.apache.ozhera.monitor.bo.Pair; +import org.apache.ozhera.monitor.dao.HeraAppRoleDao; +import org.apache.ozhera.monitor.dao.model.AlarmHealthQuery; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.service.ComputeTimerService; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.service.api.AppMonitorServiceExtension; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.service.model.*; +import org.apache.ozhera.monitor.service.model.redis.AppAlarmData; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AuthorizationController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AuthorizationController.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AuthorizationController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AuthorizationController.java index 65e79aa30..71fa793cd 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/AuthorizationController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/AuthorizationController.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import org.apache.ozhera.app.api.service.HeraAuthorizationApi; import org.apache.ozhera.app.common.Result; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/GrafanaMappingController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/GrafanaMappingController.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/GrafanaMappingController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/GrafanaMappingController.java index b32324813..e480df3ed 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/GrafanaMappingController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/GrafanaMappingController.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AppGrafanaMappingService; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AppGrafanaMappingService; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/GrafanaTemplateController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/GrafanaTemplateController.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/GrafanaTemplateController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/GrafanaTemplateController.java index 64330ce5a..7a82366f1 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/GrafanaTemplateController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/GrafanaTemplateController.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; -import com.xiaomi.mone.monitor.service.model.prometheus.CreateTemplateParam; -import com.xiaomi.mone.monitor.service.prometheus.GrafanaTemplateService; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.service.model.prometheus.CreateTemplateParam; +import org.apache.ozhera.monitor.service.prometheus.GrafanaTemplateService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/HeraProjectGroupController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/HeraProjectGroupController.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/HeraProjectGroupController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/HeraProjectGroupController.java index 32c6a54ef..375145bc5 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/HeraProjectGroupController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/HeraProjectGroupController.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import com.google.gson.Gson; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; @@ -22,9 +22,9 @@ import org.apache.ozhera.app.api.model.project.group.ProjectGroupTreeNode; import org.apache.ozhera.app.common.Result; import org.apache.ozhera.app.enums.CommonError; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.service.model.project.group.ProjectGroupRequest; -import com.xiaomi.mone.monitor.service.project.group.ProjectGroupService; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.service.model.project.group.ProjectGroupRequest; +import org.apache.ozhera.monitor.service.project.group.ProjectGroupService; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/PrometheusController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/PrometheusController.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/PrometheusController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/PrometheusController.java index 2febdee44..e4b6d1731 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/PrometheusController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/PrometheusController.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import com.xiaomi.mone.log.api.model.dto.TraceLogDTO; import com.xiaomi.mone.log.api.model.vo.TraceLogQuery; import com.xiaomi.mone.log.api.service.LogDataService; -import com.xiaomi.mone.monitor.controller.model.PromQueryRangeParam; -import com.xiaomi.mone.monitor.controller.model.TimeUnit; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AppAlarmService; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; -import com.xiaomi.mone.monitor.service.extension.MetricDetailService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetailQuery; -import com.xiaomi.mone.monitor.service.model.prometheus.MiLogQuery; -import com.xiaomi.mone.monitor.service.prometheus.AlarmService; -import com.xiaomi.mone.monitor.service.prometheus.MetricSuffix; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; +import org.apache.ozhera.monitor.controller.model.PromQueryRangeParam; +import org.apache.ozhera.monitor.controller.model.TimeUnit; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AppAlarmService; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.service.extension.MetricDetailService; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetailQuery; +import org.apache.ozhera.monitor.service.model.prometheus.MiLogQuery; +import org.apache.ozhera.monitor.service.prometheus.AlarmService; +import org.apache.ozhera.monitor.service.prometheus.MetricSuffix; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.dubbo.config.annotation.Reference; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/QualityMarketController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/QualityMarketController.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/QualityMarketController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/QualityMarketController.java index 4f04fd9b0..1f03de0d9 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/QualityMarketController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/QualityMarketController.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.QualityMarketService; -import com.xiaomi.mone.monitor.service.model.QualityMarketQuery; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.QualityMarketService; +import org.apache.ozhera.monitor.service.model.QualityMarketQuery; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/RulePromQLTemplateController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/RulePromQLTemplateController.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/RulePromQLTemplateController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/RulePromQLTemplateController.java index 20a932b99..284c806dc 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/RulePromQLTemplateController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/RulePromQLTemplateController.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateInfo; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateParam; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.RulePromQLTemplateService; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateInfo; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateParam; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.RulePromQLTemplateService; +import org.apache.ozhera.monitor.service.model.PageData; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/ScrapeJobController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/ScrapeJobController.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/ScrapeJobController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/ScrapeJobController.java index 86dc45db4..fdb373326 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/ScrapeJobController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/ScrapeJobController.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.gson.Gson; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.prometheus.JobService; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.prometheus.JobService; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/ServiceMarketController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/ServiceMarketController.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/ServiceMarketController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/ServiceMarketController.java index e9cca71c6..105ffe984 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/ServiceMarketController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/ServiceMarketController.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.ServiceMarketService; -import com.xiaomi.mone.monitor.service.model.ServiceMarketQuery; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.ServiceMarketService; +import org.apache.ozhera.monitor.service.model.ServiceMarketQuery; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/TestController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/TestController.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/TestController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/TestController.java index 78e9c573c..8e7f8447c 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/TestController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/TestController.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; - -import com.xiaomi.mone.monitor.dao.AppGrafanaMappingDao; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaMapping; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AA; -import com.xiaomi.mone.monitor.service.AppMonitorService; -import com.xiaomi.mone.monitor.service.GrafanaService; -import com.xiaomi.mone.monitor.service.model.AppMonitorRequest; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.prometheus.MetricSuffix; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; +package org.apache.ozhera.monitor.controller; + +import org.apache.ozhera.monitor.dao.AppGrafanaMappingDao; +import org.apache.ozhera.monitor.dao.model.AppGrafanaMapping; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AA; +import org.apache.ozhera.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.service.GrafanaService; +import org.apache.ozhera.monitor.service.model.AppMonitorRequest; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.prometheus.MetricSuffix; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import com.xiaomi.youpin.feishu.FeiShu; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/UserController.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/UserController.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/UserController.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/UserController.java index 5d0385c7b..4f24c66f2 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/UserController.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/UserController.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller; +package org.apache.ozhera.monitor.controller; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.UserInfo; -import com.xiaomi.mone.monitor.service.user.LocalUser; -import com.xiaomi.mone.monitor.service.user.UseDetailInfo; -import com.xiaomi.mone.monitor.service.user.UserConfigService; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.UserInfo; +import org.apache.ozhera.monitor.service.user.LocalUser; +import org.apache.ozhera.monitor.service.user.UseDetailInfo; +import org.apache.ozhera.monitor.service.user.UserConfigService; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/model/PromQueryRangeParam.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/model/PromQueryRangeParam.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/model/PromQueryRangeParam.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/model/PromQueryRangeParam.java index 73b041474..4e86405e5 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/model/PromQueryRangeParam.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/model/PromQueryRangeParam.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller.model; +package org.apache.ozhera.monitor.controller.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/model/TimeUnit.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/model/TimeUnit.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/model/TimeUnit.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/model/TimeUnit.java index c8a84346e..581d6f68f 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/controller/model/TimeUnit.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/controller/model/TimeUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.controller.model; +package org.apache.ozhera.monitor.controller.model; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/filter/AuthorizationFilter.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/filter/AuthorizationFilter.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/filter/AuthorizationFilter.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/filter/AuthorizationFilter.java index 8d2bb8964..a0cf21def 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/filter/AuthorizationFilter.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/filter/AuthorizationFilter.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.filter; +package org.apache.ozhera.monitor.filter; -import com.xiaomi.mone.monitor.service.user.LocalUser; -import com.xiaomi.mone.monitor.service.user.MoneUserDetailService; -import com.xiaomi.mone.monitor.service.user.UseDetailInfo; +import org.apache.ozhera.monitor.service.user.LocalUser; +import org.apache.ozhera.monitor.service.user.MoneUserDetailService; +import org.apache.ozhera.monitor.service.user.UseDetailInfo; import com.xiaomi.mone.tpc.login.enums.UserTypeEnum; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/listener/ApplicationStartedListener.java b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/listener/ApplicationStartedListener.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/listener/ApplicationStartedListener.java rename to ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/listener/ApplicationStartedListener.java index 3aac4b5d8..9287637a1 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/java/com/xiaomi/mone/monitor/listener/ApplicationStartedListener.java +++ b/ozhera-monitor/ozhera-monitor-server/src/main/java/org/apache/ozhera/monitor/listener/ApplicationStartedListener.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.listener; +package org.apache.ozhera.monitor.listener; -import com.xiaomi.mone.monitor.service.rocketmq.RocketMqHeraMonitorConsumer; +import org.apache.ozhera.monitor.service.rocketmq.RocketMqHeraMonitorConsumer; import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.context.event.ApplicationStartedEvent; diff --git a/ozhera-monitor/ozhera-monitor-server/src/main/resources/META-INF/spring.factories b/ozhera-monitor/ozhera-monitor-server/src/main/resources/META-INF/spring.factories index 3800d9a11..1c75de02a 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/main/resources/META-INF/spring.factories +++ b/ozhera-monitor/ozhera-monitor-server/src/main/resources/META-INF/spring.factories @@ -1 +1 @@ -org.springframework.context.ApplicationListener=com.xiaomi.mone.monitor.listener.ApplicationStartedListener \ No newline at end of file +org.springframework.context.ApplicationListener=listener.org.apache.ozhera.monitor.ApplicationStartedListener \ No newline at end of file diff --git a/ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AlertGroupServiceTest.java b/ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AlertGroupServiceTest.java similarity index 100% rename from ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AlertGroupServiceTest.java rename to ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AlertGroupServiceTest.java diff --git a/ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AlertTest.java b/ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AlertTest.java similarity index 100% rename from ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AlertTest.java rename to ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AlertTest.java diff --git a/ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AppAlarmStrategyDaoImplTest.java b/ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AppAlarmStrategyDaoImplTest.java similarity index 100% rename from ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AppAlarmStrategyDaoImplTest.java rename to ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AppAlarmStrategyDaoImplTest.java diff --git a/ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AppMonitorDaoTest.java b/ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AppMonitorDaoTest.java similarity index 100% rename from ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AppMonitorDaoTest.java rename to ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AppMonitorDaoTest.java diff --git a/ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AppMonitorServiceTest.java b/ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AppMonitorServiceTest.java similarity index 100% rename from ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/AppMonitorServiceTest.java rename to ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/AppMonitorServiceTest.java diff --git a/ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/FreeMarkerTest.java b/ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/FreeMarkerTest.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/FreeMarkerTest.java rename to ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/FreeMarkerTest.java index 05dc59360..daf24429c 100644 --- a/ozhera-monitor/ozhera-monitor-server/src/test/java/com/xiaomi/mone/monitor/FreeMarkerTest.java +++ b/ozhera-monitor/ozhera-monitor-server/src/test/java/org/apache/ozhera/monitor/FreeMarkerTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor; +package org.apache.ozhera.monitor; -import com.xiaomi.mone.monitor.utils.FreeMarkerUtil; +import org.apache.ozhera.monitor.utils.FreeMarkerUtil; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Test; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmAlertLevel.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmAlertLevel.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmAlertLevel.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmAlertLevel.java index aa989e0ef..a99100feb 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmAlertLevel.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmAlertLevel.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import java.util.*; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmCheckDataCount.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmCheckDataCount.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmCheckDataCount.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmCheckDataCount.java index bc93e2571..7e694cdcb 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmCheckDataCount.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmCheckDataCount.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmPresetMetrics.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmPresetMetrics.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmPresetMetrics.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmPresetMetrics.java index 7aac64f78..827a346d9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmPresetMetrics.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmPresetMetrics.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleMetricType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleMetricType.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleMetricType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleMetricType.java index e9187fdd5..e25d59584 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleMetricType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleMetricType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleTemplateType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleTemplateType.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleTemplateType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleTemplateType.java index cbf594778..f793ec1de 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleTemplateType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleTemplateType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleType.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleType.java index 6c2d02e3e..50c4ae49b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmRuleType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmRuleType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmSendInterval.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmSendInterval.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmSendInterval.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmSendInterval.java index b293d74e9..16c6db546 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmSendInterval.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmSendInterval.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyInfo.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyInfo.java index 1ae0b8ce2..ea851b026 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyInfo.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import com.google.gson.Gson; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; import lombok.Data; import lombok.ToString; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyParam.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyParam.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyParam.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyParam.java index 9ebbe243e..24aa3d519 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyParam.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyParam.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java index cef352005..3a440a089 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlarmStrategyType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlarmStrategyType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import java.util.ArrayList; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertGroupInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertGroupInfo.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertGroupInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertGroupInfo.java index 6600f4738..5556bcd6c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertGroupInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertGroupInfo.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; -import com.xiaomi.mone.monitor.service.model.alarm.duty.DutyInfo; +import org.apache.ozhera.monitor.service.model.alarm.duty.DutyInfo; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertGroupParam.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertGroupParam.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertGroupParam.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertGroupParam.java index 7c1cd31af..918397cb7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertGroupParam.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertGroupParam.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; -import com.xiaomi.mone.monitor.service.model.alarm.duty.DutyInfo; +import org.apache.ozhera.monitor.service.model.alarm.duty.DutyInfo; import lombok.Data; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistory.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistory.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistory.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistory.java index 2a38cfbd4..0d6524e0a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistory.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistoryDetailed.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistoryDetailed.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistoryDetailed.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistoryDetailed.java index a59b3f6d3..2af1a9a31 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistoryDetailed.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistoryDetailed.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistoryParam.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistoryParam.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistoryParam.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistoryParam.java index bfbb5a01b..7f1e9190e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AlertHistoryParam.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AlertHistoryParam.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppLanguage.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppLanguage.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppLanguage.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppLanguage.java index cefcab557..d42a8c540 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppLanguage.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppLanguage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppMonitorConfigType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppMonitorConfigType.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppMonitorConfigType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppMonitorConfigType.java index 89a115988..5a1d868bd 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppMonitorConfigType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppMonitorConfigType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppType.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppType.java index 73a480097..d461f92f5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import java.util.ArrayList; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppViewType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppViewType.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppViewType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppViewType.java index 0b9e11cea..0c4872b86 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppViewType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppViewType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppendLabelType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppendLabelType.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppendLabelType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppendLabelType.java index 71d37b506..86a2197ca 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AppendLabelType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AppendLabelType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AreaType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AreaType.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AreaType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AreaType.java index 9ddf41df4..c2ae0c259 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/AreaType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/AreaType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/BasicUrlType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/BasicUrlType.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/BasicUrlType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/BasicUrlType.java index 477128dcc..351f68550 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/BasicUrlType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/BasicUrlType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import com.google.gson.JsonObject; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/DashboardDTO.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/DashboardDTO.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/DashboardDTO.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/DashboardDTO.java index ba12ff7ff..7f4e03336 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/DashboardDTO.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/DashboardDTO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaApiKeyReq.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaApiKeyReq.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaApiKeyReq.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaApiKeyReq.java index 452dadbd1..73df22449 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaApiKeyReq.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaApiKeyReq.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaApiKeyRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaApiKeyRes.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaApiKeyRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaApiKeyRes.java index 5cdda76bc..d4a3de531 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaApiKeyRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaApiKeyRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaBlackListParam.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaBlackListParam.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaBlackListParam.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaBlackListParam.java index f8e2b4f1a..bda5eccb0 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaBlackListParam.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaBlackListParam.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDashboardRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDashboardRes.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDashboardRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDashboardRes.java index 86ebfb67a..5308b3dc1 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDashboardRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDashboardRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceInnerRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceInnerRes.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceInnerRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceInnerRes.java index 81f075b5c..b8c72779b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceInnerRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceInnerRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceReq.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceReq.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceReq.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceReq.java index ca66aed07..72b390d4f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceReq.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceReq.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceRes.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceRes.java index 21b8fff01..a169521dc 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaCreateDataSourceRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaCreateDataSourceRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaFolderReq.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaFolderReq.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaFolderReq.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaFolderReq.java index 8bca8a90a..4a197748e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaFolderReq.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaFolderReq.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaFolderRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaFolderRes.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaFolderRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaFolderRes.java index 1b7631a33..5c2151248 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaFolderRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaFolderRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaGetDataSourceRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaGetDataSourceRes.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaGetDataSourceRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaGetDataSourceRes.java index c9a565cb4..3612dd724 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaGetDataSourceRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaGetDataSourceRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaGetFolderRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaGetFolderRes.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaGetFolderRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaGetFolderRes.java index 6ef08f562..bc5ebf573 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaGetFolderRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaGetFolderRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaInterfaceRes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaInterfaceRes.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaInterfaceRes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaInterfaceRes.java index 9bd33fd27..51f434bac 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/GrafanaInterfaceRes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/GrafanaInterfaceRes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/HeraReqInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/HeraReqInfo.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/HeraReqInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/HeraReqInfo.java index c0a09975b..62740e3d9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/HeraReqInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/HeraReqInfo.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; import lombok.Builder; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/InterfaceMetricTypes.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/InterfaceMetricTypes.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/InterfaceMetricTypes.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/InterfaceMetricTypes.java index 1ba96c33b..39741a5d5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/InterfaceMetricTypes.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/InterfaceMetricTypes.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/InterfaceNameEnum.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/InterfaceNameEnum.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/InterfaceNameEnum.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/InterfaceNameEnum.java index 54d412e9f..8eaae76b5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/InterfaceNameEnum.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/InterfaceNameEnum.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * zgf1 diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricLabelKind.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricLabelKind.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricLabelKind.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricLabelKind.java index 0b57d3a7c..9466a3396 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricLabelKind.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricLabelKind.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import java.util.*; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricsRule.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricsRule.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricsRule.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricsRule.java index 83c6d3e16..7fe4edae0 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricsRule.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricsRule.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricsUnit.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricsUnit.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricsUnit.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricsUnit.java index 704d00c14..dd068c02d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/MetricsUnit.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/MetricsUnit.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import java.util.*; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ModuleNameEnum.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ModuleNameEnum.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ModuleNameEnum.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ModuleNameEnum.java index fb30dcd3d..812252029 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ModuleNameEnum.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ModuleNameEnum.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author zgf1 diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/OperLogAction.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/OperLogAction.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/OperLogAction.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/OperLogAction.java index c290e2fd4..15f202687 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/OperLogAction.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/OperLogAction.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @project: mimonitor diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/Pair.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/Pair.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/Pair.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/Pair.java index 571ca5022..f29f3d3d7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/Pair.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/Pair.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PlatForm.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PlatForm.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PlatForm.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PlatForm.java index 1d0499068..086df7235 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PlatForm.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PlatForm.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PlatFormType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PlatFormType.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PlatFormType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PlatFormType.java index d22da682b..1ba75eba7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PlatFormType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PlatFormType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PresetMetricLabels.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PresetMetricLabels.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PresetMetricLabels.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PresetMetricLabels.java index 9509b9e88..dceca43ce 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/PresetMetricLabels.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/PresetMetricLabels.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ReqErrorMetrics.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ReqErrorMetrics.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ReqErrorMetrics.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ReqErrorMetrics.java index c6cecaa19..e0daba4be 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ReqErrorMetrics.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ReqErrorMetrics.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ReqSlowMetrics.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ReqSlowMetrics.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ReqSlowMetrics.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ReqSlowMetrics.java index 69b442868..a977b0597 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ReqSlowMetrics.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ReqSlowMetrics.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ResourceUsageMetrics.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ResourceUsageMetrics.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ResourceUsageMetrics.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ResourceUsageMetrics.java index 5c3603cf9..f8393a460 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/ResourceUsageMetrics.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/ResourceUsageMetrics.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RulePromQLTemplateInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RulePromQLTemplateInfo.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RulePromQLTemplateInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RulePromQLTemplateInfo.java index 000eec577..baf2f9eb5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RulePromQLTemplateInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RulePromQLTemplateInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RulePromQLTemplateParam.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RulePromQLTemplateParam.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RulePromQLTemplateParam.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RulePromQLTemplateParam.java index 2d5c348dd..b96c4fd76 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RulePromQLTemplateParam.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RulePromQLTemplateParam.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RuleStatusType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RuleStatusType.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RuleStatusType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RuleStatusType.java index ff73a9b92..2a3916669 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/RuleStatusType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/RuleStatusType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/SendAlertGroupKey.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/SendAlertGroupKey.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/SendAlertGroupKey.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/SendAlertGroupKey.java index d800c1702..5963bc028 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/SendAlertGroupKey.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/SendAlertGroupKey.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import java.util.ArrayList; import java.util.LinkedHashMap; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/Triple.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/Triple.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/Triple.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/Triple.java index fab376808..261a0dfdf 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/Triple.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/Triple.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/UserInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/UserInfo.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/UserInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/UserInfo.java index 2e3b9320a..c3b86ba9f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/UserInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/UserInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/serviceMarketType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/serviceMarketType.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/serviceMarketType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/serviceMarketType.java index d48c70340..2c329e5e6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/bo/serviceMarketType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/bo/serviceMarketType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.bo; +package org.apache.ozhera.monitor.bo; /** * @author zhangxiaowei diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/MqConfig.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/MqConfig.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/MqConfig.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/MqConfig.java index 64c00185a..c8b4139ac 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/MqConfig.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/MqConfig.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import org.apache.rocketmq.client.exception.MQClientException; import org.apache.rocketmq.client.producer.DefaultMQProducer; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/NacosConfiguration.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/NacosConfiguration.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/NacosConfiguration.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/NacosConfiguration.java index f91b2a18e..ea510d3d5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/NacosConfiguration.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/NacosConfiguration.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import com.alibaba.nacos.api.annotation.NacosProperties; import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/RestTemplateConfig.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/RestTemplateConfig.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/RestTemplateConfig.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/RestTemplateConfig.java index a07227fea..145bbcb83 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/config/RestTemplateConfig.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/config/RestTemplateConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.config; +package org.apache.ozhera.monitor.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AlertGroupDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AlertGroupDao.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AlertGroupDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AlertGroupDao.java index bf8d667f5..93768f75d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AlertGroupDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AlertGroupDao.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; import com.alibaba.nacos.client.naming.utils.CollectionUtils; -import com.xiaomi.mone.monitor.dao.model.AlertGroup; -import com.xiaomi.mone.monitor.dao.model.AlertGroupMember; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.dao.model.AlertGroup; +import org.apache.ozhera.monitor.dao.model.AlertGroupMember; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.nutz.dao.*; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AlertManagerRulesDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AlertManagerRulesDao.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AlertManagerRulesDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AlertManagerRulesDao.java index 7a2ed69a0..f0eafb338 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AlertManagerRulesDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AlertManagerRulesDao.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AlertManagerRulesMapper; -import com.xiaomi.mone.monitor.dao.model.AlertManagerRules; -import com.xiaomi.mone.monitor.dao.model.AlertManagerRulesExample; +import org.apache.ozhera.monitor.dao.mapper.AlertManagerRulesMapper; +import org.apache.ozhera.monitor.dao.model.AlertManagerRules; +import org.apache.ozhera.monitor.dao.model.AlertManagerRulesExample; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmRuleDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmRuleDao.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmRuleDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmRuleDao.java index f76e02e0e..6bf00cd96 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmRuleDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmRuleDao.java @@ -14,13 +14,13 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; import com.google.common.collect.Lists; -import com.xiaomi.mone.monitor.dao.mapper.AppAlarmRuleMapper; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleExample; -import com.xiaomi.mone.monitor.service.model.prometheus.AppWithAlarmRules; +import org.apache.ozhera.monitor.dao.mapper.AppAlarmRuleMapper; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleExample; +import org.apache.ozhera.monitor.service.model.prometheus.AppWithAlarmRules; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmRuleTemplateDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmRuleTemplateDao.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmRuleTemplateDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmRuleTemplateDao.java index f7b72fe3c..22b3538a6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmRuleTemplateDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmRuleTemplateDao.java @@ -14,13 +14,13 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.bo.AlarmStrategyType; -import com.xiaomi.mone.monitor.dao.mapper.AppAlarmRuleTemplateMapper; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplate; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplateExample; -import com.xiaomi.mone.monitor.service.model.prometheus.AppAlarmRuleTemplateQuery; +import org.apache.ozhera.monitor.bo.AlarmStrategyType; +import org.apache.ozhera.monitor.dao.mapper.AppAlarmRuleTemplateMapper; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplate; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplateExample; +import org.apache.ozhera.monitor.service.model.prometheus.AppAlarmRuleTemplateQuery; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmStrategyDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmStrategyDao.java similarity index 86% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmStrategyDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmStrategyDao.java index 726ffdb62..747b679fe 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppAlarmStrategyDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppAlarmStrategyDao.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.bo.AlarmStrategyInfo; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.AlarmStrategyInfo; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.service.model.PageData; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppCapacityAutoAdjustDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppCapacityAutoAdjustDao.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppCapacityAutoAdjustDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppCapacityAutoAdjustDao.java index d479cea0a..e7217e2b6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppCapacityAutoAdjustDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppCapacityAutoAdjustDao.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppCapacityAutoAdjustMapper; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjust; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjustExample; +import org.apache.ozhera.monitor.dao.mapper.AppCapacityAutoAdjustMapper; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjust; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjustExample; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppCapacityAutoAdjustRecordDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppCapacityAutoAdjustRecordDao.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppCapacityAutoAdjustRecordDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppCapacityAutoAdjustRecordDao.java index 428efb3b1..3aa3206de 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppCapacityAutoAdjustRecordDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppCapacityAutoAdjustRecordDao.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppCapacityAutoAdjustRecordMapper; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjustRecord; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjustRecordExample; +import org.apache.ozhera.monitor.dao.mapper.AppCapacityAutoAdjustRecordMapper; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjustRecord; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjustRecordExample; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppGrafanaMappingDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppGrafanaMappingDao.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppGrafanaMappingDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppGrafanaMappingDao.java index 826cc91d2..752212785 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppGrafanaMappingDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppGrafanaMappingDao.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppGrafanaMappingMapper; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaMapping; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaMappingExample; +import org.apache.ozhera.monitor.dao.mapper.AppGrafanaMappingMapper; +import org.apache.ozhera.monitor.dao.model.AppGrafanaMapping; +import org.apache.ozhera.monitor.dao.model.AppGrafanaMappingExample; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppMonitorConfigDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppMonitorConfigDao.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppMonitorConfigDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppMonitorConfigDao.java index 376e7d965..cae0dfe9c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppMonitorConfigDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppMonitorConfigDao.java @@ -14,13 +14,13 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppMonitorConfigMapper; -import com.xiaomi.mone.monitor.dao.model.AppMonitorConfig; -import com.xiaomi.mone.monitor.dao.model.AppMonitorConfigExample; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.dao.mapper.AppMonitorConfigMapper; +import org.apache.ozhera.monitor.dao.model.AppMonitorConfig; +import org.apache.ozhera.monitor.dao.model.AppMonitorConfigExample; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppMonitorDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppMonitorDao.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppMonitorDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppMonitorDao.java index 5f9819ff4..597cc3464 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppMonitorDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppMonitorDao.java @@ -14,17 +14,17 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; -import com.xiaomi.mone.monitor.bo.AppViewType; -import com.xiaomi.mone.monitor.dao.mapper.AppMonitorMapper; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthQuery; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthResult; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.dao.model.AppMonitorExample; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.AppViewType; +import org.apache.ozhera.monitor.dao.mapper.AppMonitorMapper; +import org.apache.ozhera.monitor.dao.model.AlarmHealthQuery; +import org.apache.ozhera.monitor.dao.model.AlarmHealthResult; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.dao.model.AppMonitorExample; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppQualityMarketDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppQualityMarketDao.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppQualityMarketDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppQualityMarketDao.java index 124fb21bb..e9614be6a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppQualityMarketDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppQualityMarketDao.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppQualityMarketMapper; -import com.xiaomi.mone.monitor.dao.model.AppQualityMarket; -import com.xiaomi.mone.monitor.dao.model.AppQualityMarketExample; +import org.apache.ozhera.monitor.dao.mapper.AppQualityMarketMapper; +import org.apache.ozhera.monitor.dao.model.AppQualityMarket; +import org.apache.ozhera.monitor.dao.model.AppQualityMarketExample; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppScrapeJobDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppScrapeJobDao.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppScrapeJobDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppScrapeJobDao.java index 60d1c2d57..fd033b713 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppScrapeJobDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppScrapeJobDao.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppScrapeJobMapper; -import com.xiaomi.mone.monitor.dao.model.AppScrapeJob; -import com.xiaomi.mone.monitor.dao.model.AppScrapeJobExample; +import org.apache.ozhera.monitor.dao.mapper.AppScrapeJobMapper; +import org.apache.ozhera.monitor.dao.model.AppScrapeJob; +import org.apache.ozhera.monitor.dao.model.AppScrapeJobExample; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppServiceMarketDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppServiceMarketDao.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppServiceMarketDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppServiceMarketDao.java index 300a4fed1..a4692ecdf 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/AppServiceMarketDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/AppServiceMarketDao.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppServiceMarketMapper; -import com.xiaomi.mone.monitor.dao.model.AppServiceMarket; -import com.xiaomi.mone.monitor.dao.model.AppServiceMarketExample; +import org.apache.ozhera.monitor.dao.mapper.AppServiceMarketMapper; +import org.apache.ozhera.monitor.dao.model.AppServiceMarket; +import org.apache.ozhera.monitor.dao.model.AppServiceMarketExample; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/GrafanaBlackListDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/GrafanaBlackListDao.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/GrafanaBlackListDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/GrafanaBlackListDao.java index fe2188de4..888435eb5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/GrafanaBlackListDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/GrafanaBlackListDao.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.AppGrafanaBlackListMapper; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaBlackList; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaBlackListExample; +import org.apache.ozhera.monitor.dao.mapper.AppGrafanaBlackListMapper; +import org.apache.ozhera.monitor.dao.model.AppGrafanaBlackList; +import org.apache.ozhera.monitor.dao.model.AppGrafanaBlackListExample; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/GrafanaTemplateDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/GrafanaTemplateDao.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/GrafanaTemplateDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/GrafanaTemplateDao.java index 8b3186e5a..aa3787b8f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/GrafanaTemplateDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/GrafanaTemplateDao.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.GrafanaTemplateMapper; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplateExample; +import org.apache.ozhera.monitor.dao.mapper.GrafanaTemplateMapper; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplateExample; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/HeraAppRoleDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/HeraAppRoleDao.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/HeraAppRoleDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/HeraAppRoleDao.java index e7de1eb86..f3397716a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/HeraAppRoleDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/HeraAppRoleDao.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.mapper.HeraAppRoleMapper; -import com.xiaomi.mone.monitor.dao.model.HeraAppRole; -import com.xiaomi.mone.monitor.dao.model.HeraAppRoleExample; +import org.apache.ozhera.monitor.dao.mapper.HeraAppRoleMapper; +import org.apache.ozhera.monitor.dao.model.HeraAppRole; +import org.apache.ozhera.monitor.dao.model.HeraAppRoleExample; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Repository; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/HeraOperLogDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/HeraOperLogDao.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/HeraOperLogDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/HeraOperLogDao.java index 198bc8727..32be2356c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/HeraOperLogDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/HeraOperLogDao.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; import lombok.extern.slf4j.Slf4j; import org.nutz.dao.Dao; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/RulePromQLTemplateDao.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/RulePromQLTemplateDao.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/RulePromQLTemplateDao.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/RulePromQLTemplateDao.java index 1cffb0e94..a6748ee8c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/RulePromQLTemplateDao.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/RulePromQLTemplateDao.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao; +package org.apache.ozhera.monitor.dao; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateInfo; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateParam; -import com.xiaomi.mone.monitor.dao.model.RulePromQLTemplate; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateInfo; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateParam; +import org.apache.ozhera.monitor.dao.model.RulePromQLTemplate; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.nutz.dao.Cnd; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/impl/AppAlarmStrategyDaoImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/impl/AppAlarmStrategyDaoImpl.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/impl/AppAlarmStrategyDaoImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/impl/AppAlarmStrategyDaoImpl.java index 4f0b9ebbb..1875be069 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/impl/AppAlarmStrategyDaoImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/impl/AppAlarmStrategyDaoImpl.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.impl; +package org.apache.ozhera.monitor.dao.impl; -import com.xiaomi.mone.monitor.bo.AlarmStrategyInfo; -import com.xiaomi.mone.monitor.bo.AlarmStrategyType; -import com.xiaomi.mone.monitor.dao.AppAlarmStrategyDao; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.user.UserConfigService; +import org.apache.ozhera.monitor.bo.AlarmStrategyInfo; +import org.apache.ozhera.monitor.bo.AlarmStrategyType; +import org.apache.ozhera.monitor.dao.AppAlarmStrategyDao; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.user.UserConfigService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.nutz.dao.Cnd; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AlertManagerRulesMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AlertManagerRulesMapper.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AlertManagerRulesMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AlertManagerRulesMapper.java index 4a7d8a92a..0808c931e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AlertManagerRulesMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AlertManagerRulesMapper.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AlertManagerRules; -import com.xiaomi.mone.monitor.dao.model.AlertManagerRulesExample; +import org.apache.ozhera.monitor.dao.model.AlertManagerRules; +import org.apache.ozhera.monitor.dao.model.AlertManagerRulesExample; import org.apache.ibatis.annotations.Param; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleMapper.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleMapper.java index c403b7a78..1c6988f1a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleMapper.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleExample; -import com.xiaomi.mone.monitor.service.model.prometheus.AppWithAlarmRules; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleExample; +import org.apache.ozhera.monitor.service.model.prometheus.AppWithAlarmRules; import org.apache.ibatis.annotations.Param; import javax.annotation.Resource; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleTemplateMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleTemplateMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleTemplateMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleTemplateMapper.java index c558738e0..00eed37ac 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleTemplateMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleTemplateMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplate; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplateExample; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplate; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplateExample; import org.apache.ibatis.annotations.Param; import javax.annotation.Resource; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustMapper.java index 0ec62ef08..d481ac88d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjust; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjustExample; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjust; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjustExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.java index 94468fd3d..7366c333a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjustRecord; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjustRecordExample; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjustRecord; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjustRecordExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaBlackListMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppGrafanaBlackListMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaBlackListMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppGrafanaBlackListMapper.java index 257c4cab4..52f6d8def 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaBlackListMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppGrafanaBlackListMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaBlackList; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaBlackListExample; +import org.apache.ozhera.monitor.dao.model.AppGrafanaBlackList; +import org.apache.ozhera.monitor.dao.model.AppGrafanaBlackListExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaMappingMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppGrafanaMappingMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaMappingMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppGrafanaMappingMapper.java index 674dd09e3..e406daf3d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaMappingMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppGrafanaMappingMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaMapping; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaMappingExample; +import org.apache.ozhera.monitor.dao.model.AppGrafanaMapping; +import org.apache.ozhera.monitor.dao.model.AppGrafanaMappingExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppMonitorConfigMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppMonitorConfigMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppMonitorConfigMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppMonitorConfigMapper.java index 5277073e3..0da89eb6e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppMonitorConfigMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppMonitorConfigMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppMonitorConfig; -import com.xiaomi.mone.monitor.dao.model.AppMonitorConfigExample; +import org.apache.ozhera.monitor.dao.model.AppMonitorConfig; +import org.apache.ozhera.monitor.dao.model.AppMonitorConfigExample; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppMonitorMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppMonitorMapper.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppMonitorMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppMonitorMapper.java index 0450c8bd7..573493a58 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppMonitorMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppMonitorMapper.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthQuery; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthResult; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.dao.model.AppMonitorExample; +import org.apache.ozhera.monitor.dao.model.AlarmHealthQuery; +import org.apache.ozhera.monitor.dao.model.AlarmHealthResult; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.dao.model.AppMonitorExample; import org.apache.ibatis.annotations.Param; import javax.annotation.Resource; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppQualityMarketMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppQualityMarketMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppQualityMarketMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppQualityMarketMapper.java index a047ddf4f..b8f06df27 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppQualityMarketMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppQualityMarketMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppQualityMarket; -import com.xiaomi.mone.monitor.dao.model.AppQualityMarketExample; +import org.apache.ozhera.monitor.dao.model.AppQualityMarket; +import org.apache.ozhera.monitor.dao.model.AppQualityMarketExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppScrapeJobMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppScrapeJobMapper.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppScrapeJobMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppScrapeJobMapper.java index 76dd3182e..6c0ca7d71 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppScrapeJobMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppScrapeJobMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppScrapeJob; -import com.xiaomi.mone.monitor.dao.model.AppScrapeJobExample; +import org.apache.ozhera.monitor.dao.model.AppScrapeJob; +import org.apache.ozhera.monitor.dao.model.AppScrapeJobExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppServiceMarketMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppServiceMarketMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppServiceMarketMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppServiceMarketMapper.java index 473574011..99cfa5223 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/AppServiceMarketMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/AppServiceMarketMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.AppServiceMarket; -import com.xiaomi.mone.monitor.dao.model.AppServiceMarketExample; +import org.apache.ozhera.monitor.dao.model.AppServiceMarket; +import org.apache.ozhera.monitor.dao.model.AppServiceMarketExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/GrafanaTemplateMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/GrafanaTemplateMapper.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/GrafanaTemplateMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/GrafanaTemplateMapper.java index f5a05debe..032ceb3c4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/GrafanaTemplateMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/GrafanaTemplateMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplateExample; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplateExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/HeraAppRoleMapper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/HeraAppRoleMapper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/HeraAppRoleMapper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/HeraAppRoleMapper.java index 467227c40..a28723749 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/mapper/HeraAppRoleMapper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/mapper/HeraAppRoleMapper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.mapper; +package org.apache.ozhera.monitor.dao.mapper; -import com.xiaomi.mone.monitor.dao.model.HeraAppRole; -import com.xiaomi.mone.monitor.dao.model.HeraAppRoleExample; +import org.apache.ozhera.monitor.dao.model.HeraAppRole; +import org.apache.ozhera.monitor.dao.model.HeraAppRoleExample; import java.util.List; import org.apache.ibatis.annotations.Param; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmHealthQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmHealthQuery.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmHealthQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmHealthQuery.java index 589ee8942..be346c65b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmHealthQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmHealthQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmHealthResult.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmHealthResult.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmHealthResult.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmHealthResult.java index 4dd8ad83b..7744c0c26 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmHealthResult.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmHealthResult.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmStrategy.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmStrategy.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmStrategy.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmStrategy.java index b2fd9d95e..618326cff 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlarmStrategy.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlarmStrategy.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertGroup.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertGroup.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertGroup.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertGroup.java index 5c44ac9e6..71f5ed362 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertGroup.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertGroup.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertGroupMember.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertGroupMember.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertGroupMember.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertGroupMember.java index c5ebefebc..6cf080400 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertGroupMember.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertGroupMember.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertManagerRules.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertManagerRules.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertManagerRules.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertManagerRules.java index 7e5b611ab..b619c5913 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertManagerRules.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertManagerRules.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertManagerRulesExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertManagerRulesExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertManagerRulesExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertManagerRulesExample.java index 799697b1f..4afec7643 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AlertManagerRulesExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AlertManagerRulesExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRule.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRule.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRule.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRule.java index 4381b9542..fb8756534 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRule.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRule.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleExample.java index c2548d311..f3b85ed33 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleTemplate.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleTemplate.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleTemplate.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleTemplate.java index c294de3a0..4d9077c5d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleTemplate.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleTemplate.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleTemplateExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleTemplateExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleTemplateExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleTemplateExample.java index b6341b75c..ef76fbcd5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppAlarmRuleTemplateExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppAlarmRuleTemplateExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjust.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjust.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjust.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjust.java index 3393f1c2a..d7499c5e3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjust.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjust.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustExample.java index c863da5d7..863029bd6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustRecord.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustRecord.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustRecord.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustRecord.java index 630dedbb8..4152f30f1 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustRecord.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustRecord.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustRecordExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustRecordExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustRecordExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustRecordExample.java index 9e51c4ce0..9124a686e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppCapacityAutoAdjustRecordExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppCapacityAutoAdjustRecordExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaBlackList.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaBlackList.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaBlackList.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaBlackList.java index 941e02ab0..6ad5d5842 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaBlackList.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaBlackList.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaBlackListExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaBlackListExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaBlackListExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaBlackListExample.java index e7b3398a9..de63e1037 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaBlackListExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaBlackListExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaMapping.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaMapping.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaMapping.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaMapping.java index 528122498..48e473b2d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaMapping.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaMapping.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaMappingExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaMappingExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaMappingExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaMappingExample.java index 04739e52d..0d701b0cf 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppGrafanaMappingExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppGrafanaMappingExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitor.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitor.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitor.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitor.java index c5affb4ef..bdbbaa688 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitor.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorConfig.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorConfig.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorConfig.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorConfig.java index f1e0601e7..ddba1e13c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorConfig.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorConfigExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorConfigExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorConfigExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorConfigExample.java index cf8dbec35..b3a0f151d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorConfigExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorConfigExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorExample.java index 6da55f73b..f02e003b9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppMonitorExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppMonitorExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppQualityMarket.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppQualityMarket.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppQualityMarket.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppQualityMarket.java index 421a75d8d..e6ca46732 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppQualityMarket.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppQualityMarket.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppQualityMarketExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppQualityMarketExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppQualityMarketExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppQualityMarketExample.java index c2015504d..34e48bc80 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppQualityMarketExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppQualityMarketExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppScrapeJob.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppScrapeJob.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppScrapeJob.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppScrapeJob.java index d398fafb9..19f533d1a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppScrapeJob.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppScrapeJob.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppScrapeJobExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppScrapeJobExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppScrapeJobExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppScrapeJobExample.java index 6d1791066..4357d6bdd 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppScrapeJobExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppScrapeJobExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppServiceMarket.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppServiceMarket.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppServiceMarket.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppServiceMarket.java index c1bf14685..1c7d6af9e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppServiceMarket.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppServiceMarket.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppServiceMarketExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppServiceMarketExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppServiceMarketExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppServiceMarketExample.java index c45b57df4..8849a283c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppServiceMarketExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppServiceMarketExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppWithRules.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppWithRules.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppWithRules.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppWithRules.java index 3cc1f5221..a8cd9de23 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/AppWithRules.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/AppWithRules.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/GrafanaTemplate.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/GrafanaTemplate.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/GrafanaTemplate.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/GrafanaTemplate.java index 46ef1a5b4..6d3a68a64 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/GrafanaTemplate.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/GrafanaTemplate.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Arrays; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/GrafanaTemplateExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/GrafanaTemplateExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/GrafanaTemplateExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/GrafanaTemplateExample.java index b74aebf4a..651f61d84 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/GrafanaTemplateExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/GrafanaTemplateExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraAppRole.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraAppRole.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraAppRole.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraAppRole.java index e69be0413..56cd38ddb 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraAppRole.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraAppRole.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraAppRoleExample.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraAppRoleExample.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraAppRoleExample.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraAppRoleExample.java index 852257594..7259918db 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraAppRoleExample.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraAppRoleExample.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import java.util.ArrayList; import java.util.Date; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraOperLog.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraOperLog.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraOperLog.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraOperLog.java index ed525dae8..e980b1636 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/HeraOperLog.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/HeraOperLog.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/PrometheusJob.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/PrometheusJob.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/PrometheusJob.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/PrometheusJob.java index 773511531..a4b3aebab 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/PrometheusJob.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/PrometheusJob.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; public class PrometheusJob { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/RulePromQLTemplate.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/RulePromQLTemplate.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/RulePromQLTemplate.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/RulePromQLTemplate.java index 61d034a14..83a2cb70a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/RulePromQLTemplate.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/RulePromQLTemplate.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/TeslaAlarmHealthResult.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/TeslaAlarmHealthResult.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/TeslaAlarmHealthResult.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/TeslaAlarmHealthResult.java index 8c0a294f8..a720eec1d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/dao/model/TeslaAlarmHealthResult.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/dao/model/TeslaAlarmHealthResult.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.dao.model; +package org.apache.ozhera.monitor.dao.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/enums/BasicAlarmLevel.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/enums/BasicAlarmLevel.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/enums/BasicAlarmLevel.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/enums/BasicAlarmLevel.java index 95520ad54..fb1d46551 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/enums/BasicAlarmLevel.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/enums/BasicAlarmLevel.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.enums; +package org.apache.ozhera.monitor.enums; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/enums/KeyCenterRequestType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/enums/KeyCenterRequestType.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/enums/KeyCenterRequestType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/enums/KeyCenterRequestType.java index fcf580680..df26c99d3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/enums/KeyCenterRequestType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/enums/KeyCenterRequestType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.enums; +package org.apache.ozhera.monitor.enums; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/AlarmPresetMetricsPOJO.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/AlarmPresetMetricsPOJO.java similarity index 83% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/AlarmPresetMetricsPOJO.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/AlarmPresetMetricsPOJO.java index f4d3f4725..2ab414375 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/AlarmPresetMetricsPOJO.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/AlarmPresetMetricsPOJO.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.pojo; +package org.apache.ozhera.monitor.pojo; -import com.xiaomi.mone.monitor.bo.AlarmStrategyType; -import com.xiaomi.mone.monitor.bo.InterfaceMetricTypes; -import com.xiaomi.mone.monitor.bo.MetricsUnit; -import com.xiaomi.mone.monitor.bo.SendAlertGroupKey; +import org.apache.ozhera.monitor.bo.AlarmStrategyType; +import org.apache.ozhera.monitor.bo.InterfaceMetricTypes; +import org.apache.ozhera.monitor.bo.MetricsUnit; +import org.apache.ozhera.monitor.bo.SendAlertGroupKey; import lombok.Data; /** diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/BasicUrlTypePOJO.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/BasicUrlTypePOJO.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/BasicUrlTypePOJO.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/BasicUrlTypePOJO.java index 904b29445..47f952cc4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/BasicUrlTypePOJO.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/BasicUrlTypePOJO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.pojo; +package org.apache.ozhera.monitor.pojo; import com.google.gson.JsonObject; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/MetricLabelKindPOJO.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/MetricLabelKindPOJO.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/MetricLabelKindPOJO.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/MetricLabelKindPOJO.java index 18980cec4..82a44880d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/MetricLabelKindPOJO.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/MetricLabelKindPOJO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.pojo; +package org.apache.ozhera.monitor.pojo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/ReqErrorMetricsPOJO.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/ReqErrorMetricsPOJO.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/ReqErrorMetricsPOJO.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/ReqErrorMetricsPOJO.java index 565269cff..606d4b506 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/ReqErrorMetricsPOJO.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/ReqErrorMetricsPOJO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.pojo; +package org.apache.ozhera.monitor.pojo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/ReqSlowMetricsPOJO.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/ReqSlowMetricsPOJO.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/ReqSlowMetricsPOJO.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/ReqSlowMetricsPOJO.java index af840c372..7d96af843 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/pojo/ReqSlowMetricsPOJO.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/pojo/ReqSlowMetricsPOJO.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.pojo; +package org.apache.ozhera.monitor.pojo; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlarmStrategyService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlarmStrategyService.java similarity index 78% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlarmStrategyService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlarmStrategyService.java index 10b00e349..7240f2784 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlarmStrategyService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlarmStrategyService.java @@ -14,15 +14,15 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.bo.AlarmStrategyInfo; -import com.xiaomi.mone.monitor.bo.AlarmStrategyParam; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleRequest; +import org.apache.ozhera.monitor.bo.AlarmStrategyInfo; +import org.apache.ozhera.monitor.bo.AlarmStrategyParam; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleRequest; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlertGroupService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlertGroupService.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlertGroupService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlertGroupService.java index cd39f8a9d..561008ca8 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlertGroupService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlertGroupService.java @@ -14,13 +14,13 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.bo.AlertGroupInfo; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.UserInfo; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.AlertGroupInfo; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.UserInfo; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; import java.util.List; import java.util.Map; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlertHistoryService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlertHistoryService.java similarity index 76% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlertHistoryService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlertHistoryService.java index f2318479d..f3512000a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AlertHistoryService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AlertHistoryService.java @@ -14,13 +14,13 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.bo.AlertHistory; -import com.xiaomi.mone.monitor.bo.AlertHistoryDetailed; -import com.xiaomi.mone.monitor.bo.AlertHistoryParam; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.AlertHistory; +import org.apache.ozhera.monitor.bo.AlertHistoryDetailed; +import org.apache.ozhera.monitor.bo.AlertHistoryParam; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppAlarmService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppAlarmService.java similarity index 80% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppAlarmService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppAlarmService.java index 5cd100e01..dafb62930 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppAlarmService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppAlarmService.java @@ -14,16 +14,16 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleRequest; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleTemplateRequest; -import com.xiaomi.mone.monitor.service.model.prometheus.AppAlarmRuleTemplateQuery; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleRequest; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleTemplateRequest; +import org.apache.ozhera.monitor.service.model.prometheus.AppAlarmRuleTemplateQuery; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppGrafanaMappingService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppGrafanaMappingService.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppGrafanaMappingService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppGrafanaMappingService.java index 25ea8f81d..74473df6f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppGrafanaMappingService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppGrafanaMappingService.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaMapping; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.dao.model.AppGrafanaMapping; +import org.apache.ozhera.monitor.result.Result; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppMonitorConfigService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppMonitorConfigService.java similarity index 83% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppMonitorConfigService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppMonitorConfigService.java index 1bfea786c..1e7121594 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppMonitorConfigService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppMonitorConfigService.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.dao.model.AppMonitorConfig; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.dao.model.AppMonitorConfig; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppMonitorService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppMonitorService.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppMonitorService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppMonitorService.java index 01fcd251b..c375dd294 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/AppMonitorService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/AppMonitorService.java @@ -14,17 +14,17 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; import org.apache.ozhera.app.api.message.HeraAppInfoModifyMessage; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthQuery; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.AppMonitorModel; -import com.xiaomi.mone.monitor.service.model.AppMonitorRequest; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.ProjectInfo; +import org.apache.ozhera.monitor.dao.model.AlarmHealthQuery; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.AppMonitorModel; +import org.apache.ozhera.monitor.service.model.AppMonitorRequest; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.ProjectInfo; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ComputeTimerService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ComputeTimerService.java similarity index 81% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ComputeTimerService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ComputeTimerService.java index ebad3378f..744fe2e95 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ComputeTimerService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ComputeTimerService.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.AppMonitorRequest; -import com.xiaomi.mone.monitor.service.model.ProjectInfo; -import com.xiaomi.mone.monitor.service.model.redis.AppAlarmData; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.AppMonitorRequest; +import org.apache.ozhera.monitor.service.model.ProjectInfo; +import org.apache.ozhera.monitor.service.model.redis.AppAlarmData; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/GrafanaBlackListService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/GrafanaBlackListService.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/GrafanaBlackListService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/GrafanaBlackListService.java index c7ccceacc..e99922e26 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/GrafanaBlackListService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/GrafanaBlackListService.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; public interface GrafanaBlackListService { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/GrafanaService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/GrafanaService.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/GrafanaService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/GrafanaService.java index 4f7049575..dfee3e81f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/GrafanaService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/GrafanaService.java @@ -14,11 +14,11 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; import com.google.gson.JsonArray; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.service.model.MutiGrafanaResponse; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.service.model.MutiGrafanaResponse; import java.util.List; import java.util.Map; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/HeraBaseInfoService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/HeraBaseInfoService.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/HeraBaseInfoService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/HeraBaseInfoService.java index 674c71c01..d747edc29 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/HeraBaseInfoService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/HeraBaseInfoService.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; import org.apache.ozhera.app.api.model.HeraAppRoleModel; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.HeraAppBaseQuery; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.HeraAppBaseQuery; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/HeraDashboardService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/HeraDashboardService.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/HeraDashboardService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/HeraDashboardService.java index f30980b35..5030bcf9f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/HeraDashboardService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/HeraDashboardService.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.bo.DashboardDTO; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.bo.DashboardDTO; +import org.apache.ozhera.monitor.result.Result; /** * @author zhangxiaowei6 diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/QualityMarketService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/QualityMarketService.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/QualityMarketService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/QualityMarketService.java index 0288d80cc..b8918f992 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/QualityMarketService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/QualityMarketService.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; public interface QualityMarketService { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ResourceUsageService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ResourceUsageService.java similarity index 50% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ResourceUsageService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ResourceUsageService.java index 73a5b7bb8..5e25795bd 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ResourceUsageService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ResourceUsageService.java @@ -13,25 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.alibaba.nacos.api.config.annotation.NacosValue; -import com.google.common.collect.Lists; -import com.xiaomi.mone.monitor.dao.HeraAppRoleDao; -import com.xiaomi.mone.monitor.dao.model.HeraAppRole; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.alertmanager.AlarmExprService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.ResourceUsageMessage; -import com.xiaomi.mone.monitor.service.model.prometheus.Metric; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; -import org.apache.commons.collections.CollectionUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; +import org.apache.ozhera.monitor.service.model.ResourceUsageMessage; -import java.util.ArrayList; import java.util.List; -import java.util.stream.Collectors; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/RulePromQLTemplateService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/RulePromQLTemplateService.java similarity index 83% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/RulePromQLTemplateService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/RulePromQLTemplateService.java index db2c0930b..30be7d276 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/RulePromQLTemplateService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/RulePromQLTemplateService.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateInfo; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateParam; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateInfo; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateParam; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; import java.io.UnsupportedEncodingException; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ServiceMarketService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ServiceMarketService.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ServiceMarketService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ServiceMarketService.java index 9e027a193..4e363de79 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/ServiceMarketService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/ServiceMarketService.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service; +package org.apache.ozhera.monitor.service; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; /** * @author zhangxiaowei6 diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlarmExprService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlarmExprService.java similarity index 83% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlarmExprService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlarmExprService.java index 7faa07d97..2a28a00bf 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlarmExprService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlarmExprService.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.alertmanager; +package org.apache.ozhera.monitor.service.alertmanager; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; import java.util.Map; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlertManager.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlertManager.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlertManager.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlertManager.java index b56c2e767..d0ceca18c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlertManager.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlertManager.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.alertmanager; +package org.apache.ozhera.monitor.service.alertmanager; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.UserInfo; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.alarm.duty.DutyInfo; +import org.apache.ozhera.monitor.bo.UserInfo; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.alarm.duty.DutyInfo; import java.util.List; import java.util.Set; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlertServiceAdapt.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlertServiceAdapt.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlertServiceAdapt.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlertServiceAdapt.java index 02625a4d2..364b6db72 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/AlertServiceAdapt.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/AlertServiceAdapt.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.alertmanager; +package org.apache.ozhera.monitor.service.alertmanager; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.UserInfo; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.alarm.duty.DutyInfo; +import org.apache.ozhera.monitor.bo.UserInfo; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.alarm.duty.DutyInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/impl/AlarmExprServiceOuter.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/impl/AlarmExprServiceOuter.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/impl/AlarmExprServiceOuter.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/impl/AlarmExprServiceOuter.java index 33b51c410..7c7b1be4c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/impl/AlarmExprServiceOuter.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/impl/AlarmExprServiceOuter.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.alertmanager.impl; +package org.apache.ozhera.monitor.service.alertmanager.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.common.collect.Lists; -import com.xiaomi.mone.monitor.bo.AppendLabelType; -import com.xiaomi.mone.monitor.bo.PresetMetricLabels; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.pojo.AlarmPresetMetricsPOJO; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.alertmanager.AlarmExprService; -import com.xiaomi.mone.monitor.service.api.AlarmPresetMetricsService; -import com.xiaomi.mone.monitor.service.api.MetricsLabelKindService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; -import com.xiaomi.mone.monitor.service.model.prometheus.Metric; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; +import org.apache.ozhera.monitor.bo.AppendLabelType; +import org.apache.ozhera.monitor.bo.PresetMetricLabels; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.pojo.AlarmPresetMetricsPOJO; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.alertmanager.AlarmExprService; +import org.apache.ozhera.monitor.service.api.AlarmPresetMetricsService; +import org.apache.ozhera.monitor.service.api.MetricsLabelKindService; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.service.model.prometheus.Metric; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/impl/AlertManagerImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/impl/AlertManagerImpl.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/impl/AlertManagerImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/impl/AlertManagerImpl.java index b1d9b1792..753549bef 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/alertmanager/impl/AlertManagerImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/alertmanager/impl/AlertManagerImpl.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.alertmanager.impl; +package org.apache.ozhera.monitor.service.alertmanager.impl; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.UserInfo; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.alertmanager.AlertManager; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.alarm.duty.DutyInfo; +import org.apache.ozhera.monitor.bo.UserInfo; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.alertmanager.AlertManager; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.alarm.duty.DutyInfo; import com.xiaomi.mone.tpc.api.service.UserFacade; import com.xiaomi.mone.tpc.common.enums.UserStatusEnum; import com.xiaomi.mone.tpc.common.enums.UserTypeEnum; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingAction.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingAction.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingAction.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingAction.java index 0b6bdf7a6..0dde667f8 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingAction.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingAction.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.HeraReqInfo; /** * 通用参数类型 diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupAdd.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupAdd.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupAdd.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupAdd.java index b3c5ed0dd..c7ac20e7e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupAdd.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupAdd.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.AlertGroupInfo; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionAlertGroupHelper; +import org.apache.ozhera.monitor.bo.AlertGroupInfo; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionAlertGroupHelper; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupDelete.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupDelete.java similarity index 83% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupDelete.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupDelete.java index e8670e112..9ff8d287e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupDelete.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupDelete.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.AlertGroupInfo; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.HeraOperLogDao; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionAlertGroupHelper; +import org.apache.ozhera.monitor.bo.AlertGroupInfo; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.HeraOperLogDao; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionAlertGroupHelper; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupEdit.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupEdit.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupEdit.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupEdit.java index 4a034c434..74672172b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionAlertGroupEdit.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionAlertGroupEdit.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.AlertGroupInfo; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.HeraOperLogDao; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionAlertGroupHelper; +import org.apache.ozhera.monitor.bo.AlertGroupInfo; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.HeraOperLogDao; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionAlertGroupHelper; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg0.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg0.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg0.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg0.java index c85bfdb97..f79250c54 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg0.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg0.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.HeraReqInfo; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -28,7 +28,7 @@ public abstract class HeraRequestMappingActionArg0 implements HeraRequestMappingAction{ @Autowired - protected com.xiaomi.mone.monitor.dao.HeraOperLogDao HeraOperLogDao; + protected org.apache.ozhera.monitor.dao.HeraOperLogDao HeraOperLogDao; /** * diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg1.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg1.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg1.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg1.java index 56626d2d9..91b854a45 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg1.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg1.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.HeraReqInfo; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -28,7 +28,7 @@ public abstract class HeraRequestMappingActionArg1 implements HeraRequestMappingAction { @Autowired - protected com.xiaomi.mone.monitor.dao.HeraOperLogDao HeraOperLogDao; + protected org.apache.ozhera.monitor.dao.HeraOperLogDao HeraOperLogDao; /** * diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg2.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg2.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg2.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg2.java index a37fd1c5e..55780eabd 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg2.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg2.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.dao.HeraOperLogDao; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.dao.HeraOperLogDao; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg3.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg3.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg3.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg3.java index 55498dfb4..de566e40f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionArg3.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionArg3.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.HeraReqInfo; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -28,7 +28,7 @@ public abstract class HeraRequestMappingActionArg3 implements HeraRequestMappingAction{ @Autowired - protected com.xiaomi.mone.monitor.dao.HeraOperLogDao HeraOperLogDao; + protected org.apache.ozhera.monitor.dao.HeraOperLogDao HeraOperLogDao; /** * diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionRuleDelete.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionRuleDelete.java similarity index 85% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionRuleDelete.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionRuleDelete.java index cdcdb5057..5c23272a4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionRuleDelete.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionRuleDelete.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.context.HeraRequestMappingContext; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.context.HeraRequestMappingContext; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionRuleEdit.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionRuleEdit.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionRuleEdit.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionRuleEdit.java index 78ac3f784..0187c79a7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionRuleEdit.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionRuleEdit.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyAdd.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyAdd.java similarity index 80% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyAdd.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyAdd.java index 5b95b7778..436495664 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyAdd.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyAdd.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.context.HeraRequestMappingContext; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleRequest; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.context.HeraRequestMappingContext; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleRequest; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyDelete.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyDelete.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyDelete.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyDelete.java index 88770c4de..087c46151 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyDelete.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyDelete.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.AlarmStrategyParam; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; +import org.apache.ozhera.monitor.bo.AlarmStrategyParam; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyEdit.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyEdit.java similarity index 82% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyEdit.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyEdit.java index 0cc8409ca..a5da6f716 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyEdit.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyEdit.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.context.HeraRequestMappingContext; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleRequest; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.context.HeraRequestMappingContext; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleRequest; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyEnable.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyEnable.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyEnable.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyEnable.java index 7683af138..43e0d3324 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/action/HeraRequestMappingActionStrategyEnable.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/action/HeraRequestMappingActionStrategyEnable.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.action; +package org.apache.ozhera.monitor.service.aop.action; -import com.xiaomi.mone.monitor.bo.AlarmStrategyParam; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.bo.OperLogAction; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; +import org.apache.ozhera.monitor.bo.AlarmStrategyParam; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.bo.OperLogAction; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.aop.helper.HeraRequestMappingActionStrategyHelper; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/context/HeraRequestMappingContext.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/context/HeraRequestMappingContext.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/context/HeraRequestMappingContext.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/context/HeraRequestMappingContext.java index a89ace688..070f46816 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/context/HeraRequestMappingContext.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/context/HeraRequestMappingContext.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.context; +package org.apache.ozhera.monitor.service.aop.context; import java.util.HashMap; import java.util.Map; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/helper/HeraRequestMappingActionAlertGroupHelper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/helper/HeraRequestMappingActionAlertGroupHelper.java similarity index 80% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/helper/HeraRequestMappingActionAlertGroupHelper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/helper/HeraRequestMappingActionAlertGroupHelper.java index dc159fa6b..a0864b41a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/helper/HeraRequestMappingActionAlertGroupHelper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/helper/HeraRequestMappingActionAlertGroupHelper.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.helper; +package org.apache.ozhera.monitor.service.aop.helper; -import com.xiaomi.mone.monitor.bo.AlertGroupInfo; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.dao.HeraOperLogDao; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlertGroupService; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingAction; +import org.apache.ozhera.monitor.bo.AlertGroupInfo; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.dao.HeraOperLogDao; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlertGroupService; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingAction; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/helper/HeraRequestMappingActionStrategyHelper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/helper/HeraRequestMappingActionStrategyHelper.java similarity index 85% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/helper/HeraRequestMappingActionStrategyHelper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/helper/HeraRequestMappingActionStrategyHelper.java index 3b9da9804..039268f51 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/aop/helper/HeraRequestMappingActionStrategyHelper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/aop/helper/HeraRequestMappingActionStrategyHelper.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.aop.helper; +package org.apache.ozhera.monitor.service.aop.helper; -import com.xiaomi.mone.monitor.bo.HeraReqInfo; -import com.xiaomi.mone.monitor.dao.AppAlarmRuleDao; -import com.xiaomi.mone.monitor.dao.AppAlarmStrategyDao; -import com.xiaomi.mone.monitor.dao.HeraOperLogDao; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.HeraOperLog; -import com.xiaomi.mone.monitor.service.aop.action.HeraRequestMappingAction; +import org.apache.ozhera.monitor.bo.HeraReqInfo; +import org.apache.ozhera.monitor.dao.AppAlarmRuleDao; +import org.apache.ozhera.monitor.dao.AppAlarmStrategyDao; +import org.apache.ozhera.monitor.dao.HeraOperLogDao; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.HeraOperLog; +import org.apache.ozhera.monitor.service.aop.action.HeraRequestMappingAction; import lombok.extern.slf4j.Slf4j; import org.nutz.json.Json; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlarmPresetMetricsService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlarmPresetMetricsService.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlarmPresetMetricsService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlarmPresetMetricsService.java index f66031753..5f3401a7b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlarmPresetMetricsService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlarmPresetMetricsService.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.bo.MetricsRule; -import com.xiaomi.mone.monitor.pojo.AlarmPresetMetricsPOJO; +import org.apache.ozhera.monitor.bo.MetricsRule; +import org.apache.ozhera.monitor.pojo.AlarmPresetMetricsPOJO; import java.util.List; import java.util.Map; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlarmServiceExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlarmServiceExtension.java similarity index 88% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlarmServiceExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlarmServiceExtension.java index f21baa5f8..ec8452872 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlarmServiceExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlarmServiceExtension.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; public interface AlarmServiceExtension { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlertHelperExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlertHelperExtension.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlertHelperExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlertHelperExtension.java index b6ca13e36..c382241d4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AlertHelperExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AlertHelperExtension.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.dao.model.AppMonitor; public interface AlertHelperExtension { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppAlarmServiceExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppAlarmServiceExtension.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppAlarmServiceExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppAlarmServiceExtension.java index 662838af0..27b55eaed 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppAlarmServiceExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppAlarmServiceExtension.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; public interface AppAlarmServiceExtension { Result queryFunctionList(Integer projectId); diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppGrafanaMappingServiceExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppGrafanaMappingServiceExtension.java similarity index 88% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppGrafanaMappingServiceExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppGrafanaMappingServiceExtension.java index d74be7ecf..3101f7d22 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppGrafanaMappingServiceExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppGrafanaMappingServiceExtension.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; public interface AppGrafanaMappingServiceExtension { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppMonitorServiceExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppMonitorServiceExtension.java similarity index 86% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppMonitorServiceExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppMonitorServiceExtension.java index 401f9ecaa..b4c83dfa8 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/AppMonitorServiceExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/AppMonitorServiceExtension.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; import org.apache.ozhera.app.api.message.HeraAppInfoModifyMessage; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.ProjectInfo; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.ProjectInfo; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ComputeTimerServiceExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ComputeTimerServiceExtension.java similarity index 78% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ComputeTimerServiceExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ComputeTimerServiceExtension.java index 124efb939..703859126 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ComputeTimerServiceExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ComputeTimerServiceExtension.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.service.model.AppMonitorRequest; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricKind; -import com.xiaomi.mone.monitor.service.model.redis.AppAlarmData; +import org.apache.ozhera.monitor.service.model.AppMonitorRequest; +import org.apache.ozhera.monitor.service.model.prometheus.MetricKind; +import org.apache.ozhera.monitor.service.model.redis.AppAlarmData; public interface ComputeTimerServiceExtension { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/EsExtensionService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/EsExtensionService.java similarity index 82% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/EsExtensionService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/EsExtensionService.java index 4bf165db4..8c3ae1d37 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/EsExtensionService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/EsExtensionService.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; import com.xiaomi.mone.es.EsClient; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.middleware.DbInstanceQuery; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetailQuery; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.middleware.DbInstanceQuery; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetailQuery; import java.io.IOException; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/GrafanaServiceExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/GrafanaServiceExtension.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/GrafanaServiceExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/GrafanaServiceExtension.java index a64c9fe9d..8515c7108 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/GrafanaServiceExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/GrafanaServiceExtension.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; import com.google.gson.JsonArray; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.service.model.MutiGrafanaResponse; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.service.model.MutiGrafanaResponse; import java.util.List; import java.util.Map; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/IAMService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/IAMService.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/IAMService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/IAMService.java index b8773c9c5..997c25395 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/IAMService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/IAMService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; import com.xiaomi.mone.tpc.common.param.NodeQryParam; import com.xiaomi.mone.tpc.common.vo.NodeVo; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/MetricsLabelKindService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/MetricsLabelKindService.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/MetricsLabelKindService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/MetricsLabelKindService.java index a84238e7a..5815b4b6a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/MetricsLabelKindService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/MetricsLabelKindService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; /** * @Description diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/PrometheusServiceExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/PrometheusServiceExtension.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/PrometheusServiceExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/PrometheusServiceExtension.java index 503c5dc9f..fcb762d91 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/PrometheusServiceExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/PrometheusServiceExtension.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; /** * @author zhangxiaowei6 diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ReqErrorMetricsService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ReqErrorMetricsService.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ReqErrorMetricsService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ReqErrorMetricsService.java index 5f219d88d..154fc3a3c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ReqErrorMetricsService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ReqErrorMetricsService.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.pojo.ReqErrorMetricsPOJO; +import org.apache.ozhera.monitor.pojo.ReqErrorMetricsPOJO; public interface ReqErrorMetricsService { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ReqSlowMetricsService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ReqSlowMetricsService.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ReqSlowMetricsService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ReqSlowMetricsService.java index d57c31461..d95443c38 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ReqSlowMetricsService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ReqSlowMetricsService.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.pojo.ReqSlowMetricsPOJO; +import org.apache.ozhera.monitor.pojo.ReqSlowMetricsPOJO; public interface ReqSlowMetricsService { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ServiceMarketExtension.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ServiceMarketExtension.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ServiceMarketExtension.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ServiceMarketExtension.java index dd3962f0c..da3265956 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/ServiceMarketExtension.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/ServiceMarketExtension.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; /** * @author zhangxiaowei6 */ diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/TeslaService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/TeslaService.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/TeslaService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/TeslaService.java index 4ad497601..74361737d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/TeslaService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/TeslaService.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api; +package org.apache.ozhera.monitor.service.api; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; public interface TeslaService { diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AlarmPresetMetricsServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AlarmPresetMetricsServiceImpl.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AlarmPresetMetricsServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AlarmPresetMetricsServiceImpl.java index 50f48f5f7..f92615ce3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AlarmPresetMetricsServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AlarmPresetMetricsServiceImpl.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.bo.AlarmPresetMetrics; -import com.xiaomi.mone.monitor.bo.BasicUrlType; -import com.xiaomi.mone.monitor.bo.MetricLabelKind; -import com.xiaomi.mone.monitor.bo.MetricsRule; -import com.xiaomi.mone.monitor.pojo.AlarmPresetMetricsPOJO; -import com.xiaomi.mone.monitor.pojo.BasicUrlTypePOJO; -import com.xiaomi.mone.monitor.service.api.AlarmPresetMetricsService; +import org.apache.ozhera.monitor.bo.AlarmPresetMetrics; +import org.apache.ozhera.monitor.bo.BasicUrlType; +import org.apache.ozhera.monitor.bo.MetricLabelKind; +import org.apache.ozhera.monitor.bo.MetricsRule; +import org.apache.ozhera.monitor.pojo.AlarmPresetMetricsPOJO; +import org.apache.ozhera.monitor.pojo.BasicUrlTypePOJO; +import org.apache.ozhera.monitor.service.api.AlarmPresetMetricsService; import org.apache.commons.lang3.StringUtils; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppAlarmServiceExtensionImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppAlarmServiceExtensionImpl.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppAlarmServiceExtensionImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppAlarmServiceExtensionImpl.java index 0842e618d..d69bed253 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppAlarmServiceExtensionImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppAlarmServiceExtensionImpl.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.AppAlarmServiceExtension; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.AppAlarmServiceExtension; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppGrafanaMappingServiceExtensionImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppGrafanaMappingServiceExtensionImpl.java similarity index 86% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppGrafanaMappingServiceExtensionImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppGrafanaMappingServiceExtensionImpl.java index ac6286fd0..2bcc923fa 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppGrafanaMappingServiceExtensionImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppGrafanaMappingServiceExtensionImpl.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.service.api.AppGrafanaMappingServiceExtension; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.service.api.AppGrafanaMappingServiceExtension; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppMonitorServiceExtensionImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppMonitorServiceExtensionImpl.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppMonitorServiceExtensionImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppMonitorServiceExtensionImpl.java index f986291e6..5c3a7cd13 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/AppMonitorServiceExtensionImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/AppMonitorServiceExtensionImpl.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.gson.Gson; import com.google.gson.JsonArray; import org.apache.ozhera.app.api.message.HeraAppInfoModifyMessage; -import com.xiaomi.mone.monitor.bo.GrafanaInterfaceRes; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.AppMonitorServiceExtension; -import com.xiaomi.mone.monitor.service.model.ProjectInfo; -import com.xiaomi.mone.monitor.utils.FreeMarkerUtil; +import org.apache.ozhera.monitor.bo.GrafanaInterfaceRes; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.AppMonitorServiceExtension; +import org.apache.ozhera.monitor.service.model.ProjectInfo; +import org.apache.ozhera.monitor.utils.FreeMarkerUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ComputeTimerServiceExtensionImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ComputeTimerServiceExtensionImpl.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ComputeTimerServiceExtensionImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ComputeTimerServiceExtensionImpl.java index e5afbc39b..319d22b6f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ComputeTimerServiceExtensionImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ComputeTimerServiceExtensionImpl.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; - -import com.xiaomi.mone.monitor.bo.ReqErrorMetrics; -import com.xiaomi.mone.monitor.bo.ReqSlowMetrics; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.ComputeTimerServiceExtension; -import com.xiaomi.mone.monitor.service.model.AppMonitorRequest; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.Metric; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricKind; -import com.xiaomi.mone.monitor.service.model.redis.AppAlarmData; -import com.xiaomi.mone.monitor.service.prometheus.MetricSuffix; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; +package org.apache.ozhera.monitor.service.api.impl; + +import org.apache.ozhera.monitor.bo.ReqErrorMetrics; +import org.apache.ozhera.monitor.bo.ReqSlowMetrics; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.ComputeTimerServiceExtension; +import org.apache.ozhera.monitor.service.model.AppMonitorRequest; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.Metric; +import org.apache.ozhera.monitor.service.model.prometheus.MetricKind; +import org.apache.ozhera.monitor.service.model.redis.AppAlarmData; +import org.apache.ozhera.monitor.service.prometheus.MetricSuffix; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/GrafanaServiceExtensionImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/GrafanaServiceExtensionImpl.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/GrafanaServiceExtensionImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/GrafanaServiceExtensionImpl.java index 28262493a..c25d34cfd 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/GrafanaServiceExtensionImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/GrafanaServiceExtensionImpl.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.service.api.GrafanaServiceExtension; -import com.xiaomi.mone.monitor.service.model.GrafanaResponse; -import com.xiaomi.mone.monitor.service.model.MutiGrafanaResponse; -import com.xiaomi.mone.monitor.utils.FreeMarkerUtil; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.service.api.GrafanaServiceExtension; +import org.apache.ozhera.monitor.service.model.GrafanaResponse; +import org.apache.ozhera.monitor.service.model.MutiGrafanaResponse; +import org.apache.ozhera.monitor.utils.FreeMarkerUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/IAMServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/IAMServiceImpl.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/IAMServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/IAMServiceImpl.java index 60130f4e0..ee3e8ce2b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/IAMServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/IAMServiceImpl.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.service.api.IAMService; +import org.apache.ozhera.monitor.service.api.IAMService; import com.xiaomi.mone.tpc.common.param.NodeQryParam; import com.xiaomi.mone.tpc.common.vo.NodeVo; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/MetricsLabelKindServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/MetricsLabelKindServiceImpl.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/MetricsLabelKindServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/MetricsLabelKindServiceImpl.java index 8e14d9697..e8370091c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/MetricsLabelKindServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/MetricsLabelKindServiceImpl.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.bo.MetricLabelKind; -import com.xiaomi.mone.monitor.service.api.MetricsLabelKindService; +import org.apache.ozhera.monitor.bo.MetricLabelKind; +import org.apache.ozhera.monitor.service.api.MetricsLabelKindService; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/PrometheusServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/PrometheusServiceImpl.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/PrometheusServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/PrometheusServiceImpl.java index 417b40f1d..8db31995c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/PrometheusServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/PrometheusServiceImpl.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.gson.Gson; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.PrometheusServiceExtension; -import com.xiaomi.mone.monitor.service.http.RestTemplateService; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDataSetVector; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricResponseVector; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.PrometheusServiceExtension; +import org.apache.ozhera.monitor.service.http.RestTemplateService; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDataSetVector; +import org.apache.ozhera.monitor.service.model.prometheus.MetricResponseVector; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ReqErrorMetricsServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ReqErrorMetricsServiceImpl.java similarity index 86% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ReqErrorMetricsServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ReqErrorMetricsServiceImpl.java index b17d60c5d..bb306318e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ReqErrorMetricsServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ReqErrorMetricsServiceImpl.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.bo.AlarmPresetMetrics; -import com.xiaomi.mone.monitor.bo.ReqErrorMetrics; -import com.xiaomi.mone.monitor.pojo.ReqErrorMetricsPOJO; -import com.xiaomi.mone.monitor.service.api.ReqErrorMetricsService; +import org.apache.ozhera.monitor.bo.AlarmPresetMetrics; +import org.apache.ozhera.monitor.bo.ReqErrorMetrics; +import org.apache.ozhera.monitor.pojo.ReqErrorMetricsPOJO; +import org.apache.ozhera.monitor.service.api.ReqErrorMetricsService; import org.apache.commons.lang3.StringUtils; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ReqSlowMetricsServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ReqSlowMetricsServiceImpl.java similarity index 88% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ReqSlowMetricsServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ReqSlowMetricsServiceImpl.java index 46ffa418a..057c1a7d1 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ReqSlowMetricsServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ReqSlowMetricsServiceImpl.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.bo.ReqSlowMetrics; -import com.xiaomi.mone.monitor.pojo.ReqSlowMetricsPOJO; -import com.xiaomi.mone.monitor.service.api.ReqSlowMetricsService; +import org.apache.ozhera.monitor.bo.ReqSlowMetrics; +import org.apache.ozhera.monitor.pojo.ReqSlowMetricsPOJO; +import org.apache.ozhera.monitor.service.api.ReqSlowMetricsService; import org.apache.commons.lang3.StringUtils; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ServiceMarketImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ServiceMarketImpl.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ServiceMarketImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ServiceMarketImpl.java index 3a91399fa..6f7944ea3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/ServiceMarketImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/ServiceMarketImpl.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; -import com.xiaomi.mone.monitor.service.api.ServiceMarketExtension; +import org.apache.ozhera.monitor.service.api.ServiceMarketExtension; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/TeslaServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/TeslaServiceImpl.java similarity index 85% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/TeslaServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/TeslaServiceImpl.java index 951d5544e..127e800dc 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/api/impl/TeslaServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/api/impl/TeslaServiceImpl.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.api.impl; +package org.apache.ozhera.monitor.service.api.impl; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.TeslaService; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.TeslaService; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/doris/DorisSearchService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/doris/DorisSearchService.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/doris/DorisSearchService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/doris/DorisSearchService.java index 6ea76ecf0..b4bd94d00 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/doris/DorisSearchService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/doris/DorisSearchService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.doris; +package org.apache.ozhera.monitor.service.doris; import com.alibaba.nacos.api.config.annotation.NacosValue; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/es/EsExtensionServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/es/EsExtensionServiceImpl.java similarity index 85% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/es/EsExtensionServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/es/EsExtensionServiceImpl.java index 373b02643..92ece9942 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/es/EsExtensionServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/es/EsExtensionServiceImpl.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.es; +package org.apache.ozhera.monitor.service.es; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.xiaomi.mone.es.EsClient; -import com.xiaomi.mone.monitor.DashboardConstant; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.EsExtensionService; -import com.xiaomi.mone.monitor.service.model.middleware.DbInstanceQuery; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetailQuery; +import org.apache.ozhera.monitor.DashboardConstant; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.EsExtensionService; +import org.apache.ozhera.monitor.service.model.middleware.DbInstanceQuery; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetailQuery; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/es/EsService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/es/EsService.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/es/EsService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/es/EsService.java index df53df2ae..f5319192c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/es/EsService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/es/EsService.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.es; +package org.apache.ozhera.monitor.service.es; import com.google.gson.Gson; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.EsExtensionService; -import com.xiaomi.mone.monitor.service.helper.ProjectHelper; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.middleware.DbInstanceQuery; -import com.xiaomi.mone.monitor.service.model.prometheus.EsIndexDataType; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetail; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetailQuery; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.EsExtensionService; +import org.apache.ozhera.monitor.service.helper.ProjectHelper; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.middleware.DbInstanceQuery; +import org.apache.ozhera.monitor.service.model.prometheus.EsIndexDataType; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetail; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetailQuery; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.elasticsearch.action.search.SearchRequest; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/MetricDetailService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/MetricDetailService.java similarity index 80% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/MetricDetailService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/MetricDetailService.java index 06de8e8bd..c59d153c1 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/MetricDetailService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/MetricDetailService.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.extension; +package org.apache.ozhera.monitor.service.extension; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetailQuery; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetailQuery; public interface MetricDetailService { Result metricDetail(MetricDetailQuery param); diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/MetricsExtensionService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/MetricsExtensionService.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/MetricsExtensionService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/MetricsExtensionService.java index bf1b87b43..a52bdc9de 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/MetricsExtensionService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/MetricsExtensionService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.extension; +package org.apache.ozhera.monitor.service.extension; /** * @author shanwb diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/PlatFormTypeExtensionService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/PlatFormTypeExtensionService.java similarity index 88% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/PlatFormTypeExtensionService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/PlatFormTypeExtensionService.java index b7a810ed5..38519201f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/PlatFormTypeExtensionService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/PlatFormTypeExtensionService.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.extension; +package org.apache.ozhera.monitor.service.extension; -import com.xiaomi.mone.monitor.bo.Pair; -import com.xiaomi.mone.monitor.bo.PlatForm; +import org.apache.ozhera.monitor.bo.Pair; +import org.apache.ozhera.monitor.bo.PlatForm; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/MerticDetailServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/MerticDetailServiceImpl.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/MerticDetailServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/MerticDetailServiceImpl.java index 9b3beacee..dbcaba757 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/MerticDetailServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/MerticDetailServiceImpl.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.extension.impl; +package org.apache.ozhera.monitor.service.extension.impl; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; -import com.xiaomi.mone.monitor.service.doris.DorisSearchService; -import com.xiaomi.mone.monitor.service.es.EsService; -import com.xiaomi.mone.monitor.service.extension.MetricDetailService; -import com.xiaomi.mone.monitor.service.helper.ProjectHelper; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.EsIndexDataType; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetail; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDetailQuery; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.service.doris.DorisSearchService; +import org.apache.ozhera.monitor.service.es.EsService; +import org.apache.ozhera.monitor.service.extension.MetricDetailService; +import org.apache.ozhera.monitor.service.helper.ProjectHelper; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.EsIndexDataType; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetail; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDetailQuery; import com.xiaomi.mone.tpc.common.util.GsonUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/MetricsExtensionServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/MetricsExtensionServiceImpl.java similarity index 85% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/MetricsExtensionServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/MetricsExtensionServiceImpl.java index ac941dd30..5098d1977 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/MetricsExtensionServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/MetricsExtensionServiceImpl.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.extension.impl; +package org.apache.ozhera.monitor.service.extension.impl; -import com.xiaomi.mone.monitor.DashboardConstant; -import com.xiaomi.mone.monitor.service.extension.MetricsExtensionService; +import org.apache.ozhera.monitor.DashboardConstant; +import org.apache.ozhera.monitor.service.extension.MetricsExtensionService; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/PlatFormTypeExtensionServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/PlatFormTypeExtensionServiceImpl.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/PlatFormTypeExtensionServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/PlatFormTypeExtensionServiceImpl.java index 6bdbccc82..1998c3110 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/extension/impl/PlatFormTypeExtensionServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/extension/impl/PlatFormTypeExtensionServiceImpl.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.extension.impl; +package org.apache.ozhera.monitor.service.extension.impl; -import com.xiaomi.mone.monitor.bo.Pair; -import com.xiaomi.mone.monitor.bo.PlatForm; -import com.xiaomi.mone.monitor.bo.PlatFormType; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.bo.Pair; +import org.apache.ozhera.monitor.bo.PlatForm; +import org.apache.ozhera.monitor.bo.PlatFormType; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertHelper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertHelper.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertHelper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertHelper.java index 29343ec4a..aad35ff1e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertHelper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertHelper.java @@ -13,25 +13,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.helper; +package org.apache.ozhera.monitor.service.helper; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.*; -import com.xiaomi.mone.monitor.dao.model.AlertGroup; -import com.xiaomi.mone.monitor.dao.model.AlertGroupMember; -import com.xiaomi.mone.monitor.pojo.ReqErrorMetricsPOJO; -import com.xiaomi.mone.monitor.pojo.ReqSlowMetricsPOJO; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.AlertHelperExtension; -import com.xiaomi.mone.monitor.service.api.ReqErrorMetricsService; -import com.xiaomi.mone.monitor.service.api.ReqSlowMetricsService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.alarm.duty.DutyInfo; -import com.xiaomi.mone.monitor.service.prometheus.AlarmService; -import com.xiaomi.mone.monitor.utils.CommonUtil; +import org.apache.ozhera.monitor.bo.*; +import org.apache.ozhera.monitor.dao.model.AlertGroup; +import org.apache.ozhera.monitor.dao.model.AlertGroupMember; +import org.apache.ozhera.monitor.pojo.ReqErrorMetricsPOJO; +import org.apache.ozhera.monitor.pojo.ReqSlowMetricsPOJO; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.AlertHelperExtension; +import org.apache.ozhera.monitor.service.api.ReqErrorMetricsService; +import org.apache.ozhera.monitor.service.api.ReqSlowMetricsService; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.alarm.duty.DutyInfo; +import org.apache.ozhera.monitor.service.prometheus.AlarmService; +import org.apache.ozhera.monitor.utils.CommonUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -352,7 +352,7 @@ public List buildAlertGroupMemberList(JsonElement list) { * @param agList * @return */ - public List buildAlertGroupInfoList(Boolean isAdmin,String user, List agList) { + public List buildAlertGroupInfoList(Boolean isAdmin, String user, List agList) { if (agList == null || agList.isEmpty() ) { return null; } diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertHelperExtensionImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertHelperExtensionImpl.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertHelperExtensionImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertHelperExtensionImpl.java index c576ca092..00fafe7f5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertHelperExtensionImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertHelperExtensionImpl.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.helper; +package org.apache.ozhera.monitor.service.helper; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.BasicUrlType; -import com.xiaomi.mone.monitor.bo.MetricsUnit; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.pojo.AlarmPresetMetricsPOJO; -import com.xiaomi.mone.monitor.service.api.AlarmPresetMetricsService; -import com.xiaomi.mone.monitor.service.api.AlertHelperExtension; -import com.xiaomi.mone.monitor.utils.ConstUtil; +import org.apache.ozhera.monitor.bo.BasicUrlType; +import org.apache.ozhera.monitor.bo.MetricsUnit; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.pojo.AlarmPresetMetricsPOJO; +import org.apache.ozhera.monitor.service.api.AlarmPresetMetricsService; +import org.apache.ozhera.monitor.service.api.AlertHelperExtension; +import org.apache.ozhera.monitor.utils.ConstUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertUrlHelper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertUrlHelper.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertUrlHelper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertUrlHelper.java index 1f60c5416..48e0184c9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/AlertUrlHelper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/AlertUrlHelper.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.helper; +package org.apache.ozhera.monitor.service.helper; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.service.api.AlertHelperExtension; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.service.api.AlertHelperExtension; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/ProjectHelper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/ProjectHelper.java similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/ProjectHelper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/ProjectHelper.java index 5b60fd968..d755afb0a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/ProjectHelper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/ProjectHelper.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.helper; +package org.apache.ozhera.monitor.service.helper; import com.xiaomi.mone.log.api.model.dto.MontorAppDTO; import com.xiaomi.mone.log.api.service.MilogOpenService; -import com.xiaomi.mone.monitor.bo.PlatForm; -import com.xiaomi.mone.monitor.dao.AppMonitorDao; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.bo.PlatForm; +import org.apache.ozhera.monitor.dao.AppMonitorDao; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.dubbo.config.annotation.Reference; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/RedisHelper.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/RedisHelper.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/RedisHelper.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/RedisHelper.java index e87fbd0c6..d5ae34c23 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/helper/RedisHelper.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/helper/RedisHelper.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.helper; +package org.apache.ozhera.monitor.service.helper; import com.google.gson.Gson; -import com.xiaomi.mone.monitor.service.model.redis.AppAlarmData; +import org.apache.ozhera.monitor.service.model.redis.AppAlarmData; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/MoneSpec.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/MoneSpec.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/MoneSpec.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/MoneSpec.java index 8a3c86557..84b41bfd8 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/MoneSpec.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/MoneSpec.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.http; +package org.apache.ozhera.monitor.service.http; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/RequestParam.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/RequestParam.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/RequestParam.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/RequestParam.java index caec7a4ed..56d92ba4c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/RequestParam.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/RequestParam.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.http; +package org.apache.ozhera.monitor.service.http; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/RestTemplateService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/RestTemplateService.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/RestTemplateService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/RestTemplateService.java index e51d30a59..b8df0c960 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/http/RestTemplateService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/http/RestTemplateService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.http; +package org.apache.ozhera.monitor.service.http; import com.alibaba.fastjson.JSONObject; import com.alibaba.nacos.api.config.annotation.NacosValue; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AAImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AAImpl.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AAImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AAImpl.java index 5e22a3159..01084b9ea 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AAImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AAImpl.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; -import com.xiaomi.mone.monitor.service.AA; -import com.xiaomi.mone.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.service.AA; +import org.apache.ozhera.monitor.service.AppMonitorService; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.Service; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ABImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ABImpl.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ABImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ABImpl.java index c815e233c..63644d88c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ABImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ABImpl.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; -import com.xiaomi.mone.monitor.service.AB; +import org.apache.ozhera.monitor.service.AB; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlarmStrategyServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlarmStrategyServiceImpl.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlarmStrategyServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlarmStrategyServiceImpl.java index 45e83b05f..a93d41952 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlarmStrategyServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlarmStrategyServiceImpl.java @@ -14,30 +14,30 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.common.collect.Lists; import com.google.gson.Gson; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.AlarmStrategyInfo; -import com.xiaomi.mone.monitor.bo.AlarmStrategyParam; -import com.xiaomi.mone.monitor.bo.AlarmStrategyType; -import com.xiaomi.mone.monitor.bo.AppViewType; -import com.xiaomi.mone.monitor.dao.AppAlarmRuleDao; -import com.xiaomi.mone.monitor.dao.AppAlarmStrategyDao; -import com.xiaomi.mone.monitor.dao.AppMonitorDao; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlarmStrategyService; -import com.xiaomi.mone.monitor.service.AppAlarmService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleRequest; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; -import com.xiaomi.mone.monitor.service.user.LocalUser; -import com.xiaomi.mone.monitor.service.user.UseDetailInfo; +import org.apache.ozhera.monitor.bo.AlarmStrategyInfo; +import org.apache.ozhera.monitor.bo.AlarmStrategyParam; +import org.apache.ozhera.monitor.bo.AlarmStrategyType; +import org.apache.ozhera.monitor.bo.AppViewType; +import org.apache.ozhera.monitor.dao.AppAlarmRuleDao; +import org.apache.ozhera.monitor.dao.AppAlarmStrategyDao; +import org.apache.ozhera.monitor.dao.AppMonitorDao; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlarmStrategyService; +import org.apache.ozhera.monitor.service.AppAlarmService; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleRequest; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; +import org.apache.ozhera.monitor.service.user.LocalUser; +import org.apache.ozhera.monitor.service.user.UseDetailInfo; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlertGroupServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlertGroupServiceImpl.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlertGroupServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlertGroupServiceImpl.java index 7bf6dea16..d7debd609 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlertGroupServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlertGroupServiceImpl.java @@ -14,27 +14,27 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.alibaba.fastjson.JSONObject; import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.AlertGroupInfo; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.UserInfo; -import com.xiaomi.mone.monitor.dao.AlertGroupDao; -import com.xiaomi.mone.monitor.dao.model.AlertGroup; -import com.xiaomi.mone.monitor.dao.model.AlertGroupMember; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.ExceptionCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlertGroupService; -import com.xiaomi.mone.monitor.service.alertmanager.AlertServiceAdapt; -import com.xiaomi.mone.monitor.service.helper.AlertHelper; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.user.UserConfigService; +import org.apache.ozhera.monitor.bo.AlertGroupInfo; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.UserInfo; +import org.apache.ozhera.monitor.dao.AlertGroupDao; +import org.apache.ozhera.monitor.dao.model.AlertGroup; +import org.apache.ozhera.monitor.dao.model.AlertGroupMember; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.ExceptionCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlertGroupService; +import org.apache.ozhera.monitor.service.alertmanager.AlertServiceAdapt; +import org.apache.ozhera.monitor.service.helper.AlertHelper; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.user.UserConfigService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlertHistoryServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlertHistoryServiceImpl.java similarity index 84% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlertHistoryServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlertHistoryServiceImpl.java index 7499ab86d..c343e731d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AlertHistoryServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AlertHistoryServiceImpl.java @@ -14,21 +14,21 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.AlertHistory; -import com.xiaomi.mone.monitor.bo.AlertHistoryDetailed; -import com.xiaomi.mone.monitor.bo.AlertHistoryParam; -import com.xiaomi.mone.monitor.dao.AppMonitorDao; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlertHistoryService; -import com.xiaomi.mone.monitor.service.helper.AlertHelper; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.prometheus.AlarmService; -import com.xiaomi.mone.monitor.utils.CommonUtil; +import org.apache.ozhera.monitor.bo.AlertHistory; +import org.apache.ozhera.monitor.bo.AlertHistoryDetailed; +import org.apache.ozhera.monitor.bo.AlertHistoryParam; +import org.apache.ozhera.monitor.dao.AppMonitorDao; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlertHistoryService; +import org.apache.ozhera.monitor.service.helper.AlertHelper; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.prometheus.AlarmService; +import org.apache.ozhera.monitor.utils.CommonUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppAlarmServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppAlarmServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java index 544d31a79..017a18cd3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppAlarmServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppAlarmServiceImpl.java @@ -14,45 +14,45 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.common.collect.Lists; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.AlarmCheckDataCount; -import com.xiaomi.mone.monitor.bo.AlarmRuleMetricType; -import com.xiaomi.mone.monitor.bo.AlarmRuleTemplateType; -import com.xiaomi.mone.monitor.bo.AlarmRuleType; -import com.xiaomi.mone.monitor.bo.AlarmSendInterval; -import com.xiaomi.mone.monitor.bo.AlarmStrategyType; -import com.xiaomi.mone.monitor.bo.AppViewType; -import com.xiaomi.mone.monitor.bo.RuleStatusType; -import com.xiaomi.mone.monitor.dao.AppAlarmRuleDao; -import com.xiaomi.mone.monitor.dao.AppAlarmRuleTemplateDao; -import com.xiaomi.mone.monitor.dao.AppMonitorDao; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplate; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlarmStrategyService; -import com.xiaomi.mone.monitor.service.AppAlarmService; -import com.xiaomi.mone.monitor.service.AppMonitorService; -import com.xiaomi.mone.monitor.service.aop.context.HeraRequestMappingContext; -import com.xiaomi.mone.monitor.service.api.AlarmPresetMetricsService; -import com.xiaomi.mone.monitor.service.api.AppAlarmServiceExtension; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleRequest; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleTemplateRequest; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmTemplateResponse; -import com.xiaomi.mone.monitor.service.model.prometheus.AppAlarmRuleTemplateQuery; -import com.xiaomi.mone.monitor.service.model.prometheus.AppWithAlarmRules; -import com.xiaomi.mone.monitor.service.model.prometheus.ProjectAlarmInfo; -import com.xiaomi.mone.monitor.service.prometheus.AlarmService; +import org.apache.ozhera.monitor.bo.AlarmCheckDataCount; +import org.apache.ozhera.monitor.bo.AlarmRuleMetricType; +import org.apache.ozhera.monitor.bo.AlarmRuleTemplateType; +import org.apache.ozhera.monitor.bo.AlarmRuleType; +import org.apache.ozhera.monitor.bo.AlarmSendInterval; +import org.apache.ozhera.monitor.bo.AlarmStrategyType; +import org.apache.ozhera.monitor.bo.AppViewType; +import org.apache.ozhera.monitor.bo.RuleStatusType; +import org.apache.ozhera.monitor.dao.AppAlarmRuleDao; +import org.apache.ozhera.monitor.dao.AppAlarmRuleTemplateDao; +import org.apache.ozhera.monitor.dao.AppMonitorDao; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplate; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlarmStrategyService; +import org.apache.ozhera.monitor.service.AppAlarmService; +import org.apache.ozhera.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.service.aop.context.HeraRequestMappingContext; +import org.apache.ozhera.monitor.service.api.AlarmPresetMetricsService; +import org.apache.ozhera.monitor.service.api.AppAlarmServiceExtension; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleRequest; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleTemplateRequest; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmTemplateResponse; +import org.apache.ozhera.monitor.service.model.prometheus.AppAlarmRuleTemplateQuery; +import org.apache.ozhera.monitor.service.model.prometheus.AppWithAlarmRules; +import org.apache.ozhera.monitor.service.model.prometheus.ProjectAlarmInfo; +import org.apache.ozhera.monitor.service.prometheus.AlarmService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppGrafanaMappingServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppGrafanaMappingServiceImpl.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppGrafanaMappingServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppGrafanaMappingServiceImpl.java index 20e7835e9..ca774e0af 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppGrafanaMappingServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppGrafanaMappingServiceImpl.java @@ -14,30 +14,30 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.gson.Gson; import com.google.gson.JsonSyntaxException; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; -import com.xiaomi.mone.monitor.bo.AppLanguage; -import com.xiaomi.mone.monitor.bo.AppType; -import com.xiaomi.mone.monitor.bo.PlatFormType; -import com.xiaomi.mone.monitor.dao.AppGrafanaMappingDao; -import com.xiaomi.mone.monitor.dao.AppMonitorDao; -import com.xiaomi.mone.monitor.dao.GrafanaTemplateDao; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaMapping; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AppGrafanaMappingService; -import com.xiaomi.mone.monitor.service.GrafanaService; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; -import com.xiaomi.mone.monitor.service.api.AppGrafanaMappingServiceExtension; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; -import com.xiaomi.mone.monitor.service.model.GrafanaResponse; -import com.xiaomi.mone.monitor.service.model.MutiGrafanaResponse; -import com.xiaomi.mone.monitor.service.serverless.ServerLessService; +import org.apache.ozhera.monitor.bo.AppLanguage; +import org.apache.ozhera.monitor.bo.AppType; +import org.apache.ozhera.monitor.bo.PlatFormType; +import org.apache.ozhera.monitor.dao.AppGrafanaMappingDao; +import org.apache.ozhera.monitor.dao.AppMonitorDao; +import org.apache.ozhera.monitor.dao.GrafanaTemplateDao; +import org.apache.ozhera.monitor.dao.model.AppGrafanaMapping; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AppGrafanaMappingService; +import org.apache.ozhera.monitor.service.GrafanaService; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.service.api.AppGrafanaMappingServiceExtension; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.service.model.GrafanaResponse; +import org.apache.ozhera.monitor.service.model.MutiGrafanaResponse; +import org.apache.ozhera.monitor.service.serverless.ServerLessService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppMonitorConfigServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppMonitorConfigServiceImpl.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppMonitorConfigServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppMonitorConfigServiceImpl.java index 08a5a74fb..ab97a7a3c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppMonitorConfigServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppMonitorConfigServiceImpl.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; -import com.xiaomi.mone.monitor.dao.AppMonitorConfigDao; -import com.xiaomi.mone.monitor.dao.model.AppMonitorConfig; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AppMonitorConfigService; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.dao.AppMonitorConfigDao; +import org.apache.ozhera.monitor.dao.model.AppMonitorConfig; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AppMonitorConfigService; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppMonitorServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppMonitorServiceImpl.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppMonitorServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppMonitorServiceImpl.java index ae139a0cd..ef0c5dba4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/AppMonitorServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/AppMonitorServiceImpl.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.gson.Gson; import com.google.gson.JsonElement; @@ -22,40 +22,40 @@ import org.apache.ozhera.app.api.message.HeraAppModifyType; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; import org.apache.ozhera.app.api.service.HeraAppService; -import com.xiaomi.mone.monitor.bo.AlarmStrategyInfo; -import com.xiaomi.mone.monitor.bo.AppViewType; -import com.xiaomi.mone.monitor.bo.RuleStatusType; -import com.xiaomi.mone.monitor.dao.AppAlarmRuleDao; -import com.xiaomi.mone.monitor.dao.AppAlarmStrategyDao; -import com.xiaomi.mone.monitor.dao.AppMonitorDao; -import com.xiaomi.mone.monitor.dao.HeraAppRoleDao; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthQuery; -import com.xiaomi.mone.monitor.dao.model.AlarmHealthResult; -import com.xiaomi.mone.monitor.dao.model.AlarmStrategy; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.dao.model.HeraAppRole; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlarmStrategyService; -import com.xiaomi.mone.monitor.service.AppAlarmService; -import com.xiaomi.mone.monitor.service.AppGrafanaMappingService; -import com.xiaomi.mone.monitor.service.AppMonitorService; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; -import com.xiaomi.mone.monitor.service.ResourceUsageService; -import com.xiaomi.mone.monitor.service.api.AppMonitorServiceExtension; -import com.xiaomi.mone.monitor.service.api.TeslaService; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; -import com.xiaomi.mone.monitor.service.model.AppMonitorModel; -import com.xiaomi.mone.monitor.service.model.AppMonitorRequest; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.ProjectInfo; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricData; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDataSet; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricResponse; -import com.xiaomi.mone.monitor.service.prometheus.AlarmService; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; +import org.apache.ozhera.monitor.bo.AlarmStrategyInfo; +import org.apache.ozhera.monitor.bo.AppViewType; +import org.apache.ozhera.monitor.bo.RuleStatusType; +import org.apache.ozhera.monitor.dao.AppAlarmRuleDao; +import org.apache.ozhera.monitor.dao.AppAlarmStrategyDao; +import org.apache.ozhera.monitor.dao.AppMonitorDao; +import org.apache.ozhera.monitor.dao.HeraAppRoleDao; +import org.apache.ozhera.monitor.dao.model.AlarmHealthQuery; +import org.apache.ozhera.monitor.dao.model.AlarmHealthResult; +import org.apache.ozhera.monitor.dao.model.AlarmStrategy; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.dao.model.HeraAppRole; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlarmStrategyService; +import org.apache.ozhera.monitor.service.AppAlarmService; +import org.apache.ozhera.monitor.service.AppGrafanaMappingService; +import org.apache.ozhera.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.service.ResourceUsageService; +import org.apache.ozhera.monitor.service.api.AppMonitorServiceExtension; +import org.apache.ozhera.monitor.service.api.TeslaService; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.service.model.AppMonitorModel; +import org.apache.ozhera.monitor.service.model.AppMonitorRequest; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.ProjectInfo; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.service.model.prometheus.MetricData; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDataSet; +import org.apache.ozhera.monitor.service.model.prometheus.MetricResponse; +import org.apache.ozhera.monitor.service.prometheus.AlarmService; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.dubbo.config.annotation.Reference; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ComputeTimerServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ComputeTimerServiceImpl.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ComputeTimerServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ComputeTimerServiceImpl.java index 6b95230ff..6fc57c83a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ComputeTimerServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ComputeTimerServiceImpl.java @@ -14,19 +14,19 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.common.collect.Lists; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.ComputeTimerService; -import com.xiaomi.mone.monitor.service.api.ComputeTimerServiceExtension; -import com.xiaomi.mone.monitor.service.helper.AlertHelper; -import com.xiaomi.mone.monitor.service.model.AppMonitorRequest; -import com.xiaomi.mone.monitor.service.model.ProjectInfo; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricKind; -import com.xiaomi.mone.monitor.service.model.redis.AppAlarmData; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; -import com.xiaomi.mone.monitor.utils.CommonUtil; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.ComputeTimerService; +import org.apache.ozhera.monitor.service.api.ComputeTimerServiceExtension; +import org.apache.ozhera.monitor.service.helper.AlertHelper; +import org.apache.ozhera.monitor.service.model.AppMonitorRequest; +import org.apache.ozhera.monitor.service.model.ProjectInfo; +import org.apache.ozhera.monitor.service.model.prometheus.MetricKind; +import org.apache.ozhera.monitor.service.model.redis.AppAlarmData; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; +import org.apache.ozhera.monitor.utils.CommonUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaApiServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaApiServiceImpl.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaApiServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaApiServiceImpl.java index 47600f88d..2200b519e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaApiServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaApiServiceImpl.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.gson.Gson; -import com.xiaomi.mone.monitor.service.AppGrafanaMappingService; -import com.xiaomi.mone.monitor.service.GrafanaApiService; +import org.apache.ozhera.monitor.service.AppGrafanaMappingService; +import org.apache.ozhera.monitor.service.GrafanaApiService; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.Service; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaBlackListServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaBlackListServiceImpl.java similarity index 88% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaBlackListServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaBlackListServiceImpl.java index 8729aab4d..1d3c4bd86 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaBlackListServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaBlackListServiceImpl.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; -import com.xiaomi.mone.monitor.dao.GrafanaBlackListDao; -import com.xiaomi.mone.monitor.dao.model.AppGrafanaBlackList; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.GrafanaBlackListService; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.dao.GrafanaBlackListDao; +import org.apache.ozhera.monitor.dao.model.AppGrafanaBlackList; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.GrafanaBlackListService; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaImpl.java similarity index 88% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaImpl.java index fbfbbc496..6f3dd9e8e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaImpl.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; -import com.xiaomi.mone.monitor.service.Grafana; -import com.xiaomi.mone.monitor.service.GrafanaService; +import org.apache.ozhera.monitor.service.Grafana; +import org.apache.ozhera.monitor.service.GrafanaService; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.Service; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaServiceImpl.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaServiceImpl.java index ade047456..3b5326970 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/GrafanaServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/GrafanaServiceImpl.java @@ -14,13 +14,13 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.gson.JsonArray; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.service.GrafanaService; -import com.xiaomi.mone.monitor.service.api.GrafanaServiceExtension; -import com.xiaomi.mone.monitor.service.model.MutiGrafanaResponse; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.service.GrafanaService; +import org.apache.ozhera.monitor.service.api.GrafanaServiceExtension; +import org.apache.ozhera.monitor.service.model.MutiGrafanaResponse; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/HeraBaseInfoServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/HeraBaseInfoServiceImpl.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/HeraBaseInfoServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/HeraBaseInfoServiceImpl.java index 8a3c0c218..fd76b6582 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/HeraBaseInfoServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/HeraBaseInfoServiceImpl.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.google.common.collect.Lists; import com.google.gson.Gson; @@ -22,21 +22,21 @@ import org.apache.ozhera.app.api.model.HeraAppBaseInfoParticipant; import org.apache.ozhera.app.api.model.HeraAppRoleModel; import org.apache.ozhera.app.api.service.HeraAppService; -import com.xiaomi.mone.monitor.bo.AlertGroupParam; -import com.xiaomi.mone.monitor.bo.PlatForm; -import com.xiaomi.mone.monitor.bo.UserInfo; -import com.xiaomi.mone.monitor.dao.HeraAppRoleDao; -import com.xiaomi.mone.monitor.dao.model.HeraAppRole; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.AlertGroupService; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; -import com.xiaomi.mone.monitor.service.model.Area; -import com.xiaomi.mone.monitor.service.model.EnvMapping; -import com.xiaomi.mone.monitor.service.model.HeraAppBaseQuery; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.Region; +import org.apache.ozhera.monitor.bo.AlertGroupParam; +import org.apache.ozhera.monitor.bo.PlatForm; +import org.apache.ozhera.monitor.bo.UserInfo; +import org.apache.ozhera.monitor.dao.HeraAppRoleDao; +import org.apache.ozhera.monitor.dao.model.HeraAppRole; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.AlertGroupService; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.service.model.Area; +import org.apache.ozhera.monitor.service.model.EnvMapping; +import org.apache.ozhera.monitor.service.model.HeraAppBaseQuery; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.Region; import com.xiaomi.mone.tpc.login.util.UserUtil; import com.xiaomi.mone.tpc.login.vo.AuthUserVo; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/HeraDashboardServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/HeraDashboardServiceImpl.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/HeraDashboardServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/HeraDashboardServiceImpl.java index abef1a216..77e9a7212 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/HeraDashboardServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/HeraDashboardServiceImpl.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.alibaba.nacos.api.NacosFactory; import com.alibaba.nacos.api.config.ConfigService; @@ -22,24 +22,24 @@ import com.alibaba.nacos.api.exception.NacosException; import com.google.gson.Gson; import com.xiaomi.data.push.client.HttpClientV5; -import com.xiaomi.mone.monitor.DashboardConstant; -import com.xiaomi.mone.monitor.bo.DashboardDTO; -import com.xiaomi.mone.monitor.bo.GrafanaApiKeyReq; -import com.xiaomi.mone.monitor.bo.GrafanaApiKeyRes; -import com.xiaomi.mone.monitor.bo.GrafanaCreateDashboardRes; -import com.xiaomi.mone.monitor.bo.GrafanaCreateDataSourceReq; -import com.xiaomi.mone.monitor.bo.GrafanaCreateDataSourceRes; -import com.xiaomi.mone.monitor.bo.GrafanaFolderReq; -import com.xiaomi.mone.monitor.bo.GrafanaFolderRes; -import com.xiaomi.mone.monitor.bo.GrafanaGetDataSourceRes; -import com.xiaomi.mone.monitor.bo.GrafanaGetFolderRes; -import com.xiaomi.mone.monitor.dao.GrafanaTemplateDao; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.HeraDashboardService; -import com.xiaomi.mone.monitor.service.prometheus.JobService; -import com.xiaomi.mone.monitor.utils.FreeMarkerUtil; +import org.apache.ozhera.monitor.DashboardConstant; +import org.apache.ozhera.monitor.bo.DashboardDTO; +import org.apache.ozhera.monitor.bo.GrafanaApiKeyReq; +import org.apache.ozhera.monitor.bo.GrafanaApiKeyRes; +import org.apache.ozhera.monitor.bo.GrafanaCreateDashboardRes; +import org.apache.ozhera.monitor.bo.GrafanaCreateDataSourceReq; +import org.apache.ozhera.monitor.bo.GrafanaCreateDataSourceRes; +import org.apache.ozhera.monitor.bo.GrafanaFolderReq; +import org.apache.ozhera.monitor.bo.GrafanaFolderRes; +import org.apache.ozhera.monitor.bo.GrafanaGetDataSourceRes; +import org.apache.ozhera.monitor.bo.GrafanaGetFolderRes; +import org.apache.ozhera.monitor.dao.GrafanaTemplateDao; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.HeraDashboardService; +import org.apache.ozhera.monitor.service.prometheus.JobService; +import org.apache.ozhera.monitor.utils.FreeMarkerUtil; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/QualityMarketServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/QualityMarketServiceImpl.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/QualityMarketServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/QualityMarketServiceImpl.java index 55fd20613..3e5a7517a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/QualityMarketServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/QualityMarketServiceImpl.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; -import com.xiaomi.mone.monitor.dao.AppQualityMarketDao; -import com.xiaomi.mone.monitor.dao.model.AppQualityMarket; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.QualityMarketService; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.dao.AppQualityMarketDao; +import org.apache.ozhera.monitor.dao.model.AppQualityMarket; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.QualityMarketService; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ResourceUsageServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ResourceUsageServiceImpl.java similarity index 87% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ResourceUsageServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ResourceUsageServiceImpl.java index d21381362..0336d3998 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ResourceUsageServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ResourceUsageServiceImpl.java @@ -14,19 +14,19 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.common.collect.Lists; -import com.xiaomi.mone.monitor.dao.HeraAppRoleDao; -import com.xiaomi.mone.monitor.dao.model.HeraAppRole; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.ResourceUsageService; -import com.xiaomi.mone.monitor.service.alertmanager.AlarmExprService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.ResourceUsageMessage; -import com.xiaomi.mone.monitor.service.model.prometheus.Metric; -import com.xiaomi.mone.monitor.service.prometheus.PrometheusService; +import org.apache.ozhera.monitor.dao.HeraAppRoleDao; +import org.apache.ozhera.monitor.dao.model.HeraAppRole; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.ResourceUsageService; +import org.apache.ozhera.monitor.service.alertmanager.AlarmExprService; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.ResourceUsageMessage; +import org.apache.ozhera.monitor.service.model.prometheus.Metric; +import org.apache.ozhera.monitor.service.prometheus.PrometheusService; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/RulePromQLTemplateServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/RulePromQLTemplateServiceImpl.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/RulePromQLTemplateServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/RulePromQLTemplateServiceImpl.java index 8519e0727..5a49686a7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/RulePromQLTemplateServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/RulePromQLTemplateServiceImpl.java @@ -14,17 +14,17 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateInfo; -import com.xiaomi.mone.monitor.bo.RulePromQLTemplateParam; -import com.xiaomi.mone.monitor.dao.RulePromQLTemplateDao; -import com.xiaomi.mone.monitor.dao.model.RulePromQLTemplate; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.RulePromQLTemplateService; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateInfo; +import org.apache.ozhera.monitor.bo.RulePromQLTemplateParam; +import org.apache.ozhera.monitor.dao.RulePromQLTemplateDao; +import org.apache.ozhera.monitor.dao.model.RulePromQLTemplate; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.RulePromQLTemplateService; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ServiceMarketServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ServiceMarketServiceImpl.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ServiceMarketServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ServiceMarketServiceImpl.java index 556b21bcb..873aa9c7f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/impl/ServiceMarketServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/impl/ServiceMarketServiceImpl.java @@ -14,17 +14,17 @@ * limitations under the License. */ -package com.xiaomi.mone.monitor.service.impl; +package org.apache.ozhera.monitor.service.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; -import com.xiaomi.mone.monitor.dao.AppServiceMarketDao; -import com.xiaomi.mone.monitor.dao.model.AppServiceMarket; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.ServiceMarketService; -import com.xiaomi.mone.monitor.service.api.ServiceMarketExtension; -import com.xiaomi.mone.monitor.service.extension.PlatFormTypeExtensionService; -import com.xiaomi.mone.monitor.service.model.PageData; +import org.apache.ozhera.monitor.dao.AppServiceMarketDao; +import org.apache.ozhera.monitor.dao.model.AppServiceMarket; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.ServiceMarketService; +import org.apache.ozhera.monitor.service.api.ServiceMarketExtension; +import org.apache.ozhera.monitor.service.extension.PlatFormTypeExtensionService; +import org.apache.ozhera.monitor.service.model.PageData; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/kubernetes/CapacityAdjustMessageService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/kubernetes/CapacityAdjustMessageService.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/kubernetes/CapacityAdjustMessageService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/kubernetes/CapacityAdjustMessageService.java index d8c75332d..58306013b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/kubernetes/CapacityAdjustMessageService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/kubernetes/CapacityAdjustMessageService.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.kubernetes; +package org.apache.ozhera.monitor.service.kubernetes; -import com.xiaomi.mone.monitor.service.http.MoneSpec; +import org.apache.ozhera.monitor.service.http.MoneSpec; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AlarmUnhealthFeishuRequest.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AlarmUnhealthFeishuRequest.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AlarmUnhealthFeishuRequest.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AlarmUnhealthFeishuRequest.java index 0a5c800f4..049f7a6e5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AlarmUnhealthFeishuRequest.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AlarmUnhealthFeishuRequest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AlertManagerRule.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AlertManagerRule.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AlertManagerRule.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AlertManagerRule.java index b3d889063..5c4adf6d1 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AlertManagerRule.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AlertManagerRule.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AppMonitorModel.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AppMonitorModel.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AppMonitorModel.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AppMonitorModel.java index ebcf797c6..300674d5d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AppMonitorModel.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AppMonitorModel.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.dao.model.AppMonitor; import lombok.Data; import lombok.ToString; import org.springframework.beans.BeanUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AppMonitorRequest.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AppMonitorRequest.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AppMonitorRequest.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AppMonitorRequest.java index 0c45dde05..c50ab8ef6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/AppMonitorRequest.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/AppMonitorRequest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Area.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Area.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Area.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Area.java index a4d2b5a16..09a1587fe 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Area.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Area.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/CapacityAdjustRecordRequest.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/CapacityAdjustRecordRequest.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/CapacityAdjustRecordRequest.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/CapacityAdjustRecordRequest.java index a8e35ba4e..f45e641ba 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/CapacityAdjustRecordRequest.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/CapacityAdjustRecordRequest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Env.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Env.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Env.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Env.java index 8fb8acae4..67a167086 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Env.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Env.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/EnvMapping.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/EnvMapping.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/EnvMapping.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/EnvMapping.java index 9712fd8b7..2d6354d96 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/EnvMapping.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/EnvMapping.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import com.google.gson.Gson; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/GrafanaResponse.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/GrafanaResponse.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/GrafanaResponse.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/GrafanaResponse.java index 265d890aa..fd0fa568a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/GrafanaResponse.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/GrafanaResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/HeraAppBaseQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/HeraAppBaseQuery.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/HeraAppBaseQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/HeraAppBaseQuery.java index 53ac3f3d0..b87ebaaa7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/HeraAppBaseQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/HeraAppBaseQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/HeraAppRoleQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/HeraAppRoleQuery.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/HeraAppRoleQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/HeraAppRoleQuery.java index a407aabc8..9fc7d945f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/HeraAppRoleQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/HeraAppRoleQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import org.apache.ozhera.app.api.model.HeraAppRoleModel; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/MutiGrafanaResponse.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/MutiGrafanaResponse.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/MutiGrafanaResponse.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/MutiGrafanaResponse.java index c6d2ea07e..fb0aad42e 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/MutiGrafanaResponse.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/MutiGrafanaResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/PageData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/PageData.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/PageData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/PageData.java index bdc3cb94e..f8ec4e1f3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/PageData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/PageData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ProjectInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ProjectInfo.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ProjectInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ProjectInfo.java index c4c96f6f4..30775b7e2 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ProjectInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ProjectInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/QualityMarketQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/QualityMarketQuery.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/QualityMarketQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/QualityMarketQuery.java index 0872760f4..629ac625d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/QualityMarketQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/QualityMarketQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Region.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Region.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Region.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Region.java index 7109435ea..778c8755a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/Region.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/Region.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ResourceUsageMessage.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ResourceUsageMessage.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ResourceUsageMessage.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ResourceUsageMessage.java index 87a643745..7b71e9e1b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ResourceUsageMessage.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ResourceUsageMessage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ServiceMarketQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ServiceMarketQuery.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ServiceMarketQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ServiceMarketQuery.java index 09f4ce560..ea4429edf 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/ServiceMarketQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/ServiceMarketQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/UserInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/UserInfo.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/UserInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/UserInfo.java index 7a72705bd..ee178be44 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/UserInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/UserInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model; +package org.apache.ozhera.monitor.service.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/DutyGroup.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/DutyGroup.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/DutyGroup.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/DutyGroup.java index 99a22400e..9e5e997d1 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/DutyGroup.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/DutyGroup.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.alarm.duty; +package org.apache.ozhera.monitor.service.model.alarm.duty; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/DutyInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/DutyInfo.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/DutyInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/DutyInfo.java index e6d8e0d93..61f8fd7b4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/DutyInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/DutyInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.alarm.duty; +package org.apache.ozhera.monitor.service.model.alarm.duty; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/ShiftUserInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/ShiftUserInfo.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/ShiftUserInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/ShiftUserInfo.java index e7e1e3db2..b6431cdf5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/ShiftUserInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/ShiftUserInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.alarm.duty; +package org.apache.ozhera.monitor.service.model.alarm.duty; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/UserInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/UserInfo.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/UserInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/UserInfo.java index 8ce42903c..cc79bf021 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/alarm/duty/UserInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/alarm/duty/UserInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.alarm.duty; +package org.apache.ozhera.monitor.service.model.alarm.duty; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/DbInstanceQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/DbInstanceQuery.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/DbInstanceQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/DbInstanceQuery.java index 1b2794089..95e173e56 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/DbInstanceQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/DbInstanceQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.middleware; +package org.apache.ozhera.monitor.service.model.middleware; import lombok.Data; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/MiddleType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/MiddleType.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/MiddleType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/MiddleType.java index f6bc99e6e..b67f08bf6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/MiddleType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/MiddleType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.middleware; +package org.apache.ozhera.monitor.service.model.middleware; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/MiddlewareInstanceInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/MiddlewareInstanceInfo.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/MiddlewareInstanceInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/MiddlewareInstanceInfo.java index 93dfa3f0c..f43710030 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/middleware/MiddlewareInstanceInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/middleware/MiddlewareInstanceInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.middleware; +package org.apache.ozhera.monitor.service.model.middleware; import lombok.Data; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/mifaas/ModuleInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/mifaas/ModuleInfo.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/mifaas/ModuleInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/mifaas/ModuleInfo.java index d2b512fbf..6bb4bf9ee 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/mifaas/ModuleInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/mifaas/ModuleInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.mifaas; +package org.apache.ozhera.monitor.service.model.mifaas; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/project/group/ProjectGroupRequest.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/project/group/ProjectGroupRequest.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/project/group/ProjectGroupRequest.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/project/group/ProjectGroupRequest.java index aa20c6331..71dba8e75 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/project/group/ProjectGroupRequest.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/project/group/ProjectGroupRequest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.project.group; +package org.apache.ozhera.monitor.service.model.project.group; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmAlertTeamData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmAlertTeamData.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmAlertTeamData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmAlertTeamData.java index dbce15871..4ee80885d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmAlertTeamData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmAlertTeamData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleData.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleData.java index 1e0f0d897..74c513fa0 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import com.google.gson.Gson; import com.google.gson.JsonObject; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleDataRemote.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleDataRemote.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleDataRemote.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleDataRemote.java index 51ed6b5ba..c5b17edf7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleDataRemote.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleDataRemote.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleQuery.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleQuery.java index 9b44edf32..171604d90 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleRequest.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleRequest.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleRequest.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleRequest.java index 0597c2d19..7a7422090 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleRequest.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleRequest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import com.google.gson.JsonObject; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleTemplateRequest.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleTemplateRequest.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleTemplateRequest.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleTemplateRequest.java index b6f2fe45d..e9a8975bf 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmRuleTemplateRequest.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmRuleTemplateRequest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import com.google.gson.Gson; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplate; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplate; import lombok.Data; import java.io.Serializable; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmTemplateResponse.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmTemplateResponse.java similarity index 83% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmTemplateResponse.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmTemplateResponse.java index 39dc186f5..58da72c7f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlarmTemplateResponse.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlarmTemplateResponse.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRuleTemplate; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppAlarmRuleTemplate; import lombok.Data; import java.io.Serializable; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertEventData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertEventData.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertEventData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertEventData.java index 84ff1aaff..accfee915 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertEventData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertEventData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertTeamData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertTeamData.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertTeamData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertTeamData.java index 9bb738766..c40b2f235 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertTeamData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertTeamData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertTeamQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertTeamQuery.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertTeamQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertTeamQuery.java index 58c3ef3bf..f907c1d90 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AlertTeamQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AlertTeamQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppAlarmRuleTemplateQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppAlarmRuleTemplateQuery.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppAlarmRuleTemplateQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppAlarmRuleTemplateQuery.java index 707bb7303..2f20409f7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppAlarmRuleTemplateQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppAlarmRuleTemplateQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppRulesQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppRulesQuery.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppRulesQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppRulesQuery.java index 1bc029748..e8b2f2889 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppRulesQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppRulesQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppWithAlarmRules.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppWithAlarmRules.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppWithAlarmRules.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppWithAlarmRules.java index 6d82b6d35..10c3691ce 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/AppWithAlarmRules.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/AppWithAlarmRules.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import com.fasterxml.jackson.annotation.JsonFormat; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/CreateTemplateParam.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/CreateTemplateParam.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/CreateTemplateParam.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/CreateTemplateParam.java index 18f919d2f..f0d04e6e5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/CreateTemplateParam.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/CreateTemplateParam.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; -import com.xiaomi.mone.monitor.bo.AppLanguage; -import com.xiaomi.mone.monitor.bo.AppType; +import org.apache.ozhera.monitor.bo.AppLanguage; +import org.apache.ozhera.monitor.bo.AppType; import lombok.Data; import lombok.ToString; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/EsIndexDataType.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/EsIndexDataType.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/EsIndexDataType.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/EsIndexDataType.java index d8957c695..b3a31a26f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/EsIndexDataType.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/EsIndexDataType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/Metric.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/Metric.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/Metric.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/Metric.java index b10235624..467a84263 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/Metric.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/Metric.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricData.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricData.java index d86ac3b1b..98de4b1b6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataSet.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataSet.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataSet.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataSet.java index dfcf47e1b..3c59729b2 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataSet.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataSet.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataSetVector.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataSetVector.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataSetVector.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataSetVector.java index 77fb3068b..b09c1efb1 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataSetVector.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataSetVector.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataVector.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataVector.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataVector.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataVector.java index 492aff31a..5b0372830 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDataVector.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDataVector.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDetail.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDetail.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDetail.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDetail.java index 2051413ef..92af01f0c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDetail.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDetail.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDetailQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDetailQuery.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDetailQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDetailQuery.java index a6aa56298..4df815fc9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricDetailQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricDetailQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricKind.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricKind.java similarity index 98% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricKind.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricKind.java index 58445f01a..02917280a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricKind.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricKind.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricResponse.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricResponse.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricResponse.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricResponse.java index 4a8b4c738..fba9df8c7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricResponse.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricResponseVector.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricResponseVector.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricResponseVector.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricResponseVector.java index 48ba37f02..19c7ab3ee 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricResponseVector.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricResponseVector.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardData.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardData.java index a760d64a7..bdfb3e01c 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardDataSet.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardDataSet.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardDataSet.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardDataSet.java index 37be91d32..fa49e5170 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardDataSet.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardDataSet.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardResponse.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardResponse.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardResponse.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardResponse.java index 21f418979..778faad25 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MetricStandardResponse.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MetricStandardResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MiLogQuery.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MiLogQuery.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MiLogQuery.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MiLogQuery.java index 866de4450..0f8abb661 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/MiLogQuery.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/MiLogQuery.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/ProjectAlarmInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/ProjectAlarmInfo.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/ProjectAlarmInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/ProjectAlarmInfo.java index bcd5fcab6..33c27c3a9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/ProjectAlarmInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/ProjectAlarmInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/ServiceQps.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/ServiceQps.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/ServiceQps.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/ServiceQps.java index f3a3b5bc9..ccffb27da 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/ServiceQps.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/ServiceQps.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaApiGroupInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaApiGroupInfo.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaApiGroupInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaApiGroupInfo.java index 068123c5d..028b32210 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaApiGroupInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaApiGroupInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetric.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetric.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetric.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetric.java index 697637694..bec9be8ab 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetric.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetric.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricData.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricData.java index f2672d210..e89e257e7 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricDataSet.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricDataSet.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricDataSet.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricDataSet.java index 4528c2598..7ae06dc6d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricDataSet.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricDataSet.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricResponse.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricResponse.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricResponse.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricResponse.java index c2bb340c2..6e7425630 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/prometheus/TeslaMetricResponse.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/prometheus/TeslaMetricResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.prometheus; +package org.apache.ozhera.monitor.service.model.prometheus; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/redis/AppAlarmData.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/redis/AppAlarmData.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/redis/AppAlarmData.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/redis/AppAlarmData.java index 6e8a4a782..b24acd0f4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/model/redis/AppAlarmData.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/model/redis/AppAlarmData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.model.redis; +package org.apache.ozhera.monitor.service.model.redis; import lombok.Builder; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/project/group/ProjectGroupService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/project/group/ProjectGroupService.java similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/project/group/ProjectGroupService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/project/group/ProjectGroupService.java index 36bb4d8ef..39a5df4d4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/project/group/ProjectGroupService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/project/group/ProjectGroupService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.project.group; +package org.apache.ozhera.monitor.service.project.group; import com.google.gson.Gson; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; @@ -24,12 +24,12 @@ import org.apache.ozhera.app.api.service.HeraAuthorizationApi; import org.apache.ozhera.app.api.service.HeraProjectGroupServiceApi; import org.apache.ozhera.app.common.Result; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.service.AppMonitorService; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; -import com.xiaomi.mone.monitor.service.model.AppMonitorModel; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.project.group.ProjectGroupRequest; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.service.model.AppMonitorModel; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.project.group.ProjectGroupRequest; import lombok.extern.slf4j.Slf4j; import org.apache.dubbo.config.annotation.Reference; import org.springframework.beans.factory.annotation.Autowired; @@ -172,7 +172,7 @@ private void appData(List users,List apps){ appMonitorModel.setAppLanguage(appBaseInfo.getAppLanguage()); appMonitorModel.setAppType(appBaseInfo.getAppType()); appMonitorModel.setEnvMapping(appBaseInfo.getEnvsMap()); - com.xiaomi.mone.monitor.result.Result result = appMonitorService.createWithBaseInfo(appMonitorModel, user); + org.apache.ozhera.monitor.result.Result result = appMonitorService.createWithBaseInfo(appMonitorModel, user); log.info("appData.addApp param : {} ,user : {} , result : {}", appMonitorModel, user, result); } } diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/AlarmService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/AlarmService.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/AlarmService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/AlarmService.java index bf1bab7f7..8fbae6883 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/AlarmService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/AlarmService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.prometheus; +package org.apache.ozhera.monitor.service.prometheus; import com.alibaba.fastjson.JSON; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -22,22 +22,22 @@ import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.bo.AlarmRuleMetricType; -import com.xiaomi.mone.monitor.bo.ResourceUsageMetrics; -import com.xiaomi.mone.monitor.dao.model.AppAlarmRule; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; -import com.xiaomi.mone.monitor.pojo.AlarmPresetMetricsPOJO; -import com.xiaomi.mone.monitor.pojo.ReqErrorMetricsPOJO; -import com.xiaomi.mone.monitor.pojo.ReqSlowMetricsPOJO; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.alertmanager.AlarmExprService; -import com.xiaomi.mone.monitor.service.alertmanager.AlertServiceAdapt; -import com.xiaomi.mone.monitor.service.api.*; -import com.xiaomi.mone.monitor.service.helper.AlertUrlHelper; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.AlarmRuleData; -import com.xiaomi.mone.monitor.service.model.prometheus.Metric; +import org.apache.ozhera.monitor.bo.AlarmRuleMetricType; +import org.apache.ozhera.monitor.bo.ResourceUsageMetrics; +import org.apache.ozhera.monitor.dao.model.AppAlarmRule; +import org.apache.ozhera.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.pojo.AlarmPresetMetricsPOJO; +import org.apache.ozhera.monitor.pojo.ReqErrorMetricsPOJO; +import org.apache.ozhera.monitor.pojo.ReqSlowMetricsPOJO; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.alertmanager.AlarmExprService; +import org.apache.ozhera.monitor.service.alertmanager.AlertServiceAdapt; +import org.apache.ozhera.monitor.service.api.*; +import org.apache.ozhera.monitor.service.helper.AlertUrlHelper; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.AlarmRuleData; +import org.apache.ozhera.monitor.service.model.prometheus.Metric; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/AlarmServiceExtensionImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/AlarmServiceExtensionImpl.java similarity index 86% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/AlarmServiceExtensionImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/AlarmServiceExtensionImpl.java index 335300619..7d1a034a8 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/AlarmServiceExtensionImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/AlarmServiceExtensionImpl.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.prometheus; +package org.apache.ozhera.monitor.service.prometheus; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.AlarmServiceExtension; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.AlarmServiceExtension; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/GrafanaTemplateService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/GrafanaTemplateService.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/GrafanaTemplateService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/GrafanaTemplateService.java index 422068398..eb371711d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/GrafanaTemplateService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/GrafanaTemplateService.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.prometheus; +package org.apache.ozhera.monitor.service.prometheus; import com.google.gson.Gson; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.dao.GrafanaTemplateDao; -import com.xiaomi.mone.monitor.dao.model.GrafanaTemplate; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.CreateTemplateParam; +import org.apache.ozhera.monitor.dao.GrafanaTemplateDao; +import org.apache.ozhera.monitor.dao.model.GrafanaTemplate; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.CreateTemplateParam; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/JobService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/JobService.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/JobService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/JobService.java index 743263db5..269a73286 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/JobService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/JobService.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.prometheus; +package org.apache.ozhera.monitor.service.prometheus; import com.google.gson.Gson; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.dao.AppScrapeJobDao; -import com.xiaomi.mone.monitor.dao.model.AppScrapeJob; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.alertmanager.AlertServiceAdapt; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.scrapeJob.ScrapeJobAdapt; +import org.apache.ozhera.monitor.dao.AppScrapeJobDao; +import org.apache.ozhera.monitor.dao.model.AppScrapeJob; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.alertmanager.AlertServiceAdapt; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.scrapeJob.ScrapeJobAdapt; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/MetricSuffix.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/MetricSuffix.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/MetricSuffix.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/MetricSuffix.java index fd7fd6221..c5bb76bb5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/MetricSuffix.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/MetricSuffix.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.prometheus; +package org.apache.ozhera.monitor.service.prometheus; import org.apache.commons.lang3.StringUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/PromQL.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/PromQL.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/PromQL.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/PromQL.java index b52335848..d8b87f3ed 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/PromQL.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/PromQL.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.prometheus; +package org.apache.ozhera.monitor.service.prometheus; /** * @author gaoxihui diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/PrometheusService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/PrometheusService.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/PrometheusService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/PrometheusService.java index a5a2d1482..6be01c4a2 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/prometheus/PrometheusService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/prometheus/PrometheusService.java @@ -13,31 +13,31 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.prometheus; +package org.apache.ozhera.monitor.service.prometheus; import com.google.gson.Gson; -import com.xiaomi.mone.monitor.dao.AppCapacityAutoAdjustDao; -import com.xiaomi.mone.monitor.dao.model.AppCapacityAutoAdjust; -import com.xiaomi.mone.monitor.result.ErrorCode; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.api.PrometheusServiceExtension; -import com.xiaomi.mone.monitor.service.extension.MetricsExtensionService; -import com.xiaomi.mone.monitor.service.http.MoneSpec; -import com.xiaomi.mone.monitor.service.http.RestTemplateService; -import com.xiaomi.mone.monitor.service.kubernetes.CapacityAdjustMessageService; -import com.xiaomi.mone.monitor.service.model.PageData; -import com.xiaomi.mone.monitor.service.model.prometheus.Metric; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricData; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDataSet; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDataSetVector; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricDataVector; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricResponse; -import com.xiaomi.mone.monitor.service.model.prometheus.MetricResponseVector; -import com.xiaomi.mone.monitor.service.model.prometheus.ServiceQps; -import com.xiaomi.mone.monitor.service.model.prometheus.TeslaMetric; -import com.xiaomi.mone.monitor.service.model.prometheus.TeslaMetricData; -import com.xiaomi.mone.monitor.service.model.prometheus.TeslaMetricDataSet; -import com.xiaomi.mone.monitor.service.model.prometheus.TeslaMetricResponse; +import org.apache.ozhera.monitor.dao.AppCapacityAutoAdjustDao; +import org.apache.ozhera.monitor.dao.model.AppCapacityAutoAdjust; +import org.apache.ozhera.monitor.result.ErrorCode; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.api.PrometheusServiceExtension; +import org.apache.ozhera.monitor.service.extension.MetricsExtensionService; +import org.apache.ozhera.monitor.service.http.MoneSpec; +import org.apache.ozhera.monitor.service.http.RestTemplateService; +import org.apache.ozhera.monitor.service.kubernetes.CapacityAdjustMessageService; +import org.apache.ozhera.monitor.service.model.PageData; +import org.apache.ozhera.monitor.service.model.prometheus.Metric; +import org.apache.ozhera.monitor.service.model.prometheus.MetricData; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDataSet; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDataSetVector; +import org.apache.ozhera.monitor.service.model.prometheus.MetricDataVector; +import org.apache.ozhera.monitor.service.model.prometheus.MetricResponse; +import org.apache.ozhera.monitor.service.model.prometheus.MetricResponseVector; +import org.apache.ozhera.monitor.service.model.prometheus.ServiceQps; +import org.apache.ozhera.monitor.service.model.prometheus.TeslaMetric; +import org.apache.ozhera.monitor.service.model.prometheus.TeslaMetricData; +import org.apache.ozhera.monitor.service.model.prometheus.TeslaMetricDataSet; +import org.apache.ozhera.monitor.service.model.prometheus.TeslaMetricResponse; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/RocketMqHeraMonitorConsumer.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/RocketMqHeraMonitorConsumer.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/RocketMqHeraMonitorConsumer.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/RocketMqHeraMonitorConsumer.java index 48ac3a955..80e939de5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/RocketMqHeraMonitorConsumer.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/RocketMqHeraMonitorConsumer.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.rocketmq; +package org.apache.ozhera.monitor.service.rocketmq; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.gson.Gson; import org.apache.ozhera.app.api.message.HeraAppInfoModifyMessage; -import com.xiaomi.mone.monitor.dao.HeraAppRoleDao; -import com.xiaomi.mone.monitor.service.AppGrafanaMappingService; -import com.xiaomi.mone.monitor.service.AppMonitorService; -import com.xiaomi.mone.monitor.service.GrafanaService; -import com.xiaomi.mone.monitor.service.HeraBaseInfoService; +import org.apache.ozhera.monitor.dao.HeraAppRoleDao; +import org.apache.ozhera.monitor.service.AppGrafanaMappingService; +import org.apache.ozhera.monitor.service.AppMonitorService; +import org.apache.ozhera.monitor.service.GrafanaService; +import org.apache.ozhera.monitor.service.HeraBaseInfoService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.rocketmq.acl.common.AclClientRPCHook; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/RocketMqProducer.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/RocketMqProducer.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/RocketMqProducer.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/RocketMqProducer.java index 441a86df6..07e57a12d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/RocketMqProducer.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/RocketMqProducer.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.rocketmq; +package org.apache.ozhera.monitor.service.rocketmq; import com.alibaba.fastjson.JSON; -import com.xiaomi.mone.monitor.service.rocketmq.model.HeraAppMessage; +import org.apache.ozhera.monitor.service.rocketmq.model.HeraAppMessage; import lombok.extern.slf4j.Slf4j; import org.apache.rocketmq.client.producer.DefaultMQProducer; import org.apache.rocketmq.common.message.Message; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/model/HeraAppMessage.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/model/HeraAppMessage.java similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/model/HeraAppMessage.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/model/HeraAppMessage.java index 65079995c..a79504e6b 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/model/HeraAppMessage.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/model/HeraAppMessage.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.rocketmq.model; +package org.apache.ozhera.monitor.service.rocketmq.model; import com.google.gson.JsonObject; import org.apache.ozhera.app.api.model.HeraAppBaseInfoModel; -import com.xiaomi.mone.monitor.dao.model.AppMonitor; +import org.apache.ozhera.monitor.dao.model.AppMonitor; import lombok.Data; import lombok.ToString; import org.springframework.beans.BeanUtils; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/model/RocketMqReceiver.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/model/RocketMqReceiver.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/model/RocketMqReceiver.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/model/RocketMqReceiver.java index b85400e0a..d1f1580dd 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/rocketmq/model/RocketMqReceiver.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/rocketmq/model/RocketMqReceiver.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.rocketmq.model; +package org.apache.ozhera.monitor.service.rocketmq.model; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/ScrapeJob.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/ScrapeJob.java similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/ScrapeJob.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/ScrapeJob.java index ac611238e..568c4f262 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/ScrapeJob.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/ScrapeJob.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.scrapeJob; +package org.apache.ozhera.monitor.service.scrapeJob; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; public interface ScrapeJob { public Result addScrapeJob(JsonObject param, String identifyId, String user); diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/ScrapeJobAdapt.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/ScrapeJobAdapt.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/ScrapeJobAdapt.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/ScrapeJobAdapt.java index f6eb6a522..4df9dbbc3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/ScrapeJobAdapt.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/ScrapeJobAdapt.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.scrapeJob; +package org.apache.ozhera.monitor.service.scrapeJob; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.result.Result; +import org.apache.ozhera.monitor.result.Result; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.ApplicationContext; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/impl/ScrapeJobImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/impl/ScrapeJobImpl.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/impl/ScrapeJobImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/impl/ScrapeJobImpl.java index 7d1a6fb47..89ecda048 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/scrapeJob/impl/ScrapeJobImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/scrapeJob/impl/ScrapeJobImpl.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.scrapeJob.impl; +package org.apache.ozhera.monitor.service.scrapeJob.impl; import com.google.gson.Gson; import com.google.gson.JsonObject; -import com.xiaomi.mone.monitor.result.Result; -import com.xiaomi.mone.monitor.service.scrapeJob.ScrapeJob; +import org.apache.ozhera.monitor.result.Result; +import org.apache.ozhera.monitor.service.scrapeJob.ScrapeJob; import com.xiaomi.youpin.prometheus.agent.api.service.PrometheusScrapeJobService; import com.xiaomi.youpin.prometheus.agent.param.scrapeConfig.ScrapeConfigParam; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/serverless/ServerLessService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/serverless/ServerLessService.java similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/serverless/ServerLessService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/serverless/ServerLessService.java index f63fbd8ea..34b4369e3 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/serverless/ServerLessService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/serverless/ServerLessService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.serverless; +package org.apache.ozhera.monitor.service.serverless; import java.util.List; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/serverless/impl/ServerLessServiceImpl.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/serverless/impl/ServerLessServiceImpl.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/serverless/impl/ServerLessServiceImpl.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/serverless/impl/ServerLessServiceImpl.java index 8ce995897..aef319704 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/serverless/impl/ServerLessServiceImpl.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/serverless/impl/ServerLessServiceImpl.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.serverless.impl; +package org.apache.ozhera.monitor.service.serverless.impl; -import com.xiaomi.mone.monitor.service.serverless.ServerLessService; +import org.apache.ozhera.monitor.service.serverless.ServerLessService; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Service; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/IdmMoneUserDetailService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/IdmMoneUserDetailService.java similarity index 99% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/IdmMoneUserDetailService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/IdmMoneUserDetailService.java index 9226d662c..c1e4bd5b9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/IdmMoneUserDetailService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/IdmMoneUserDetailService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.user; +package org.apache.ozhera.monitor.service.user; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.common.collect.Lists; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/IdmResponse.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/IdmResponse.java similarity index 94% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/IdmResponse.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/IdmResponse.java index f0d571fad..2a0974c93 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/IdmResponse.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/IdmResponse.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.user; +package org.apache.ozhera.monitor.service.user; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/LocalUser.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/LocalUser.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/LocalUser.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/LocalUser.java index dadb8e08b..df830e3d2 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/LocalUser.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/LocalUser.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.user; +package org.apache.ozhera.monitor.service.user; import com.google.common.collect.Maps; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/MoneUser.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/MoneUser.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/MoneUser.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/MoneUser.java index 3e58a3a21..753383e58 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/MoneUser.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/MoneUser.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.user; +package org.apache.ozhera.monitor.service.user; import com.google.gson.annotations.SerializedName; import lombok.Data; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/MoneUserDetailService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/MoneUserDetailService.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/MoneUserDetailService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/MoneUserDetailService.java index ea89de6c3..775735e3d 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/MoneUserDetailService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/MoneUserDetailService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.user; +package org.apache.ozhera.monitor.service.user; import com.google.gson.Gson; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/UseDetailInfo.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/UseDetailInfo.java similarity index 96% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/UseDetailInfo.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/UseDetailInfo.java index 66ad9e23d..d9d685ad4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/UseDetailInfo.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/UseDetailInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.user; +package org.apache.ozhera.monitor.service.user; import lombok.Data; import lombok.ToString; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/UserConfigService.java b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/UserConfigService.java similarity index 97% rename from ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/UserConfigService.java rename to ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/UserConfigService.java index 25407cb9f..9ac1e50ce 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/java/com/xiaomi/mone/monitor/service/user/UserConfigService.java +++ b/ozhera-monitor/ozhera-monitor-service/src/main/java/org/apache/ozhera/monitor/service/user/UserConfigService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.service.user; +package org.apache.ozhera.monitor.service.user; import com.alibaba.nacos.api.config.annotation.NacosValue; import com.google.common.collect.Lists; diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AlertManagerRulesMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AlertManagerRulesMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AlertManagerRulesMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AlertManagerRulesMapper.xml index 0e6dc3b9f..730f4ae03 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AlertManagerRulesMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AlertManagerRulesMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -13,7 +13,7 @@ - + @@ -82,7 +82,7 @@ rule_expr, rule_annotations - select distinct @@ -101,7 +101,7 @@ limit #{offset} , #{limit} - select distinct @@ -130,13 +130,13 @@ delete from rules where rule_id = #{ruleId,jdbcType=INTEGER} - + delete from rules - + SELECT LAST_INSERT_ID() @@ -149,7 +149,7 @@ #{principal,jdbcType=VARCHAR}, #{createTime,jdbcType=DATE}, #{updateTime,jdbcType=DATE}, #{ruleExpr,jdbcType=LONGVARCHAR}, #{ruleAnnotations,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() @@ -225,7 +225,7 @@ - select count(*) from rules @@ -309,7 +309,7 @@ - + update rules @@ -348,7 +348,7 @@ where rule_id = #{ruleId,jdbcType=INTEGER} - + update rules set rule_name = #{ruleName,jdbcType=VARCHAR}, rule_fn = #{ruleFn,jdbcType=VARCHAR}, @@ -363,7 +363,7 @@ rule_annotations = #{ruleAnnotations,jdbcType=LONGVARCHAR} where rule_id = #{ruleId,jdbcType=INTEGER} - + update rules set rule_name = #{ruleName,jdbcType=VARCHAR}, rule_fn = #{ruleFn,jdbcType=VARCHAR}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleMapper.xml similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleMapper.xml index 8e5bff9a0..841913be9 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -29,16 +29,16 @@ - + - + - + @@ -197,7 +197,7 @@ expr, labels, alert_team - select distinct @@ -216,7 +216,7 @@ limit #{offset} , #{limit} - select distinct @@ -269,13 +269,13 @@ delete from app_alarm_rule where id = #{id,jdbcType=INTEGER} - + delete from app_alarm_rule - + SELECT LAST_INSERT_ID() @@ -298,7 +298,7 @@ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{expr,jdbcType=LONGVARCHAR}, #{labels,jdbcType=LONGVARCHAR}, #{alertTeam,jdbcType=LONGVARCHAR}, #{strategyId,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() @@ -470,7 +470,7 @@ - select count(*) from app_alarm_rule @@ -628,7 +628,7 @@ - + update app_alarm_rule @@ -712,7 +712,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_alarm_rule set alarm_id = #{alarmId,jdbcType=INTEGER}, alert = #{alert,jdbcType=VARCHAR}, @@ -742,7 +742,7 @@ alert_team = #{alertTeam,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=INTEGER} - + update app_alarm_rule set alarm_id = #{alarmId,jdbcType=INTEGER}, alert = #{alert,jdbcType=VARCHAR}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleTemplateMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleTemplateMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleTemplateMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleTemplateMapper.xml index 8b481b238..a3ff66dd0 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppAlarmRuleTemplateMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppAlarmRuleTemplateMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -73,7 +73,7 @@ id, name, type, remark, creater, status, create_time, update_time,strategy_type - select distinct @@ -101,13 +101,13 @@ delete from app_alarm_rule_template where id = #{id,jdbcType=INTEGER} - + delete from app_alarm_rule_template - + SELECT LAST_INSERT_ID() @@ -118,7 +118,7 @@ #{creater,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{strategyType,jdbcType=INTEGER}) - + SELECT LAST_INSERT_ID() @@ -176,7 +176,7 @@ - select count(*) from app_alarm_rule_template @@ -232,7 +232,7 @@ - + update app_alarm_rule_template @@ -262,7 +262,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_alarm_rule_template set name = #{name,jdbcType=VARCHAR}, type = #{type,jdbcType=INTEGER}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustMapper.xml similarity index 93% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustMapper.xml index 1a360d183..6f8178fc6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -76,7 +76,7 @@ id, app_id, pipeline_id, container, status, min_instance, max_instance, auto_capacity, depend_on, create_time, update_time - select distinct @@ -103,13 +103,13 @@ delete from app_capacity_auto_adjust where id = #{id,jdbcType=INTEGER} - + delete from app_capacity_auto_adjust - + SELECT LAST_INSERT_ID() @@ -122,7 +122,7 @@ #{autoCapacity,jdbcType=INTEGER}, #{dependOn,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) - + SELECT LAST_INSERT_ID() @@ -192,7 +192,7 @@ - select count(*) from app_capacity_auto_adjust @@ -256,7 +256,7 @@ - + update app_capacity_auto_adjust @@ -292,7 +292,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_capacity_auto_adjust set app_id = #{appId,jdbcType=INTEGER}, pipeline_id = #{pipelineId,jdbcType=INTEGER}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.xml index 39c263589..cdaa006bc 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppCapacityAutoAdjustRecordMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -75,7 +75,7 @@ id, container, name_space, replicas, set_replicas, env_id, status, time, create_time, update_time - select distinct @@ -102,13 +102,13 @@ delete from app_capacity_auto_adjust_record where id = #{id,jdbcType=INTEGER} - + delete from app_capacity_auto_adjust_record - + SELECT LAST_INSERT_ID() @@ -121,7 +121,7 @@ #{time,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} ) - + SELECT LAST_INSERT_ID() @@ -185,7 +185,7 @@ - select count(*) from app_capacity_auto_adjust_record @@ -245,7 +245,7 @@ - + update app_capacity_auto_adjust_record @@ -278,7 +278,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_capacity_auto_adjust_record set container = #{container,jdbcType=VARCHAR}, name_space = #{nameSpace,jdbcType=VARCHAR}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaBlackListMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppGrafanaBlackListMapper.xml similarity index 86% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaBlackListMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppGrafanaBlackListMapper.xml index b67b58c17..eab7db0d5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppGrafanaBlackListMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppGrafanaBlackListMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -66,7 +66,7 @@ id, server_name - select distinct @@ -93,20 +93,20 @@ delete from app_grafana_black_list where id = #{id,jdbcType=INTEGER} - + delete from app_grafana_black_list - + SELECT LAST_INSERT_ID() insert into app_grafana_black_list (server_name) values (#{serverName,jdbcType=VARCHAR}) - + SELECT LAST_INSERT_ID() @@ -122,7 +122,7 @@ - select count(*) from app_grafana_black_list @@ -150,7 +150,7 @@ - + update app_grafana_black_list @@ -159,7 +159,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_grafana_black_list set server_name = #{serverName,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER} diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppMonitorConfigMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppMonitorConfigMapper.xml similarity index 91% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppMonitorConfigMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppMonitorConfigMapper.xml index 2982e3ccd..04164dca4 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppMonitorConfigMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppMonitorConfigMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -72,7 +72,7 @@ id, project_id, config_type, config_name, value, status, create_time, update_time - select distinct @@ -99,13 +99,13 @@ delete from app_monitor_config where id = #{id,jdbcType=INTEGER} - + delete from app_monitor_config - + SELECT LAST_INSERT_ID() @@ -116,7 +116,7 @@ #{value,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) - + SELECT LAST_INSERT_ID() @@ -168,7 +168,7 @@ - select count(*) from app_monitor_config @@ -220,7 +220,7 @@ - + update app_monitor_config @@ -247,7 +247,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_monitor_config set project_id = #{projectId,jdbcType=INTEGER}, config_type = #{configType,jdbcType=INTEGER}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppMonitorMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppMonitorMapper.xml similarity index 95% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppMonitorMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppMonitorMapper.xml index 5359cccd9..230be58bf 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppMonitorMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppMonitorMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -94,7 +94,7 @@ - + @@ -128,7 +128,7 @@ - SELECT app.project_id, app.project_name, @@ -243,7 +243,7 @@ - select distinct @@ -289,13 +289,13 @@ delete from app_monitor where id = #{id,jdbcType=INTEGER} - + delete from app_monitor - + SELECT LAST_INSERT_ID() @@ -312,7 +312,7 @@ #{baseInfoId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} ) - + SELECT LAST_INSERT_ID() @@ -412,7 +412,7 @@ - select count(*) from app_monitor @@ -496,7 +496,7 @@ - + update app_monitor @@ -547,7 +547,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_monitor set project_id = #{projectId,jdbcType=INTEGER}, iam_tree_id = #{iamTreeId,jdbcType=INTEGER}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppQualityMarketMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppQualityMarketMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppQualityMarketMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppQualityMarketMapper.xml index 87ab503d6..8fd635e8f 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppQualityMarketMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppQualityMarketMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -72,7 +72,7 @@ id, market_name, creator, service_list, last_updater, remark, create_time, update_time - select distinct @@ -99,13 +99,13 @@ delete from app_quality_market where id = #{id,jdbcType=INTEGER} - + delete from app_quality_market - + SELECT LAST_INSERT_ID() @@ -116,7 +116,7 @@ #{lastUpdater,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) - + SELECT LAST_INSERT_ID() @@ -168,7 +168,7 @@ - select count(*) from app_quality_market @@ -220,7 +220,7 @@ - + update app_quality_market @@ -247,7 +247,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_quality_market set market_name = #{marketName,jdbcType=VARCHAR}, creator = #{creator,jdbcType=VARCHAR}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppScrapeJobMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppScrapeJobMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppScrapeJobMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppScrapeJobMapper.xml index 5420a841a..2db0bb757 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppScrapeJobMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppScrapeJobMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -13,7 +13,7 @@ - + @@ -80,7 +80,7 @@ job_json - select distinct @@ -99,7 +99,7 @@ limit #{offset} , #{limit} - select distinct @@ -128,13 +128,13 @@ delete from app_scrape_job where id = #{id,jdbcType=INTEGER} - + delete from app_scrape_job - + SELECT LAST_INSERT_ID() @@ -147,7 +147,7 @@ #{jobDesc,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{jobJson,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() @@ -217,7 +217,7 @@ - select count(*) from app_scrape_job @@ -297,7 +297,7 @@ - + update app_scrape_job @@ -333,7 +333,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_scrape_job set iam_id = #{iamId,jdbcType=INTEGER}, user = #{user,jdbcType=VARCHAR}, @@ -347,7 +347,7 @@ job_json = #{jobJson,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=INTEGER} - + update app_scrape_job set iam_id = #{iamId,jdbcType=INTEGER}, user = #{user,jdbcType=VARCHAR}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppServiceMarketMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppServiceMarketMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppServiceMarketMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppServiceMarketMapper.xml index 37f76571f..48596011a 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/AppServiceMarketMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/AppServiceMarketMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -75,7 +75,7 @@ id, market_name, belong_team, creator, service_list, last_updater, remark, service_type, create_time, update_time - select distinct @@ -102,13 +102,13 @@ delete from app_service_market where id = #{id,jdbcType=INTEGER} - + delete from app_service_market - + SELECT LAST_INSERT_ID() @@ -121,7 +121,7 @@ #{serviceType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} ) - + SELECT LAST_INSERT_ID() @@ -185,7 +185,7 @@ - select count(*) from app_service_market @@ -245,7 +245,7 @@ - + update app_service_market @@ -278,7 +278,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_service_market set market_name = #{marketName,jdbcType=VARCHAR}, belong_team = #{belongTeam,jdbcType=VARCHAR}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/GrafanaTemplateMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/GrafanaTemplateMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/GrafanaTemplateMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/GrafanaTemplateMapper.xml index fb9819f31..3fd5536a5 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/GrafanaTemplateMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/GrafanaTemplateMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -11,7 +11,7 @@ - + @@ -80,7 +80,7 @@ template, panel_id_list, url_param - select distinct @@ -99,7 +99,7 @@ limit #{offset} , #{limit} - select distinct @@ -128,13 +128,13 @@ delete from mione_grafana_template where id = #{id,jdbcType=INTEGER} - + delete from mione_grafana_template - + SELECT LAST_INSERT_ID() @@ -147,7 +147,7 @@ #{deleted,jdbcType=BIT}, #{template,jdbcType=LONGVARCHAR}, #{panelIdList,jdbcType=LONGVARCHAR}, #{urlParam,jdbcType=LONGVARCHAR}) - + SELECT LAST_INSERT_ID() @@ -217,7 +217,7 @@ - select count(*) from mione_grafana_template @@ -295,7 +295,7 @@ - + update mione_grafana_template @@ -331,7 +331,7 @@ where id = #{id,jdbcType=INTEGER} - + update mione_grafana_template set name = #{name,jdbcType=VARCHAR}, platform = #{platform,jdbcType=INTEGER}, @@ -345,7 +345,7 @@ url_param = #{urlParam,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=INTEGER} - + update mione_grafana_template set name = #{name,jdbcType=VARCHAR}, platform = #{platform,jdbcType=INTEGER}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/HeraAppRoleMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/HeraAppRoleMapper.xml similarity index 92% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/HeraAppRoleMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/HeraAppRoleMapper.xml index 94157417c..8a281c578 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/HeraAppRoleMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/HeraAppRoleMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -72,7 +72,7 @@ id, app_id, app_platform, user, role, status, create_time, update_time - select distinct @@ -99,13 +99,13 @@ delete from hera_app_role where id = #{id,jdbcType=INTEGER} - + delete from hera_app_role - + SELECT LAST_INSERT_ID() @@ -116,7 +116,7 @@ #{role,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) - + SELECT LAST_INSERT_ID() @@ -168,7 +168,7 @@ - select count(*) from hera_app_role @@ -220,7 +220,7 @@ - + update hera_app_role @@ -247,7 +247,7 @@ where id = #{id,jdbcType=INTEGER} - + update hera_app_role set app_id = #{appId,jdbcType=VARCHAR}, app_platform = #{appPlatform,jdbcType=INTEGER}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/appGrafanaMappingMapper.xml b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/appGrafanaMappingMapper.xml similarity index 90% rename from ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/appGrafanaMappingMapper.xml rename to ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/appGrafanaMappingMapper.xml index bf3df61e9..c31c06253 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/main/resources/com/xiaomi/mone/monitor/dao/mapper/appGrafanaMappingMapper.xml +++ b/ozhera-monitor/ozhera-monitor-service/src/main/resources/org/apache/ozhera/monitor/dao/mapper/appGrafanaMappingMapper.xml @@ -1,7 +1,7 @@ - - + + @@ -70,7 +70,7 @@ id, app_name, mione_env, grafana_url, create_time, update_time - select distinct @@ -97,13 +97,13 @@ delete from app_grafana_mapping where id = #{id,jdbcType=INTEGER} - + delete from app_grafana_mapping - + SELECT LAST_INSERT_ID() @@ -112,7 +112,7 @@ values (#{appName,jdbcType=VARCHAR}, #{mioneEnv,jdbcType=VARCHAR}, #{grafanaUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) - + SELECT LAST_INSERT_ID() @@ -152,7 +152,7 @@ - select count(*) from app_grafana_mapping @@ -196,7 +196,7 @@ - + update app_grafana_mapping @@ -217,7 +217,7 @@ where id = #{id,jdbcType=INTEGER} - + update app_grafana_mapping set app_name = #{appName,jdbcType=VARCHAR}, mione_env = #{mioneEnv,jdbcType=VARCHAR}, diff --git a/ozhera-monitor/ozhera-monitor-service/src/test/java/com/xiaomi/mone/monitor/test/TestUtils.java b/ozhera-monitor/ozhera-monitor-service/src/test/java/org/apache/ozhera/monitor/test/TestUtils.java similarity index 89% rename from ozhera-monitor/ozhera-monitor-service/src/test/java/com/xiaomi/mone/monitor/test/TestUtils.java rename to ozhera-monitor/ozhera-monitor-service/src/test/java/org/apache/ozhera/monitor/test/TestUtils.java index d1d1086ef..efd9df3b6 100644 --- a/ozhera-monitor/ozhera-monitor-service/src/test/java/com/xiaomi/mone/monitor/test/TestUtils.java +++ b/ozhera-monitor/ozhera-monitor-service/src/test/java/org/apache/ozhera/monitor/test/TestUtils.java @@ -13,17 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.xiaomi.mone.monitor.test; +package org.apache.ozhera.monitor.test; -import com.xiaomi.mone.monitor.utils.FreeMarkerUtil; +import org.apache.ozhera.monitor.utils.FreeMarkerUtil; import freemarker.template.TemplateException; import org.junit.jupiter.api.Test; import java.io.IOException; import java.util.HashMap; import java.util.Map; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; /** * @author gaoxihui