From 694b017b8f54355cb48d45ac697a5aabffeb73bc Mon Sep 17 00:00:00 2001 From: gaoxh <32359336+gaoxh@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:00:41 +0800 Subject: [PATCH] feat: add header (#388) Co-authored-by: gaoxihui --- .../com/xiaomi/mone/monitor/service/AA.java | 15 ++++++++++ .../com/xiaomi/mone/monitor/service/AB.java | 15 ++++++++++ .../monitor/service/AlertGorupFacade.java | 15 ++++++++++ .../service/AppCapacityAutoAdjustService.java | 15 ++++++++++ .../xiaomi/mone/monitor/service/Grafana.java | 15 ++++++++++ .../monitor/service/GrafanaApiService.java | 15 ++++++++++ .../mone/monitor/service/MiFeiShuService.java | 15 ++++++++++ .../mone/monitor/service/NoticeService.java | 15 ++++++++++ .../mone/monitor/service/SendSmsService.java | 15 ++++++++++ .../monitor/service/bo/AlertGroupQryInfo.java | 15 ++++++++++ .../service/bo/AppCapacityAutoAdjustBo.java | 29 ++++++++++++++----- .../service/bo/CapacityAdjustCause.java | 15 ++++++++++ .../service/bo/CapacityAdjustNoticeParam.java | 21 ++++++++++++-- .../service/bo/CapacityAdjustType.java | 15 ++++++++++ .../mone/monitor/service/bo/CensusInfo.java | 16 ++++++++-- 15 files changed, 233 insertions(+), 13 deletions(-) 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/com/xiaomi/mone/monitor/service/AA.java index e69cd1d5f..72100343f 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/com/xiaomi/mone/monitor/service/AA.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; /** 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/com/xiaomi/mone/monitor/service/AB.java index 6b1c528ad..964b4f15f 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/com/xiaomi/mone/monitor/service/AB.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; /** 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/com/xiaomi/mone/monitor/service/AlertGorupFacade.java index ba5930f8b..a04465c5d 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/com/xiaomi/mone/monitor/service/AlertGorupFacade.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; 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/com/xiaomi/mone/monitor/service/AppCapacityAutoAdjustService.java index 599aef38d..7c1f1b7b0 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/com/xiaomi/mone/monitor/service/AppCapacityAutoAdjustService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; import com.xiaomi.mone.monitor.service.bo.AppCapacityAutoAdjustBo; 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/com/xiaomi/mone/monitor/service/Grafana.java index e05ad9fd1..82dc6c52d 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/com/xiaomi/mone/monitor/service/Grafana.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; public interface Grafana { 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/com/xiaomi/mone/monitor/service/GrafanaApiService.java index f9964bd1a..dea6f40a1 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/com/xiaomi/mone/monitor/service/GrafanaApiService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; /** 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/com/xiaomi/mone/monitor/service/MiFeiShuService.java index a8ca033b4..fcf7825c0 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/com/xiaomi/mone/monitor/service/MiFeiShuService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.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/com/xiaomi/mone/monitor/service/NoticeService.java index faa96d99b..6fadd8570 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/com/xiaomi/mone/monitor/service/NoticeService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; import com.xiaomi.mone.monitor.service.bo.CapacityAdjustNoticeParam; 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/com/xiaomi/mone/monitor/service/SendSmsService.java index 50076a21c..97b754ee5 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/com/xiaomi/mone/monitor/service/SendSmsService.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service; public interface SendSmsService { 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/com/xiaomi/mone/monitor/service/bo/AlertGroupQryInfo.java index 7f35634ff..241853e5d 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/com/xiaomi/mone/monitor/service/bo/AlertGroupQryInfo.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service.bo; import lombok.Data; 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/com/xiaomi/mone/monitor/service/bo/AppCapacityAutoAdjustBo.java index 36a1a394d..656405c2d 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/com/xiaomi/mone/monitor/service/bo/AppCapacityAutoAdjustBo.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service.bo; import lombok.Data; @@ -12,18 +27,18 @@ @ToString public class AppCapacityAutoAdjustBo implements Serializable { - private Integer appId;//应用id + private Integer appId;//app id - private Integer pipelineId;//流水线id + private Integer pipelineId;//pipeline id - private String container;//容器名称 + private String container;//The name of the container - private Integer minInstance;//最小实例数 + private Integer minInstance;//Minimum number of instances - private Integer maxInstance;//最大实例数 + private Integer maxInstance;//Maximum number of instances - private Integer autoCapacity;//是否自动扩容 1 是,0否 + private Integer autoCapacity;//Auto-scaling 1 Yes, 0 No - private Integer dependOn;//扩容依据 0 cpu 1内存 2cpu及内存 + private Integer dependOn;//Expansion is based on 0 CPU 1 RAM 2 CPU and memory } \ No newline at end of file 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/com/xiaomi/mone/monitor/service/bo/CapacityAdjustCause.java index 92d1a5b29..ae6edf6f3 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/com/xiaomi/mone/monitor/service/bo/CapacityAdjustCause.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service.bo; /** 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/com/xiaomi/mone/monitor/service/bo/CapacityAdjustNoticeParam.java index 012e991ce..c30504532 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/com/xiaomi/mone/monitor/service/bo/CapacityAdjustNoticeParam.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service.bo; import lombok.Data; @@ -11,7 +26,7 @@ @Data public class CapacityAdjustNoticeParam implements Serializable { - //容量调整类型:扩容/缩容 + //Capacity Adjustment Type: Scale-out/scale-in private CapacityAdjustType adjustType; private Long projectId; @@ -24,9 +39,9 @@ public class CapacityAdjustNoticeParam implements Serializable { private CapacityAdjustCause adjustCause; - private String value;//触发扩容的指标阈值 + private String value;//The threshold of the metric that triggers scale-out - private Long time;//触发扩容的指标阈值 + private Long time;//The threshold of the metric that triggers scale-out } 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/com/xiaomi/mone/monitor/service/bo/CapacityAdjustType.java index 70e986d44..16ad20bd0 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/com/xiaomi/mone/monitor/service/bo/CapacityAdjustType.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.xiaomi.mone.monitor.service.bo; /** 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/com/xiaomi/mone/monitor/service/bo/CensusInfo.java index 1d072f6b9..01ce00790 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/com/xiaomi/mone/monitor/service/bo/CensusInfo.java @@ -1,7 +1,17 @@ /* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. + * Copyright 2020 Xiaomi + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.xiaomi.mone.monitor.service.bo;