diff --git a/LICENSE b/LICENSE index 261eeb9..d645695 100644 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,4 @@ + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/AgentApplication.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/AgentApplication.java index aaf96c3..dc54421 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/AgentApplication.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/AgentApplication.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor; import org.springframework.boot.SpringApplication; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/SwaggerConfig.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/SwaggerConfig.java index 99feb58..1127282 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/SwaggerConfig.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/SwaggerConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.config; import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/WebMvcConfig.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/WebMvcConfig.java index 9f43704..0a23945 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/WebMvcConfig.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/config/WebMvcConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.config; import com.orion.lang.define.wrapper.HttpWrapper; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Const.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Const.java index de520d1..7241691 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Const.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Const.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.constant; import com.orion.lang.annotation.Removed; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Currents.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Currents.java index e9e8eac..1cc986d 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Currents.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/Currents.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.constant; import com.orion.lang.utils.Valid; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/DataMetricsType.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/DataMetricsType.java index 146b894..904cb52 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/DataMetricsType.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/DataMetricsType.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.constant; import com.orion.ops.machine.monitor.entity.bo.*; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/GranularityType.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/GranularityType.java index 71861ab..efe35db 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/GranularityType.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/GranularityType.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.constant; import lombok.AllArgsConstructor; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/MachineAlarmType.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/MachineAlarmType.java index 158cdd3..3aa56d4 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/MachineAlarmType.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/MachineAlarmType.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.constant; import lombok.AllArgsConstructor; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/PropertiesConst.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/PropertiesConst.java index 5836ade..586fc0f 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/PropertiesConst.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/PropertiesConst.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.constant; import org.springframework.beans.factory.annotation.Value; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/SchedulerPools.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/SchedulerPools.java index 2f3e0cf..0c886b3 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/SchedulerPools.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/constant/SchedulerPools.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.constant; import com.orion.lang.define.thread.NamedThreadFactory; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineEndpointController.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineEndpointController.java index 3325de7..521ffba 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineEndpointController.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineEndpointController.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.controller; import com.orion.lang.define.wrapper.HttpWrapper; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMetricsController.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMetricsController.java index b1a2561..2d5d0a5 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMetricsController.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMetricsController.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.controller; import com.orion.lang.utils.convert.Converts; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMonitorController.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMonitorController.java index 2b4dfaf..1bf333b 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMonitorController.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/controller/MachineMonitorController.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.controller; import com.orion.lang.utils.Strings; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/BaseRangeBO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/BaseRangeBO.java index cf4fdf8..45f4d62 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/BaseRangeBO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/BaseRangeBO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.bo; import com.alibaba.fastjson.annotation.JSONField; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/CpuUsageBO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/CpuUsageBO.java index ea474a0..356aa97 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/CpuUsageBO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/CpuUsageBO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.bo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/DiskIoUsageBO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/DiskIoUsageBO.java index fd989fd..b7b3f91 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/DiskIoUsageBO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/DiskIoUsageBO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.bo; import com.alibaba.fastjson.annotation.JSONField; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/MemoryUsageBO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/MemoryUsageBO.java index f9eafca..ef91b35 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/MemoryUsageBO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/MemoryUsageBO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.bo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/NetBandwidthBO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/NetBandwidthBO.java index d9e2ea6..aad5e2b 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/NetBandwidthBO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/bo/NetBandwidthBO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.bo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/CpuUsageDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/CpuUsageDTO.java index 72e1d25..f6d226e 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/CpuUsageDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/CpuUsageDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskIoUsageDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskIoUsageDTO.java index 54de6c1..4e3c9e7 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskIoUsageDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskIoUsageDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskStoreUsageDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskStoreUsageDTO.java index eb32d6e..9a212d7 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskStoreUsageDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/DiskStoreUsageDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/MemoryUsageDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/MemoryUsageDTO.java index 44a79dd..2ea3a69 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/MemoryUsageDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/MemoryUsageDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/NetBandwidthDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/NetBandwidthDTO.java index 75d215b..db866e1 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/NetBandwidthDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/NetBandwidthDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/OsInfoDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/OsInfoDTO.java index 3886bd9..a9642d8 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/OsInfoDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/OsInfoDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemLoadDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemLoadDTO.java index 6533349..877622e 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemLoadDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemLoadDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemProcessDTO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemProcessDTO.java index 5eedce7..6bd2ba4 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemProcessDTO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/dto/SystemProcessDTO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.dto; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineAlarmRequest.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineAlarmRequest.java index f44e7cd..9b8ebc9 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineAlarmRequest.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineAlarmRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.request; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineSyncRequest.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineSyncRequest.java index 235c734..0f398cc 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineSyncRequest.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MachineSyncRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.request; import com.orion.ops.plugin.common.handler.http.vo.MachineAlarmConfig; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MetricsStatisticsRequest.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MetricsStatisticsRequest.java index 1ea5cf4..f6b0d6c 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MetricsStatisticsRequest.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/request/MetricsStatisticsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.request; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsStatisticsEntity.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsStatisticsEntity.java index 52359b1..85aa599 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsStatisticsEntity.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsStatisticsEntity.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; /** diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsVO.java index 56bee47..c496a24 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/BaseMetricsVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.Systems; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuMetricsStatisticsVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuMetricsStatisticsVO.java index 8643b6a..c05c04b 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuMetricsStatisticsVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuMetricsStatisticsVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuUsageVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuUsageVO.java index e2eda5c..073df3d 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuUsageVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/CpuUsageVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskIoUsageVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskIoUsageVO.java index f91c2ac..25d396b 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskIoUsageVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskIoUsageVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskMetricsStatisticVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskMetricsStatisticVO.java index 29dee00..05adad5 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskMetricsStatisticVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskMetricsStatisticVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskNameVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskNameVO.java index 1dc155f..30dacc2 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskNameVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskNameVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskStoreUsageVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskStoreUsageVO.java index 2a0cbc8..18e30e5 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskStoreUsageVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/DiskStoreUsageVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryMetricsStatisticsVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryMetricsStatisticsVO.java index 6b1801b..bd4c3b2 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryMetricsStatisticsVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryMetricsStatisticsVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryUsageVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryUsageVO.java index 7182a93..0c189db 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryUsageVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MemoryUsageVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MetricsStatisticsVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MetricsStatisticsVO.java index bd75028..f6ff274 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MetricsStatisticsVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/MetricsStatisticsVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.alibaba.fastjson.annotation.JSONField; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthMetricsStatisticVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthMetricsStatisticVO.java index d1327d1..39282bc 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthMetricsStatisticVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthMetricsStatisticVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthVO.java index bc183ae..7fff78e 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/NetBandwidthVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/OsInfoVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/OsInfoVO.java index 5462247..02e5763 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/OsInfoVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/OsInfoVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemLoadVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemLoadVO.java index 8637dc6..ef399a5 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemLoadVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemLoadVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemProcessVO.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemProcessVO.java index 067cce5..cb46422 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemProcessVO.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/entity/vo/SystemProcessVO.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.entity.vo; import com.orion.lang.utils.convert.TypeStore; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/handler/AlarmChecker.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/handler/AlarmChecker.java index 7b944b5..20b4d05 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/handler/AlarmChecker.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/handler/AlarmChecker.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.handler; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/interceptor/AccessTokenInterceptor.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/interceptor/AccessTokenInterceptor.java index 65eda5a..caca237 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/interceptor/AccessTokenInterceptor.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/interceptor/AccessTokenInterceptor.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.interceptor; import com.orion.lang.constant.StandardContentType; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/MetricsProvider.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/MetricsProvider.java index 4da25fa..3da901d 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/MetricsProvider.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/MetricsProvider.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics; import com.orion.lang.utils.Strings; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/CpuMetricsCollector.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/CpuMetricsCollector.java index e0867e9..d25d77d 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/CpuMetricsCollector.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/CpuMetricsCollector.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/DiskMetricsCollector.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/DiskMetricsCollector.java index 2038bb0..061a52c 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/DiskMetricsCollector.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/DiskMetricsCollector.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/IMetricsCollector.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/IMetricsCollector.java index 3ca2cdf..06da9de 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/IMetricsCollector.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/IMetricsCollector.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.orion.lang.utils.collect.Lists; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MemoryMetricsCollector.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MemoryMetricsCollector.java index 4fcb33d..94caf99 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MemoryMetricsCollector.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MemoryMetricsCollector.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectScheduler.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectScheduler.java index 7b56c9d..39bc5fa 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectScheduler.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectScheduler.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.orion.ops.machine.monitor.constant.SchedulerPools; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectTask.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectTask.java index b84cf99..48e510c 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectTask.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectTask.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.orion.lang.utils.time.Dates; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectorType.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectorType.java index 80acba0..19c588b 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectorType.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/MetricsCollectorType.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.orion.ops.machine.monitor.entity.bo.BaseRangeBO; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/NetBandwidthCollector.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/NetBandwidthCollector.java index 7234852..2f1e445 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/NetBandwidthCollector.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/collect/NetBandwidthCollector.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.collect; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/BaseMetricsHourReduceResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/BaseMetricsHourReduceResolver.java index 5c291e9..9663762 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/BaseMetricsHourReduceResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/BaseMetricsHourReduceResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.reduce; import com.orion.lang.utils.collect.Lists; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/CpuHourReduceResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/CpuHourReduceResolver.java index 988f5a6..e16eeca 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/CpuHourReduceResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/CpuHourReduceResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.reduce; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/DiskHourReduceResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/DiskHourReduceResolver.java index cec5e0c..0cd17da 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/DiskHourReduceResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/DiskHourReduceResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.reduce; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/IMetricsHourReduceResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/IMetricsHourReduceResolver.java index 832e83f..2dffb4b 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/IMetricsHourReduceResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/IMetricsHourReduceResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.reduce; import com.orion.ops.machine.monitor.entity.bo.BaseRangeBO; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MemoryHourReduceResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MemoryHourReduceResolver.java index b7e60d9..b2db9e6 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MemoryHourReduceResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MemoryHourReduceResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.reduce; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MetricsHourReduceCalculator.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MetricsHourReduceCalculator.java index b71c776..a9136f0 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MetricsHourReduceCalculator.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/MetricsHourReduceCalculator.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.reduce; import com.orion.ops.machine.monitor.entity.bo.BaseRangeBO; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/NetBandwidthHourReduceResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/NetBandwidthHourReduceResolver.java index 2939d63..645e71d 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/NetBandwidthHourReduceResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/reduce/NetBandwidthHourReduceResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.reduce; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/BaseMetricsStatisticResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/BaseMetricsStatisticResolver.java index 75bf830..6e8e32b 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/BaseMetricsStatisticResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/BaseMetricsStatisticResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.statistics; import com.orion.lang.define.wrapper.TimestampValue; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/CpuMetricsStatisticResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/CpuMetricsStatisticResolver.java index 93738b0..3c92104 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/CpuMetricsStatisticResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/CpuMetricsStatisticResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.statistics; import com.orion.lang.define.wrapper.TimestampValue; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/DiskMetricsStatisticResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/DiskMetricsStatisticResolver.java index 061eca5..eb8e3e7 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/DiskMetricsStatisticResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/DiskMetricsStatisticResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.statistics; import com.orion.lang.define.wrapper.TimestampValue; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/IMetricsStatisticResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/IMetricsStatisticResolver.java index 0c04344..8fa8d78 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/IMetricsStatisticResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/IMetricsStatisticResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.statistics; import com.orion.ops.machine.monitor.entity.vo.BaseMetricsStatisticsEntity; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MemoryMetricsStatisticResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MemoryMetricsStatisticResolver.java index 32cbbda..9719dc9 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MemoryMetricsStatisticResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MemoryMetricsStatisticResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.statistics; import com.orion.lang.define.wrapper.TimestampValue; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MetricsFileAccessor.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MetricsFileAccessor.java index 70d22f5..c3823b6 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MetricsFileAccessor.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/MetricsFileAccessor.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.statistics; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/NetMetricsStatisticResolver.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/NetMetricsStatisticResolver.java index e8221ed..429bf62 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/NetMetricsStatisticResolver.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/metrics/statistics/NetMetricsStatisticResolver.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.metrics.statistics; import com.orion.lang.define.wrapper.TimestampValue; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/InitAlarmConfigRunner.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/InitAlarmConfigRunner.java index 19e3aed..54b72b0 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/InitAlarmConfigRunner.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/InitAlarmConfigRunner.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.runner; import com.alibaba.fastjson.TypeReference; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/NotifyStartedStatusRunner.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/NotifyStartedStatusRunner.java index 77ce937..4588c59 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/NotifyStartedStatusRunner.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/runner/NotifyStartedStatusRunner.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.runner; import com.orion.ops.machine.monitor.constant.PropertiesConst; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Formats.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Formats.java index 840f43f..36b21a1 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Formats.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Formats.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.utils; import lombok.extern.slf4j.Slf4j; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/PathBuilders.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/PathBuilders.java index aef683d..f12106c 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/PathBuilders.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/PathBuilders.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.utils; import com.orion.lang.utils.Systems; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Utils.java b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Utils.java index 5c8fc0f..d97a408 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Utils.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/main/java/com/orion/ops/machine/monitor/utils/Utils.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor.utils; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/AddLicenseHeader.java b/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/AddLicenseHeader.java new file mode 100644 index 0000000..bb230cb --- /dev/null +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/AddLicenseHeader.java @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor; + +import com.orion.lang.define.StopWatch; +import com.orion.lang.utils.io.FileReaders; +import com.orion.lang.utils.io.FileWriters; +import com.orion.lang.utils.io.Files1; + +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.List; + +/** + * @author Jiahang Li + * @version 1.0.0 + * @since 2024/10/11 13:52 + */ +public class AddLicenseHeader { + + private static final String LICENSE = "/*\n" + + " * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com).\n" + + " *\n" + + " * Licensed under the Apache License, Version 2.0 (the \"License\");\n" + + " * you may not use this file except in compliance with the License.\n" + + " * You may obtain a copy of the License at\n" + + " *\n" + + " * http://www.apache.org/licenses/LICENSE-2.0\n" + + " *\n" + + " * Unless required by applicable law or agreed to in writing, software\n" + + " * distributed under the License is distributed on an \"AS IS\" BASIS,\n" + + " * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n" + + " * See the License for the specific language governing permissions and\n" + + " * limitations under the License.\n" + + " */"; + + private static final String PATH = new File("").getAbsolutePath(); + + public static void main(String[] args) { + StopWatch sw = StopWatch.begin(); + // 扫描文件 + List files = Files1.listFilesFilter(PATH, (file, name) -> file.isFile() + && file.getName().endsWith(".java"), true, false); + sw.tag("search"); + // 添加头 + files.forEach(AddLicenseHeader::addLicenseToFile); + sw.tag("add"); + sw.stop(); + System.out.println(sw); + } + + /** + * 添加 license + * + * @param file file + */ + private static void addLicenseToFile(File file) { + try { + String line = FileReaders.readLine(file); + if (line != null && line.trim().equals("/*")) { + System.out.println("License already exists in " + file.getAbsolutePath()); + return; + } + // 读取原始文件内容 + byte[] bytes = FileReaders.readAllBytesFast(file); + // 在头部添加许可证 + ByteArrayOutputStream out = new ByteArrayOutputStream(); + out.write(LICENSE.getBytes(StandardCharsets.UTF_8)); + out.write('\n'); + out.write(new String(bytes).replaceAll("\r\n", "\n").getBytes(StandardCharsets.UTF_8)); + // 写入 + FileWriters.writeFast(file, out.toByteArray()); + System.out.println("License added to " + file.getAbsolutePath()); + } catch (IOException e) { + System.err.println("Failed to add license to " + file.getAbsolutePath()); + } + } + +} diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/AgentApplicationTests.java b/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/AgentApplicationTests.java index cef380d..196fdec 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/AgentApplicationTests.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/AgentApplicationTests.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor; import org.junit.jupiter.api.Test; diff --git a/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/StatisticTests.java b/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/StatisticTests.java index 4f6018a..8092dd2 100644 --- a/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/StatisticTests.java +++ b/orion-ops-plugins-parent/machine-monitor-agent/src/test/java/com/orion/ops/machine/monitor/StatisticTests.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.machine.monitor; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreLog.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreLog.java index 1e3aeb2..06a1784 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreLog.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreLog.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.annotation; import java.lang.annotation.*; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreWrapper.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreWrapper.java index 5cbd57f..353a2f3 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreWrapper.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/IgnoreWrapper.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.annotation; import java.lang.annotation.*; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/RestWrapper.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/RestWrapper.java index 530f233..e33c366 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/RestWrapper.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/annotation/RestWrapper.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.annotation; import java.lang.annotation.*; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/JsonSerializerConfig.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/JsonSerializerConfig.java index 1de6e8e..2b06f61 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/JsonSerializerConfig.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/JsonSerializerConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.config; import com.alibaba.fastjson.serializer.SerializerFeature; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/LogPrintConfig.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/LogPrintConfig.java index 4bae298..0b3eb92 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/LogPrintConfig.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/LogPrintConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.config; import com.orion.ops.plugin.common.interceptor.LogPrintInterceptor; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/WrapperResultConfig.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/WrapperResultConfig.java index 8e3e812..04f7a81 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/WrapperResultConfig.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/config/WrapperResultConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.config; import com.orion.lang.constant.StandardContentType; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/MessageConst.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/MessageConst.java index d9e5219..74ab6bd 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/MessageConst.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/MessageConst.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.constant; /** diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/ResultCode.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/ResultCode.java index 35daeeb..fdad26a 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/ResultCode.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/constant/ResultCode.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.constant; import com.orion.lang.define.wrapper.CodeInfo; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiDefined.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiDefined.java index 7586246..32e874e 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiDefined.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiDefined.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.handler.http; import com.orion.http.support.HttpMethod; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequest.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequest.java index 70d91ed..0b06030 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequest.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.handler.http; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequester.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequester.java index e8cd169..b701c6a 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequester.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/HttpApiRequester.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.handler.http; import com.alibaba.fastjson.TypeReference; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApi.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApi.java index d263884..e73cb5e 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApi.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApi.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.handler.http; import com.orion.http.support.HttpMethod; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApiRequester.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApiRequester.java index 350ccb9..084551f 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApiRequester.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/OrionOpsExposeHttpApiRequester.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.handler.http; import org.springframework.beans.factory.annotation.Value; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/vo/MachineAlarmConfig.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/vo/MachineAlarmConfig.java index 39e07c3..d6a861f 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/vo/MachineAlarmConfig.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/handler/http/vo/MachineAlarmConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.handler.http.vo; import io.swagger.annotations.ApiModel; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/interceptor/LogPrintInterceptor.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/interceptor/LogPrintInterceptor.java index 0896df6..21a25ce 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/interceptor/LogPrintInterceptor.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/interceptor/LogPrintInterceptor.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.interceptor; import com.alibaba.fastjson.JSON; diff --git a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/runner/TypeStoreRegisterRunner.java b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/runner/TypeStoreRegisterRunner.java index c4eb9be..82835a7 100644 --- a/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/runner/TypeStoreRegisterRunner.java +++ b/orion-ops-plugins-parent/plugin-common/src/main/java/com/orion/ops/plugin/common/runner/TypeStoreRegisterRunner.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 - present Jiahang Li (om.orionsec.cn ljh1553488six@139.com). + * + * 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.orion.ops.plugin.common.runner; import com.orion.lang.support.Attempt;