diff --git a/HEADER b/HEADER index d791e624d..042f3ce1f 100644 --- a/HEADER +++ b/HEADER @@ -1,16 +1,18 @@ - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ diff --git a/ozhera-demo-client/README.md b/ozhera-demo-client/README.md index c4859ab31..118ca200d 100644 --- a/ozhera-demo-client/README.md +++ b/ozhera-demo-client/README.md @@ -1,2 +1,23 @@ + + # introduction OzHera demo client \ No newline at end of file diff --git a/ozhera-demo-client/README_cn.md b/ozhera-demo-client/README_cn.md index 5fb4b97fb..0d17cea7f 100644 --- a/ozhera-demo-client/README_cn.md +++ b/ozhera-demo-client/README_cn.md @@ -1,2 +1,23 @@ + + # 概述 OzHera demo client \ No newline at end of file diff --git a/ozhera-demo-client/ozhera-demo-client-api/pom.xml b/ozhera-demo-client/ozhera-demo-client-api/pom.xml index 571b2066f..0352da81e 100644 --- a/ozhera-demo-client/ozhera-demo-client-api/pom.xml +++ b/ozhera-demo-client/ozhera-demo-client-api/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java b/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java index ba538219b..52911a999 100644 --- a/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java +++ b/ozhera-demo-client/ozhera-demo-client-api/src/main/java/org/apache/ozhera/demo/client/api/service/DubboHealthService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.api.service; diff --git a/ozhera-demo-client/ozhera-demo-client-common/pom.xml b/ozhera-demo-client/ozhera-demo-client-common/pom.xml index 27dc940f0..b06147fd9 100644 --- a/ozhera-demo-client/ozhera-demo-client-common/pom.xml +++ b/ozhera-demo-client/ozhera-demo-client-common/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-client/ozhera-demo-client-server/pom.xml b/ozhera-demo-client/ozhera-demo-client-server/pom.xml index 5317eed4b..78ce108cc 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/pom.xml +++ b/ozhera-demo-client/ozhera-demo-client-server/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java index 0b595f137..76e4204c3 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/bootstrap/HeraDemoClientBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.bootstrap; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java index 00e08499b..f31228223 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/DubboConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.config; import com.google.common.collect.Maps; @@ -63,4 +67,4 @@ public ProtocolConfig protocolConfig() { return protocolConfig; } -} +} \ No newline at end of file diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java index 674eb0813..28cffe245 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/NacosConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.config; import com.alibaba.nacos.api.annotation.NacosProperties; diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java index 9e2df4682..06c49843f 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/PrometheusConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.config; import org.apache.ozhera.prometheus.starter.all.config.PrometheusConfigure; @@ -39,4 +43,4 @@ public class PrometheusConfiguration { public void init(){ PrometheusConfigure.init(nacosAddr, serverType); } -} +} \ No newline at end of file diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java index 40ba26d59..8b5a3a625 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/config/RedisConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.config; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java index bc3ca6ece..04d76f621 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/controller/TestController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.controller; import com.xiaomi.hera.trace.annotation.Trace; @@ -158,4 +162,4 @@ private String sendGETReuqest(String url) { return null; } -} +} \ No newline at end of file diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java index 807819fc2..e57c10c29 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/grpc/GrpcClientService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.grpc; @@ -48,4 +52,4 @@ public String grpcError(String name) { return myServiceStub.error(request).getMessage(); } -} +} \ No newline at end of file diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java index edab76801..d3946b049 100755 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/java/org/apache/ozhera/demo/client/util/HttpClientUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.util; import org.apache.http.HttpResponse; @@ -135,4 +139,4 @@ public static long currentTimeMillis() { return System.currentTimeMillis(); } -} +} \ No newline at end of file diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties index 5f249677c..b3e884757 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=hera-demo-client server.type=${server.type} diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties index f1f9fbaf8..801eb58cf 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/config/open-source.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server server.type=dev server.port=8085 diff --git a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml index 2f3b5d976..f9098fd51 100644 --- a/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml +++ b/ozhera-demo-client/ozhera-demo-client-server/src/main/resources/logback.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-client/ozhera-demo-client-service/pom.xml b/ozhera-demo-client/ozhera-demo-client-service/pom.xml index c0356072d..4a303d44a 100644 --- a/ozhera-demo-client/ozhera-demo-client-service/pom.xml +++ b/ozhera-demo-client/ozhera-demo-client-service/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java b/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java index a806fb62b..537bcad2f 100644 --- a/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java +++ b/ozhera-demo-client/ozhera-demo-client-service/src/main/java/org/apache/ozhera/demo/client/service/DubboHealthServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.client.service; import com.xiaomi.hera.trace.annotation.Trace; @@ -64,4 +68,4 @@ private void testMethod2() { } -} +} \ No newline at end of file diff --git a/ozhera-demo-client/pom.xml b/ozhera-demo-client/pom.xml index a59a9dfaa..b99352d3b 100644 --- a/ozhera-demo-client/pom.xml +++ b/ozhera-demo-client/pom.xml @@ -1,4 +1,25 @@ + + @@ -202,4 +223,4 @@ - + \ No newline at end of file diff --git a/ozhera-demo-server/README.md b/ozhera-demo-server/README.md index eb9cc143c..c8f0140ac 100644 --- a/ozhera-demo-server/README.md +++ b/ozhera-demo-server/README.md @@ -1,2 +1,23 @@ + + # introduce ozhera-demo-server \ No newline at end of file diff --git a/ozhera-demo-server/README_cn.md b/ozhera-demo-server/README_cn.md index 0b6c5a9fc..b24dfd110 100644 --- a/ozhera-demo-server/README_cn.md +++ b/ozhera-demo-server/README_cn.md @@ -1,2 +1,23 @@ + + # 概述 ozhera-demo-server \ No newline at end of file diff --git a/ozhera-demo-server/ozhera-demo-server-api/pom.xml b/ozhera-demo-server/ozhera-demo-server-api/pom.xml index 98433d733..9e652c8c4 100644 --- a/ozhera-demo-server/ozhera-demo-server-api/pom.xml +++ b/ozhera-demo-server/ozhera-demo-server-api/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java b/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java index 55447feca..d7e581129 100644 --- a/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java +++ b/ozhera-demo-server/ozhera-demo-server-api/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.server.service; diff --git a/ozhera-demo-server/ozhera-demo-server-server/pom.xml b/ozhera-demo-server/ozhera-demo-server-server/pom.xml index 77cf13f86..808b0c745 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/pom.xml +++ b/ozhera-demo-server/ozhera-demo-server-server/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java index 472158724..ae53a8379 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/HeraDemoServerBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.server; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java index 4d1b2f121..c04ea6e8d 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/DubboConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.server.config; import org.apache.dubbo.config.ApplicationConfig; diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java index 4b4db1368..fbd1f12ee 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/config/NacosConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.server.config; import com.alibaba.nacos.api.annotation.NacosProperties; diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java index b2013dc93..bd244d07a 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/grpc/MyServiceImpl.java @@ -1,64 +1,19 @@ -///* -// * Copyright (C) 2020 Xiaomi Corporation -// * -// * Licensed under the Apache License, Version 2.0 (the "License"); -// * you may not use this file except in compliance with the License. -// * You may obtain a copy of the License at -// * -// * http://www.apache.org/licenses/LICENSE-2.0 -// * -// * Unless required by applicable law or agreed to in writing, software -// * distributed under the License is distributed on an "AS IS" BASIS, -// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// * See the License for the specific language governing permissions and -// * limitations under the License. -// */ -//package com.xiaomi.mone.hera.demo.server.grpc; -// -//import io.grpc.stub.StreamObserver; -//import net.devh.boot.grpc.server.service.GrpcService; -//import com.xiaomi.mone.hera.demo.grpc.HelloRequest; -//import com.xiaomi.mone.hera.demo.grpc.MyServiceGrpc; -//import com.xiaomi.mone.hera.demo.grpc.HelloReply; -// -//import java.util.concurrent.TimeUnit; -// -//@GrpcService -//public class MyServiceImpl extends MyServiceGrpc.MyServiceImplBase { -// -// @Override -// public void normal(HelloRequest request, StreamObserver responseObserver) { -// HelloReply reply = HelloReply.newBuilder() -// .setMessage("Hello ==> " + request.getName()) -// .build(); -// responseObserver.onNext(reply); -// responseObserver.onCompleted(); -// } -// -// @Override -// public void slow(HelloRequest request, StreamObserver responseObserver) { -// HelloReply reply = HelloReply.newBuilder() -// .setMessage("Hello ==> " + request.getName()) -// .build(); -// try { -// TimeUnit.SECONDS.sleep(1); -// }catch (Throwable t){ -// -// } -// responseObserver.onNext(reply); -// responseObserver.onCompleted(); -// } -// -// @Override -// public void error(HelloRequest request, StreamObserver responseObserver) { -// HelloReply reply = HelloReply.newBuilder() -// .setMessage("Hello ==> " + request.getName()) -// .build(); -// if(true) { -// throw new RuntimeException("error"); -// } -// responseObserver.onNext(reply); -// responseObserver.onCompleted(); -// } -// -//} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java index 693c13e1f..df51c5c5d 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/java/org/apache/ozhera/demo/server/service/DubboHealthServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.demo.server.service; import org.apache.dubbo.config.annotation.Service; diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties index c8e4edfba..93331ad94 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + spring.application.name=hera-demo-server server.port=${server.port} server.type=${server.type} diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties index a5443ab89..87082db2e 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/config/open-source.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + spring.application.name=hera-demo-server server.port=9995 server.type=dev diff --git a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml index 156895ab0..5d842ade8 100644 --- a/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml +++ b/ozhera-demo-server/ozhera-demo-server-server/src/main/resources/logback.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-demo-server/pom.xml b/ozhera-demo-server/pom.xml index ed1e5d038..5c3b39f0b 100644 --- a/ozhera-demo-server/pom.xml +++ b/ozhera-demo-server/pom.xml @@ -1,4 +1,25 @@ + + @@ -161,4 +182,4 @@ - + \ No newline at end of file diff --git a/ozhera-prometheus-agent/README.md b/ozhera-prometheus-agent/README.md index 015374925..33a92130b 100644 --- a/ozhera-prometheus-agent/README.md +++ b/ozhera-prometheus-agent/README.md @@ -1,2 +1,23 @@ + + # Overview -ozhera-prometheus-agent +ozhera-prometheus-agent \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/pom.xml b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/pom.xml index 12d7db7df..bdf05beab 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/pom.xml +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/PrometheusReq.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/PrometheusReq.java index 742a7d77a..1d997c24c 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/PrometheusReq.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/PrometheusReq.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.api.bo; import lombok.Data; @@ -28,4 +32,4 @@ public class PrometheusReq implements Serializable { private String appName; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/Result.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/Result.java index 0f67e3492..a154d2514 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/Result.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/bo/Result.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.api.bo; import lombok.Data; @@ -66,4 +70,4 @@ public static Result success(T data) { return result; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusAlertService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusAlertService.java index ee146b823..90b692591 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusAlertService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusAlertService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.api.service; import org.apache.ozhera.prometheus.agent.param.alert.RuleAlertParam; @@ -34,4 +38,4 @@ public interface PrometheusAlertService { Result GetRuleAlertList(Integer pageSize,Integer pageNo); Result EnabledRuleAlert(String id, String enabled); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusDubboService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusDubboService.java index 00aa73f71..1b189e514 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusDubboService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusDubboService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.api.service; @@ -34,4 +38,4 @@ public interface PrometheusDubboService { */ Result> getIpsByAppName(PrometheusReq req); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusScrapeJobService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusScrapeJobService.java index 57878b7d4..c0995dc56 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusScrapeJobService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-api/src/main/java/org/apache/ozhera/prometheus/agent/api/service/PrometheusScrapeJobService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.api.service; import org.apache.ozhera.prometheus.agent.param.scrapeConfig.ScrapeConfigParam; @@ -35,4 +39,4 @@ public interface PrometheusScrapeJobService { Result GetScrapeConfigByName(String name); Result GetScrapeConfigList(Integer page_size, Integer page_no); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/pom.xml b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/pom.xml index da535e111..ddb7e8878 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/pom.xml +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/pom.xml @@ -1,4 +1,25 @@ + + @@ -52,4 +73,4 @@ - + \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/BaseClient.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/BaseClient.java index a210e04e3..400826c0f 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/BaseClient.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/BaseClient.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent; import org.apache.ozhera.prometheus.agent.client.Client; @@ -74,4 +78,4 @@ public void init(){ private void Register(String name,Client client) { clients.put(name,client); }*/ -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerAliClient.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerAliClient.java index 065d0bf91..7c84c17e3 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerAliClient.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerAliClient.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.alertManagerClient; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -423,4 +427,4 @@ private Float getRemoteAlertIdRuleByAlertName(String alertName) { } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerClient.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerClient.java index 1657c12b5..9110bc03c 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerClient.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerClient.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.alertManagerClient; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -296,4 +300,4 @@ private boolean restoreConfiguration(String oldFilePath, String newFilePath) { -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerVMClient.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerVMClient.java index 98f4d9d37..99460f3e0 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerVMClient.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/alertManagerClient/AlertManagerVMClient.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.alertManagerClient; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -239,4 +243,4 @@ private Set getVMAlertPodIp() { return null; } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/client/Client.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/client/Client.java index 5de739aa0..e0d7cbb13 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/client/Client.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/client/Client.java @@ -1,21 +1,25 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.client; public interface Client { public void GetLocalConfigs(); public void CompareAndReload(); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/BasicOperator.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/BasicOperator.java index c56d10445..f2a34ddea 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/BasicOperator.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/BasicOperator.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.operators; /** @@ -22,4 +26,4 @@ public interface BasicOperator { String printTriplicities(); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliAlertMessageTemplate.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliAlertMessageTemplate.java index e60b68c68..99a69fbe9 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliAlertMessageTemplate.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliAlertMessageTemplate.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.operators.ali; public class AliAlertMessageTemplate { @@ -62,4 +66,4 @@ public class AliAlertMessageTemplate { " \"dispatchRuleName\":\"{{ .dispatchRuleName }}\",\n" + " \"alarmId\":\"{{ .alarmId }}\"\n" + "}"; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliPrometheusOperator.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliPrometheusOperator.java index 50834e9ce..65bcda749 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliPrometheusOperator.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/ali/AliPrometheusOperator.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.operators.ali; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -493,4 +497,4 @@ private String transAnnotation2String(Map annotations) { } return gson.toJson(labelList); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/local/LocalPrometheusOperator.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/local/LocalPrometheusOperator.java index 165462d24..6cad6831b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/local/LocalPrometheusOperator.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/local/LocalPrometheusOperator.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.operators.local; import org.apache.ozhera.prometheus.agent.operators.BasicOperator; @@ -28,4 +32,4 @@ public class LocalPrometheusOperator implements BasicOperator { public String printTriplicities() { return "local"; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/vm/VMPrometheusOperator.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/vm/VMPrometheusOperator.java index d6f95c9d4..47aab70c7 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/vm/VMPrometheusOperator.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/operators/vm/VMPrometheusOperator.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.operators.vm; import org.apache.ozhera.prometheus.agent.operators.BasicOperator; @@ -26,4 +30,4 @@ public class VMPrometheusOperator implements BasicOperator { public String printTriplicities() { return "VictoriaMetrics"; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusAliClient.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusAliClient.java index 2a57767d0..8031724aa 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusAliClient.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusAliClient.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.prometheusClient; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -367,4 +371,4 @@ private Scrape_configs getLocalConfigByJobName(String jobName) { }); return targetConfig.get(); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusClient.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusClient.java index f7744b71d..1321c8daa 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusClient.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusClient.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.prometheusClient; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -294,4 +298,4 @@ private boolean restoreConfiguration(String oldFilePath, String newFilePath) { boolean b = FileUtil.RenameFile(oldFilePath, newFilePath); return b; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusVMClient.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusVMClient.java index 8b70be01a..3d3a77abd 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusVMClient.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-client/src/main/java/org/apache/ozhera/prometheus/agent/prometheusClient/PrometheusVMClient.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.prometheusClient; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -204,4 +208,4 @@ private Set getVMAgentPodIP() { return null; } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/pom.xml b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/pom.xml index 39bfe7ab4..6eb045b35 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/pom.xml +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/Commons.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/Commons.java index 122e4e6d3..b9adaeb4b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/Commons.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/Commons.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent; public class Commons { @@ -32,4 +36,4 @@ public class Commons { public static final String DEFAULT_ALERT_PROM_CLUSTER = "public"; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/Base.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/Base.java index caaed4d2e..65c54aaed 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/Base.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/Base.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.enums; public interface Base { @@ -21,4 +25,4 @@ public interface Base { public String getDesc(); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ClientType.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ClientType.java index e69760528..f4858975a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ClientType.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ClientType.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.enums; @@ -39,4 +43,4 @@ public Integer getCode() { public String getDesc() { return desc; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ErrorCode.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ErrorCode.java index 433f1d917..2d7684d8d 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ErrorCode.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ErrorCode.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.enums; public enum ErrorCode { @@ -40,4 +44,4 @@ public int getCode() { public String getMessage() { return message; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleAlertStatusEnum.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleAlertStatusEnum.java index 165e39bde..3a44887e4 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleAlertStatusEnum.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleAlertStatusEnum.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.enums; import lombok.ToString; @@ -55,4 +59,4 @@ public Integer getCode() { public String getDesc() { return desc; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleSilenceStatusEnum.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleSilenceStatusEnum.java index 6b913a837..01d2b84e0 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleSilenceStatusEnum.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/RuleSilenceStatusEnum.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.enums; public enum RuleSilenceStatusEnum implements Base { @@ -50,4 +54,4 @@ public Integer getCode() { public String getDesc() { return desc; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ScrapeJobStatusEnum.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ScrapeJobStatusEnum.java index 23c62f87c..c38a71c60 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ScrapeJobStatusEnum.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/enums/ScrapeJobStatusEnum.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.enums; import lombok.ToString; @@ -55,4 +59,4 @@ public Integer getCode() { public String getDesc() { return desc; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/ArgCheck.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/ArgCheck.java index f9ec98dc9..fa983f278 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/ArgCheck.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/ArgCheck.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param; public interface ArgCheck { diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/BaseParam.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/BaseParam.java index d740b0538..1513c8cbd 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/BaseParam.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/BaseParam.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param; import lombok.Data; @@ -28,4 +32,4 @@ public class BaseParam implements ArgCheck, Serializable { public boolean argCheck() { return false; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilence.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilence.java index cc747e042..9f1d3f284 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilence.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilence.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alert; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -34,4 +38,4 @@ public class AMSilence { private String createdBy; private String id; private AMSilenceStatus status; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceResponse.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceResponse.java index 1827ab5f1..cff107ecd 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceResponse.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceResponse.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alert; import lombok.Data; @@ -22,4 +26,4 @@ @ToString(callSuper = true) public class AMSilenceResponse { private String silenceID; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceStatus.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceStatus.java index 5c2bf6ea3..4cd5e3303 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceStatus.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/AMSilenceStatus.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alert; import lombok.Data; @@ -22,4 +26,4 @@ @ToString(callSuper = true) public class AMSilenceStatus { private String state; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/Matcher.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/Matcher.java index 5268902aa..9adaaa09a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/Matcher.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/Matcher.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alert; import lombok.Data; @@ -23,4 +27,4 @@ public class Matcher { private String value; //Matching values can be label values or regular expressions. private boolean isRegex; //Whether it is a regular expression match private boolean isEqual; //Whether it is an equal match -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleAlertParam.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleAlertParam.java index 0bb6b4c62..b839c029b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleAlertParam.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleAlertParam.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alert; import org.apache.ozhera.prometheus.agent.param.BaseParam; import lombok.Data; @@ -42,4 +46,4 @@ public class RuleAlertParam extends BaseParam { public boolean argCheck() { return true; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleSilenceParam.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleSilenceParam.java index 62251d9f7..34c78c7c7 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleSilenceParam.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alert/RuleSilenceParam.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alert; @@ -62,4 +66,4 @@ private boolean ValidateMatchers(List matchers) { }); return valid.get(); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/AlertManagerConfig.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/AlertManagerConfig.java index 47ce1f22d..bc185cc0e 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/AlertManagerConfig.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/AlertManagerConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alertManager; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -28,4 +32,4 @@ public class AlertManagerConfig { private List groups; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Group.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Group.java index 094a25e65..c463fef2b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Group.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Group.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alertManager; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -29,4 +33,4 @@ public class Group { private String name; private List rules; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Rule.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Rule.java index d7bd2e534..451f4e5a7 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Rule.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/alertManager/Rule.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.alertManager; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -31,4 +35,4 @@ public class Rule { private Map labels; private Map annotations; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alert_static_config.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alert_static_config.java index 74c0ada22..00788101e 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alert_static_config.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alert_static_config.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -25,4 +29,4 @@ @Data public class Alert_static_config { private List targets; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alerting.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alerting.java index e01782667..3d9771f4a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alerting.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alerting.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonInclude; @@ -25,4 +29,4 @@ public class Alerting { private List alertmanagers; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alertmanagers.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alertmanagers.java index 566e92957..e94170487 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alertmanagers.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Alertmanagers.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonInclude; @@ -25,4 +29,4 @@ public class Alertmanagers { private List static_configs; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Authorization.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Authorization.java index 47f00a348..3f740dcb9 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Authorization.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Authorization.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -26,4 +30,4 @@ public class Authorization { private String credentials_file; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/BasicAuth.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/BasicAuth.java index 75c43cde7..5606791b4 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/BasicAuth.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/BasicAuth.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import lombok.Data; @@ -23,4 +27,4 @@ public class BasicAuth implements Serializable { private String username; private String password; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/External_labels.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/External_labels.java index aa11c7c4a..07035dfe1 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/External_labels.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/External_labels.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -27,4 +31,4 @@ public class External_labels { private String monitor; private String foo; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/File_sd_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/File_sd_configs.java index f54a97045..af67d4019 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/File_sd_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/File_sd_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -28,4 +32,4 @@ public class File_sd_configs { private List files; private String refresh_interval; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Global.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Global.java index 9102ce587..35226e781 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Global.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Global.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -28,4 +32,4 @@ public class Global { private String evaluation_interval; private String scrape_timeout; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Http_sd_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Http_sd_configs.java index 72f1cb76a..88d184be6 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Http_sd_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Http_sd_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -27,4 +31,4 @@ public class Http_sd_configs implements Serializable { private String url; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Metric_relabel_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Metric_relabel_configs.java index 40f5397db..a317b61b4 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Metric_relabel_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Metric_relabel_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -33,4 +37,4 @@ public class Metric_relabel_configs implements Serializable { private String replacement; private String action; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Oauth2.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Oauth2.java index 4c916abcf..37b4cb376 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Oauth2.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Oauth2.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/PrometheusConfig.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/PrometheusConfig.java index 367e57a8f..d0c9d0cda 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/PrometheusConfig.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/PrometheusConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Relabel_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Relabel_configs.java index 8f6a80903..86307cb64 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Relabel_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Relabel_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -34,4 +38,4 @@ public class Relabel_configs implements Serializable { private String action; private String separator; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_read.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_read.java index 79c6363af..354635788 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_read.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_read.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -29,4 +33,4 @@ public class Remote_read { private String name; private boolean enable_http2; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_write.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_write.java index 588f498d8..d43eda40b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_write.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Remote_write.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -31,4 +35,4 @@ public class Remote_write { private List write_relabel_configs; private Oauth2 oauth2; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Scrape_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Scrape_configs.java index 570068295..e79048a78 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Scrape_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Scrape_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -42,4 +46,4 @@ public class Scrape_configs { private Map> params; private String scheme; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Static_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Static_configs.java index 87aec63a4..a4c2eb4ec 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Static_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Static_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -31,4 +35,4 @@ public class Static_configs implements Serializable { private List targets; private Map labels; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Tls_config.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Tls_config.java index 72405a85c..26517b926 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Tls_config.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Tls_config.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -27,4 +31,4 @@ public class Tls_config { private String cert_file; private String key_file; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Write_relabel_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Write_relabel_configs.java index 52e1de584..a50dfea1d 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Write_relabel_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/Write_relabel_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliLabel.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliLabel.java index bbb6a9380..a7703c2f9 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliLabel.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliLabel.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus.ali; import lombok.Data; @@ -26,4 +30,4 @@ public class AliLabel { private String Name; private String Value; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyObjects.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyObjects.java index 73e095d67..5e519b848 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyObjects.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyObjects.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus.ali; import lombok.Data; @@ -30,4 +34,4 @@ public class AliNotifyObjects { private Long notifyObjectId; private String notifyObjectName; private List notifyChannels; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyRule.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyRule.java index 1e193c3fd..1ed847cea 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyRule.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/AliNotifyRule.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus.ali; import lombok.Data; @@ -29,4 +33,4 @@ public class AliNotifyRule { private String notifyEndTime; private List notifyChannels; private List notifyObjects; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/Scrape_configs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/Scrape_configs.java index 98428f3e0..72bef44e2 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/Scrape_configs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/prometheus/ali/Scrape_configs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.prometheus.ali; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -33,4 +37,4 @@ public class Scrape_configs { private List scrape_configs; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigDetail.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigDetail.java index 5306ce4dd..10f52bfae 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigDetail.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigDetail.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.scrapeConfig; import org.apache.ozhera.prometheus.agent.param.prometheus.BasicAuth; @@ -44,4 +48,4 @@ public class ScrapeConfigDetail { private List http_sd_configs; private List metric_relabel_configs; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigParam.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigParam.java index bc6d530de..3d8f1b797 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigParam.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/ScrapeConfigParam.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.scrapeConfig; import org.apache.ozhera.prometheus.agent.param.BaseParam; @@ -53,4 +57,4 @@ public class ScrapeConfigParam extends BaseParam { public boolean argCheck() { return true; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/StaticConfigs.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/StaticConfigs.java index 65799174c..7cd7c70d0 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/StaticConfigs.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/param/scrapeConfig/StaticConfigs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.param.scrapeConfig; import lombok.Data; @@ -24,4 +28,4 @@ public class StaticConfigs { private List targets; private Map labels; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/Result.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/Result.java index 693bbc8d0..9eb63d5e0 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/Result.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/Result.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result; import org.apache.ozhera.prometheus.agent.enums.ErrorCode; @@ -91,4 +95,4 @@ public String toString() { ", data=" + data + '}'; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/AlertManagerFireResult.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/AlertManagerFireResult.java index 86ca5de93..4be40c9cc 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/AlertManagerFireResult.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/AlertManagerFireResult.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result.alertManager; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -36,4 +40,4 @@ public class AlertManagerFireResult { private String version; private String groupKey; private int truncatedAlerts; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Alerts.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Alerts.java index 81fde5a1b..2205c454d 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Alerts.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Alerts.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result.alertManager; import com.fasterxml.jackson.annotation.JsonInclude; @@ -29,4 +33,4 @@ public class Alerts { private String generatorURL; private String fingerprint; private String expectedSilenceTime; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Annotations.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Annotations.java index 4b425c976..2fc2c2402 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Annotations.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Annotations.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result.alertManager; import com.fasterxml.jackson.annotation.JsonInclude; @@ -23,4 +27,4 @@ public class Annotations { private String summary; private String title; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonAnnotations.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonAnnotations.java index 70be347c9..f1442536c 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonAnnotations.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonAnnotations.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result.alertManager; import com.fasterxml.jackson.annotation.JsonInclude; @@ -23,4 +27,4 @@ public class CommonAnnotations { private String summary; private String title; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonLabels.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonLabels.java index 914581749..65e47b0ac 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonLabels.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/CommonLabels.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result.alertManager; import com.fasterxml.jackson.annotation.JsonInclude; @@ -49,4 +53,4 @@ public class CommonLabels { private String namespace; private String pod; private String restartCounts; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/GroupLabels.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/GroupLabels.java index 25c85f2bc..987043055 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/GroupLabels.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/GroupLabels.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result.alertManager; import com.fasterxml.jackson.annotation.JsonInclude; @@ -22,4 +26,4 @@ @JsonInclude(JsonInclude.Include.NON_NULL) public class GroupLabels { private String alertname; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Labels.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Labels.java index 9dce26126..f74b24011 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Labels.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/result/alertManager/Labels.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.result.alertManager; import com.fasterxml.jackson.annotation.JsonInclude; @@ -50,4 +54,4 @@ public class Labels { private String pod; private String restartCounts; private String detailRedirectUrl; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/CommitPoolUtil.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/CommitPoolUtil.java index ce9b0e251..7455a6d19 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/CommitPoolUtil.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/CommitPoolUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.util; import java.util.concurrent.ScheduledThreadPoolExecutor; @@ -69,4 +73,4 @@ public class CommitPoolUtil { System.out.println("CommitPoolUtil static error :" + e.getMessage()); } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/DateUtil.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/DateUtil.java index a33605b0b..651fe9fda 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/DateUtil.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/DateUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.util; import lombok.SneakyThrows; @@ -86,4 +90,4 @@ public static String ISO8601UTCTOCST(String utcTime) { } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FileUtil.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FileUtil.java index a00b280c4..487c1ec72 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FileUtil.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FileUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.util; @@ -187,4 +191,4 @@ public static void GenerateFile(String path) { } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FreeMarkerUtil.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FreeMarkerUtil.java index 1b9b56efd..f1465f3a4 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FreeMarkerUtil.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/FreeMarkerUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.util; import java.io.*; @@ -123,4 +127,4 @@ public static void main(String[] args) { e.printStackTrace(); } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/Http.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/Http.java index 6eee58c1c..83948edc9 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/Http.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/Http.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.util; import lombok.extern.slf4j.Slf4j; @@ -99,4 +103,4 @@ public static String innerRequestResponseData(String data, String url, String me return e.getMessage(); } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/MailUtil.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/MailUtil.java index a3c1ac650..e1a8df072 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/MailUtil.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/MailUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.util; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -141,4 +145,4 @@ public void sendMailToUserArray(ArrayList toEmailAddressArrayList, Strin } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/YamlUtil.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/YamlUtil.java index 44d69cb24..d86768366 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/YamlUtil.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/YamlUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.util; import com.fasterxml.jackson.core.JsonProcessingException; @@ -83,4 +87,4 @@ public static String toYaml(Object object) { } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/vo/PageDataVo.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/vo/PageDataVo.java index 92c8c280c..63dd4e427 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/vo/PageDataVo.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/vo/PageDataVo.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.vo; import lombok.Data; @@ -28,4 +32,4 @@ public class PageDataVo implements Serializable { private Integer pageSize; private Integer total; private List list; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/CommonTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/CommonTest.java index 0d1a04e9a..7dc1cbb4b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/CommonTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/CommonTest.java @@ -1,20 +1,24 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; public class CommonTest { -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/TimeTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/TimeTest.java index e3ed2fe24..5c5770967 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/TimeTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/test/java/org/apache/ozhera/prometheus/agent/test/TimeTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; import org.apache.ozhera.prometheus.agent.util.DateUtil; @@ -50,4 +54,4 @@ public void testTime() { System.out.println(DateUtil.ISO8601UTCTOTimeStamp(time)); System.out.println(DateUtil.ISO8601UTCTOCST(time)); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/pom.xml b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/pom.xml index 4aef23858..5bf7a0885 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/pom.xml +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/pom.xml @@ -1,4 +1,25 @@ + + @@ -47,4 +68,4 @@ - + \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/BaseDao.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/BaseDao.java index 3c4276264..eeceeddcf 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/BaseDao.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/BaseDao.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.Impl; import org.nutz.dao.Dao; @@ -30,4 +34,4 @@ protected Pager buildPager(Integer pageNo, Integer pageSize) { pager.setPageSize(pageSize); return pager; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/RuleAlertDao.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/RuleAlertDao.java index ffc24db89..4168346e7 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/RuleAlertDao.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/RuleAlertDao.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.Impl; import org.apache.ozhera.prometheus.agent.entity.RuleAlertEntity; @@ -134,4 +138,4 @@ public int UpdateRuleAlertDeleteToDone(String alertName) { } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/ScrapeConfigDao.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/ScrapeConfigDao.java index c4a3d65e2..f890fb1b9 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/ScrapeConfigDao.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/ScrapeConfigDao.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.Impl; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -149,4 +153,4 @@ public int UpdateScrapeConfigDeleteToDone(String jobName) { return 0; } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/SilenceDao.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/SilenceDao.java index 38ba72069..ab5640b7d 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/SilenceDao.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/Impl/SilenceDao.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.Impl; import org.apache.ozhera.prometheus.agent.entity.RuleSilenceEntity; @@ -30,4 +34,4 @@ public class SilenceDao extends BaseDao{ public Long CreateSilence(RuleSilenceEntity entity) { return dao.insert(entity).getId(); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/config/DaoConfig.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/config/DaoConfig.java index df79b8900..c6cff276c 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/config/DaoConfig.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/config/DaoConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.config; import org.nutz.dao.Dao; @@ -32,4 +36,4 @@ public Dao dao(@Qualifier("masterDataSource") DataSource masterDataSource) { return dao; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleAlertEntity.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleAlertEntity.java index fb1d607b8..a6e419133 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleAlertEntity.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleAlertEntity.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.entity; import lombok.Data; @@ -99,4 +103,4 @@ public class RuleAlertEntity implements Serializable { @Column("alert_group") private String alert_group; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceEntity.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceEntity.java index 03061f096..9ab6b941a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceEntity.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceEntity.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.entity; import lombok.Data; @@ -60,4 +64,4 @@ public class RuleSilenceEntity { @Column("created_by") private String createdBy; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceMatcherEntity.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceMatcherEntity.java index a9c74cf6e..e3c308f5c 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceMatcherEntity.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/RuleSilenceMatcherEntity.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.entity; import lombok.Data; @@ -39,4 +43,4 @@ public class RuleSilenceMatcherEntity { @Column("is_equal") private int isEqual; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/ScrapeConfigEntity.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/ScrapeConfigEntity.java index 026a0d777..2d3d393a5 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/ScrapeConfigEntity.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-dao/src/main/java/org/apache/ozhera/prometheus/agent/entity/ScrapeConfigEntity.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.entity; import lombok.Data; @@ -70,4 +74,4 @@ public class ScrapeConfigEntity implements Serializable { @Column("deleted_time") private Date DeletedTime; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/pom.xml b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/pom.xml index 672dd72fc..5e7ab7975 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/pom.xml +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheck.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheck.java index b023b116a..6fab86a40 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheck.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheck.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.aop; import java.lang.annotation.*; @@ -22,4 +26,4 @@ @Documented public @interface ArgCheck { -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheckAspect.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheckAspect.java index 40417c051..19c59dd98 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheckAspect.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/aop/ArgCheckAspect.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.aop; import org.apache.ozhera.prometheus.agent.enums.ErrorCode; @@ -84,4 +88,4 @@ public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable { private Object getResult(Class resultCls, ErrorCode responseCode) { return responseCode; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/bootstrap/PrometheusAgentBootstrap.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/bootstrap/PrometheusAgentBootstrap.java index ce074fa39..dd0cb6966 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/bootstrap/PrometheusAgentBootstrap.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/bootstrap/PrometheusAgentBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.bootstrap; import lombok.extern.slf4j.Slf4j; diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/CacheConfiguration.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/CacheConfiguration.java index 3b79a5486..114a292f0 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/CacheConfiguration.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/CacheConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.config; import com.google.common.cache.Cache; @@ -39,4 +43,4 @@ public Cache guavaCache() { .expireAfterWrite(7200, TimeUnit.SECONDS) // The expiration time of the entry .build(); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/ClientConfiguration.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/ClientConfiguration.java index 1369c9bfc..8f793a335 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/ClientConfiguration.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/ClientConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -80,4 +84,4 @@ public Client AlertManagerClient() { } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DataSourceConfiguration.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DataSourceConfiguration.java index 7d30342d9..29415a171 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DataSourceConfiguration.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DataSourceConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -90,4 +94,4 @@ private void setDatasource(ComboPooledDataSource dataSource) { public DataSourceTransactionManager masterTransactionManager() throws PropertyVetoException, NamingException { return new DataSourceTransactionManager(masterDataSource()); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DubboConfiguration.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DubboConfiguration.java index 51d94cc16..38552be3b 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DubboConfiguration.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/DubboConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -65,4 +69,4 @@ public ProtocolConfig protocolConfig() { return protocolConfig; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/NacosConfiguration.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/NacosConfiguration.java index dfd7b7ea9..48bb272b3 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/NacosConfiguration.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/config/NacosConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.config; import com.alibaba.nacos.api.annotation.NacosProperties; diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusAlertController.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusAlertController.java index e996c3776..d96e04e97 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusAlertController.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusAlertController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.controller; import com.google.gson.Gson; @@ -112,4 +116,4 @@ public Result sendAlert(@RequestBody String body) { return result; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusController.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusController.java index de64d309f..adb39d5a8 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusController.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.controller; import org.apache.ozhera.prometheus.agent.domain.Ips; @@ -83,4 +87,4 @@ public List getK8sNodeIp(String type) { public List getHeraAppPodIp() { return prometheusIpService.getHeraAppPodIp(); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusScrapeJobController.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusScrapeJobController.java index bce654146..90ff94bb7 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusScrapeJobController.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusScrapeJobController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.controller; import org.apache.ozhera.prometheus.agent.Commons; @@ -78,4 +82,4 @@ public Result GetScrapeConfigList(Integer page_size, Integer page_no) { return result; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusSilenceController.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusSilenceController.java index a49ee4bc5..adf93306d 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusSilenceController.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusSilenceController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.controller; @@ -118,4 +122,4 @@ private SilenceAlertManagerReqBuilder parseSilenceData(String json) { return builder; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusVMController.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusVMController.java index 32ea4bb15..c82b880bd 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusVMController.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/java/org/apache/ozhera/prometheus/agent/controller/PrometheusVMController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.controller; import org.apache.ozhera.prometheus.agent.domain.Ips; @@ -71,4 +75,4 @@ public List getClusterIp(String name) { log.info("getClusterIp begin,name:{}", name); return vmService.getVMClusterIp(name); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application-opensource-outer.properties b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application-opensource-outer.properties index 45eb95b3a..a7c6aba2a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application-opensource-outer.properties +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application-opensource-outer.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=prometheus-agent server.type=opensource-outer diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application.properties b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application.properties index ed284812d..0e2ba695a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application.properties +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=prometheus-agent server.type=${server.type} diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/dubbo.properties b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/dubbo.properties index a07ca2a3c..0f56dc951 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/dubbo.properties +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/dubbo.properties @@ -1 +1,16 @@ -dubbo.trace.log.path=/home/work/log/dubbo/prometheus-agent_ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +dubbo.trace.log.path=/home/work/log/dubbo/prometheus-agent_ \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/logback.xml b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/logback.xml index ec2cc0221..aa19e8092 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/logback.xml +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/main/resources/logback.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/AliPrometheusTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/AliPrometheusTest.java index d6f706784..581509a52 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/AliPrometheusTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/AliPrometheusTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; import lombok.extern.slf4j.Slf4j; @@ -163,4 +167,4 @@ public DeleteAlertRuleResponse DeleteAlertRule(Long alertId) { } }*/ -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/MailTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/MailTest.java index 755e07db1..3cb9fce56 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/MailTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/MailTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; import com.google.gson.Gson; @@ -103,4 +107,4 @@ public class MailTest { " \"groupKey\":\"{}/{send_interval\\u003d\\\"5m\\\"}:{alertname\\u003d\\\"k8s_container_cpu_use_rate-2-k8s_container_cpu_use_rate-1678682933270\\\", group_key\\u003d\\\"localhost:5195\\\"}\",\n" + " \"truncatedAlerts\":0\n" + "}"; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/RuleSilenceTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/RuleSilenceTest.java index e1200607d..0e4bd98ee 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/RuleSilenceTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/RuleSilenceTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; /** @@ -56,4 +60,4 @@ public void test() { System.out.println(e.getMessage()); } }*/ -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuTest.java index 036c0a52e..370482654 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-server/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; import com.google.gson.Gson; @@ -103,4 +107,4 @@ public class feishuTest { " \"truncatedAlerts\":0\n" + "}"; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/pom.xml b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/pom.xml index 9bc3da8c3..26f827971 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/pom.xml +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/domain/Ips.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/domain/Ips.java index fc62ee9db..cdb84fb28 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/domain/Ips.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/domain/Ips.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.domain; import java.util.List; @@ -28,4 +32,4 @@ public List getTargets() { public void setTargets(List targets) { this.targets = targets; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/DingDingService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/DingDingService.java index 43a6acc5f..1e1ca6a68 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/DingDingService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/DingDingService.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service; @@ -29,4 +32,4 @@ public interface DingDingService { void updateDingDingCard(String content, String cardBizId); String getNameByUserId(String userId); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/FeishuService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/FeishuService.java index 56e6b9623..310ff81a5 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/FeishuService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/FeishuService.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service; @@ -23,4 +26,4 @@ public interface FeishuService { void sendFeishu(String content, String[] receivers, String[] feishuGroups, boolean sendCard); String getUserIdByEmail(String email); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/InitService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/InitService.java index a478d5353..4611e0828 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/InitService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/InitService.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service; diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/MioneMachineService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/MioneMachineService.java index bd3b05f41..64ab83bd7 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/MioneMachineService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/MioneMachineService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service; import org.apache.ozhera.prometheus.agent.domain.Ips; @@ -24,4 +28,4 @@ public interface MioneMachineService { List queryMachineList(String type) ; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusIpService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusIpService.java index 557965d8d..9e577cd59 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusIpService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusIpService.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service; @@ -34,4 +37,4 @@ public interface PrometheusIpService { List getHeraAppPodIp(); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusVmService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusVmService.java index b73f7521e..09db3f163 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusVmService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/PrometheusVmService.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service; @@ -29,4 +32,4 @@ public interface PrometheusVmService { List getVMClusterIp(String name); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/BaseAlertContact.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/BaseAlertContact.java index 83e7e88bc..f2b12368d 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/BaseAlertContact.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/BaseAlertContact.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.alarmContact; import org.apache.ozhera.prometheus.agent.result.alertManager.AlertManagerFireResult; @@ -145,4 +149,4 @@ private Alerts StringNull2Null(Alerts alerts) { alerts.getLabels().setMetrics_flag(Objects.equals(alerts.getLabels().getMetrics_flag(), "null") ? null : alerts.getLabels().getMetrics_flag()); return alerts; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/DingAlertContact.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/DingAlertContact.java index 2a319bd0b..2e3133b75 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/DingAlertContact.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/DingAlertContact.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.alarmContact; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -164,4 +168,4 @@ public void updateDingDingCard(String userId, String content, String expectedSil log.error("DingAlertContact.updateDingDingCard error:{}", e); } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/FeishuAlertContact.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/FeishuAlertContact.java index f08ac8913..28865ecbf 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/FeishuAlertContact.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/FeishuAlertContact.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.alarmContact; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -118,4 +122,4 @@ public void Reach(AlertManagerFireResult fireResult) { log.info("SendAlert success AlertName:{}", alertName); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/MailAlertContact.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/MailAlertContact.java index c18107134..6d11b651f 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/MailAlertContact.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/alarmContact/MailAlertContact.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.alarmContact; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -115,4 +119,4 @@ public void Reach(AlertManagerFireResult fireResult) { } }); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/MioneMachineServiceExtension.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/MioneMachineServiceExtension.java index 41b7e76cf..78c053b93 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/MioneMachineServiceExtension.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/MioneMachineServiceExtension.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service.api; @@ -27,4 +30,4 @@ public interface MioneMachineServiceExtension { List queryMachineList(String type); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/PrometheusIpServiceExtension.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/PrometheusIpServiceExtension.java index 4559373b7..708cca0cd 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/PrometheusIpServiceExtension.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/PrometheusIpServiceExtension.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.api; import org.apache.ozhera.prometheus.agent.domain.Ips; @@ -32,4 +36,4 @@ public interface PrometheusIpServiceExtension { Set getEtcdHosts(); List getK8sNodeIp(String type); -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/MioneMachineServiceExtensionImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/MioneMachineServiceExtensionImpl.java index 671be1fc3..54869ad6a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/MioneMachineServiceExtensionImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/MioneMachineServiceExtensionImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.api.impl; import org.apache.ozhera.prometheus.agent.domain.Ips; @@ -33,4 +37,4 @@ public class MioneMachineServiceExtensionImpl implements MioneMachineServiceExte public List queryMachineList(String type) { return null; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/PrometheusIpServiceExtensionImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/PrometheusIpServiceExtensionImpl.java index 1dc7c31b6..f4ed41426 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/PrometheusIpServiceExtensionImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/api/impl/PrometheusIpServiceExtensionImpl.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service.api.impl; @@ -415,4 +418,4 @@ private String innerRequest(String data, String url, String apiKey, String metho } }*/ -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/SilenceAlertManagerReqBuilder.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/SilenceAlertManagerReqBuilder.java index 2c7384322..9ed3abf79 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/SilenceAlertManagerReqBuilder.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/SilenceAlertManagerReqBuilder.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.dto; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -34,4 +38,4 @@ public class SilenceAlertManagerReqBuilder { private String outTrackId; private String content; private String callbackTitle; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/dingding/SilenceCallBack.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/dingding/SilenceCallBack.java index 24f6ed276..277bea6c1 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/dingding/SilenceCallBack.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/dingding/SilenceCallBack.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.dto.dingding; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -30,4 +34,4 @@ public class SilenceCallBack { private String corpId; private String userId; private String content; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/heraApp/GetAllPodIpRes.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/heraApp/GetAllPodIpRes.java index 38ac804d2..a06db1cff 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/heraApp/GetAllPodIpRes.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/dto/heraApp/GetAllPodIpRes.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.dto.heraApp; import lombok.Data; @@ -29,4 +33,4 @@ public class GetAllPodIpRes { private String message; private List data; private boolean success; -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/DingDingServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/DingDingServiceImpl.java index 78e093502..f725261cc 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/DingDingServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/DingDingServiceImpl.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service.impl; @@ -270,4 +273,4 @@ public String getNameByUserId(String userId) { return null; }*/ } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/FeishuServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/FeishuServiceImpl.java index ee996f25b..6bf7a8116 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/FeishuServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/FeishuServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -86,4 +90,4 @@ public void sendFeishu(String content, String[] receivers, String[] feishuGroups public String getUserIdByEmail(String email) { return feiShu.getUserIdByEmail(email); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/InitServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/InitServiceImpl.java index fe2509313..80b87eb5a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/InitServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/InitServiceImpl.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service.impl; diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/MioneMachineServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/MioneMachineServiceImpl.java index e4d4f26cb..ec9e1a3e2 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/MioneMachineServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/MioneMachineServiceImpl.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service.impl; @@ -36,4 +39,4 @@ public List queryMachineList(String type) { return mioneMachineServiceExtension.queryMachineList(type); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusAlertServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusAlertServiceImpl.java index c33fcd8db..aea6c855e 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusAlertServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusAlertServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.impl; import org.apache.ozhera.prometheus.agent.Commons; @@ -86,4 +90,4 @@ public Result EnabledRuleAlert(String id, String enabled) { Result result = ruleAlertService.EnabledRuleAlert(id,enabled); return result; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusDubboServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusDubboServiceImpl.java index 4eb01dc0f..c680c8f3a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusDubboServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusDubboServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.impl; @@ -44,4 +48,4 @@ public Result> getIpsByAppName(PrometheusReq req) { return Result.success(res); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusIpServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusIpServiceImpl.java index 48508bf6b..e6422b619 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusIpServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusIpServiceImpl.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service.impl; @@ -97,4 +100,4 @@ public List getHeraAppPodIp() { } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusScrapeJobImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusScrapeJobImpl.java index e601c1899..61d386d11 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusScrapeJobImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusScrapeJobImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.impl; import org.apache.ozhera.prometheus.agent.Commons; @@ -69,4 +73,4 @@ public Result GetScrapeConfigList(Integer page_size,Integer page_no) { Result result = scrapeJobService.GetScrapeConfigList(page_size, page_no); return result; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusVmServiceImpl.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusVmServiceImpl.java index 89d8bf3c6..c3da06273 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusVmServiceImpl.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/impl/PrometheusVmServiceImpl.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.prometheus.agent.service.impl; @@ -96,4 +99,4 @@ public List getVMClusterIp(String name) { return null; } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleAlertService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleAlertService.java index 183cfd159..699060d69 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleAlertService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleAlertService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.prometheus; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -277,4 +281,4 @@ private int transPriority2Integer(String priority) { } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleSilenceService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleSilenceService.java index 541fa4015..c0e2b0a0f 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleSilenceService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/RuleSilenceService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.prometheus; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -199,4 +203,4 @@ private void updateCardByAlertType(String userId, String content, String expecte } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/ScrapeJobService.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/ScrapeJobService.java index 7413aa640..59bf2a17a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/ScrapeJobService.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/main/java/org/apache/ozhera/prometheus/agent/service/prometheus/ScrapeJobService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.service.prometheus; import com.google.gson.Gson; @@ -174,4 +178,4 @@ private ScrapeConfigDetail getScrapeJobBody(ScrapeConfigParam param) { return scrapeConfigDetail; } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/DingDingTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/DingDingTest.java index c59e85515..cf20c3233 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/DingDingTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/DingDingTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; import com.google.gson.Gson; @@ -221,4 +225,4 @@ void filterName(Map map) { } } } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuCartTest.java b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuCartTest.java index 631083613..a7eca4f8a 100644 --- a/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuCartTest.java +++ b/ozhera-prometheus-agent/ozhera-prometheus-agent-service/src/test/java/org/apache/ozhera/prometheus/agent/test/feishuCartTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.agent.test; import com.google.gson.Gson; @@ -235,4 +239,4 @@ public void testFeishuBasicAlertCard() { } }); } -} +} \ No newline at end of file diff --git a/ozhera-prometheus-agent/pom.xml b/ozhera-prometheus-agent/pom.xml index ed9b73ff0..1be7108c3 100644 --- a/ozhera-prometheus-agent/pom.xml +++ b/ozhera-prometheus-agent/pom.xml @@ -1,4 +1,25 @@ + + @@ -222,6 +243,4 @@ - - - + \ No newline at end of file diff --git a/ozhera-tspandata/pom.xml b/ozhera-tspandata/pom.xml index 59b8072cb..8bf867057 100644 --- a/ozhera-tspandata/pom.xml +++ b/ozhera-tspandata/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeKey.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeKey.java index 664e02150..7e012844b 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeKey.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeKey.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -396,4 +400,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeType.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeType.java index 24d3b8cb6..95b7e6d46 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeType.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributeType.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -64,4 +68,4 @@ public static TAttributeType findByValue(int var0) { return null; } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributes.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributes.java index e07589aca..c2ea1cc47 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributes.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TAttributes.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -488,4 +492,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TEvent.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TEvent.java index b6e5cff1a..8d8358353 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TEvent.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TEvent.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -584,4 +588,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TExtra.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TExtra.java index 656cedfc1..bba605f80 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TExtra.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TExtra.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -493,4 +497,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TInstrumentationLibraryInfo.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TInstrumentationLibraryInfo.java index 21d2d9df9..fcb4421aa 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TInstrumentationLibraryInfo.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TInstrumentationLibraryInfo.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -395,4 +399,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TKind.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TKind.java index e76a9d95d..d0795e9f6 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TKind.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TKind.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -55,4 +59,4 @@ public static TKind findByValue(int var0) { return null; } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TLink.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TLink.java index b967c7ddb..532684b10 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TLink.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TLink.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -493,4 +497,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TResource.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TResource.java index 94bc20ed4..867ab4150 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TResource.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TResource.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -298,4 +302,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanContext.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanContext.java index 3cc7abe28..8644ee6c2 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanContext.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanContext.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -681,4 +685,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanData.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanData.java index 5bf6a1782..4a6bcf31c 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanData.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanData.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -2215,4 +2219,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TStatus.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TStatus.java index 6a39757de..817c5cd2d 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TStatus.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TStatus.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -49,4 +53,4 @@ public static TStatus findByValue(int var0) { return null; } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TTraceState.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TTraceState.java index f2c85094d..08f0efa59 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TTraceState.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TTraceState.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -341,4 +345,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TValue.java b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TValue.java index f923761ec..6431e0064 100644 --- a/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TValue.java +++ b/ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TValue.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * 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. */ + // // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) @@ -1139,4 +1143,4 @@ public String getFieldName() { } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/pom.xml b/prometheus-starter-all/pom.xml index 741e53543..7db229636 100644 --- a/prometheus-starter-all/pom.xml +++ b/prometheus-starter-all/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/prometheus-starter-all/prometheus-diy-client/pom.xml b/prometheus-starter-all/prometheus-diy-client/pom.xml index 5c19cc1f2..e3258952e 100644 --- a/prometheus-starter-all/prometheus-diy-client/pom.xml +++ b/prometheus-starter-all/prometheus-diy-client/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Metrics.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Metrics.java index 0de54200a..2e79a2920 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Metrics.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Metrics.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; import org.apache.ozhera.prometheus.all.client.binder.ClassLoaderMetricsReduced; @@ -118,4 +122,4 @@ public XmHistogram newHistogram(String metricName, double[] buckets, String... l return gMetricsMgr.newHistogram(metricName, DEFAULT_LATENCY_BUCKETS, labelNames); } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/MetricsManager.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/MetricsManager.java index e3faee259..9b02d89f9 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/MetricsManager.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/MetricsManager.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; /** * @author zhangxiaowei6 @@ -48,4 +52,4 @@ public interface MetricsManager { */ XmHistogram newHistogram(String metricName, double[] buckets, String... labelNames); -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Prometheus.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Prometheus.java index 5de0a7a4b..d2443dc84 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Prometheus.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/Prometheus.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; import io.micrometer.prometheus.PrometheusConfig; @@ -194,4 +198,4 @@ public Histogram getHistogram(String metricName, double[] buckets, String... lab return null; } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusCounter.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusCounter.java index 5ec3243a1..e228c863b 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusCounter.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusCounter.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; import io.prometheus.client.Counter; @@ -72,4 +76,4 @@ public void add(double delta, String... labelValues) { } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusGauge.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusGauge.java index 64a80ff02..1db54f352 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusGauge.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusGauge.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; import io.prometheus.client.Gauge; @@ -84,4 +88,4 @@ public void add(double delta,String... labelValue) { log.warn(throwable.getMessage()); } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusHistogram.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusHistogram.java index 12f71c749..6b3e8d2c4 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusHistogram.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/PrometheusHistogram.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; import io.prometheus.client.Histogram; @@ -67,4 +71,4 @@ public void observe(double delta,String... labelValue) { log.warn(throwable.getMessage()); } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmCounter.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmCounter.java index 036114415..fc1bad162 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmCounter.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmCounter.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; /** * @author zhangxiaowei6 @@ -32,4 +36,4 @@ public interface XmCounter { * @param delta */ void add(double delta,String... labelValues); -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmGauge.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmGauge.java index 6ef097eba..d6d40106e 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmGauge.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmGauge.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; /** * @author zhangxiaowei6 @@ -39,4 +43,4 @@ public interface XmGauge { * @param delta set Increment */ void add(double delta,String... labelValue); -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmHistogram.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmHistogram.java index 29e65fbf4..0758dc09d 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmHistogram.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/XmHistogram.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; /** * @author zhangxiaowei6 @@ -31,4 +35,4 @@ public interface XmHistogram { * @param delta Increment */ void observe(double delta,String... labelValue); -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/ClassLoaderMetricsReduced.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/ClassLoaderMetricsReduced.java index b9bc25de7..6d9dced7d 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/ClassLoaderMetricsReduced.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/ClassLoaderMetricsReduced.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client.binder; import io.micrometer.core.instrument.Gauge; @@ -49,4 +53,4 @@ public void bindTo(MeterRegistry registry) { ClassLoadingMXBean classLoadingBean = ManagementFactory.getClassLoadingMXBean(); Gauge.builder("jvm.classes.loaded", classLoadingBean, ClassLoadingMXBean::getLoadedClassCount).tags(this.tags).description("The number of classes that are currently loaded in the Java virtual machine").baseUnit("classes").register(registry); } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmGcMetricsReduced.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmGcMetricsReduced.java index 224cfe166..df6b8be7f 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmGcMetricsReduced.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmGcMetricsReduced.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client.binder; import com.sun.management.GarbageCollectionNotificationInfo; @@ -201,4 +205,4 @@ static JvmGcMetricsReduced.GcGenerationAge fromName(String name) { return (JvmGcMetricsReduced.GcGenerationAge)knownCollectors.getOrDefault(name, UNKNOWN); } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmMemoryMetricsReduced.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmMemoryMetricsReduced.java index 082d6dd6c..ca8210fa8 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmMemoryMetricsReduced.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmMemoryMetricsReduced.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client.binder; import io.micrometer.core.instrument.Gauge; @@ -94,4 +98,4 @@ private MemoryUsage getUsage(MemoryPoolMXBean memoryPoolMXBean) { return null; } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmThreadMetricsReduced.java b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmThreadMetricsReduced.java index ade431a65..224b71727 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmThreadMetricsReduced.java +++ b/prometheus-starter-all/prometheus-diy-client/src/main/java/org/apache/ozhera/prometheus/all/client/binder/JvmThreadMetricsReduced.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client.binder; import io.micrometer.core.instrument.Gauge; @@ -47,4 +51,4 @@ public void bindTo(MeterRegistry registry) { Gauge.builder("jvm.threads.daemon", threadBean, ThreadMXBean::getDaemonThreadCount).tags(this.tags).description("The current number of live daemon threads").baseUnit("threads").register(registry); Gauge.builder("jvm.threads.live", threadBean, ThreadMXBean::getThreadCount).tags(this.tags).description("The current number of live threads including both daemon and non-daemon threads").baseUnit("threads").register(registry); } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-client/src/test/java/org/apache/ozhera/prometheus/all/client/PrometheusTest.java b/prometheus-starter-all/prometheus-diy-client/src/test/java/org/apache/ozhera/prometheus/all/client/PrometheusTest.java index 601f3e316..c9f5181f4 100644 --- a/prometheus-starter-all/prometheus-diy-client/src/test/java/org/apache/ozhera/prometheus/all/client/PrometheusTest.java +++ b/prometheus-starter-all/prometheus-diy-client/src/test/java/org/apache/ozhera/prometheus/all/client/PrometheusTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.all.client; import org.junit.Before; import org.junit.Test; @@ -91,5 +95,4 @@ public void testException() { public void testJvm() throws InterruptedException { Thread.sleep(3000000); }*/ -} - +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-starter/pom.xml b/prometheus-starter-all/prometheus-diy-starter/pom.xml index df9d72feb..0d58bb3cc 100644 --- a/prometheus-starter-all/prometheus-diy-starter/pom.xml +++ b/prometheus-starter-all/prometheus-diy-starter/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/config/PrometheusConfigure.java b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/config/PrometheusConfigure.java index 5d60f9944..c92639a8f 100644 --- a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/config/PrometheusConfigure.java +++ b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/config/PrometheusConfigure.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.starter.all.config; import com.alibaba.nacos.api.exception.NacosException; @@ -95,4 +99,4 @@ private static void registNacos(String nacosAddr, String serviceName, String ser log.error("prometheus diy register nacos error:{}", e.getMessage()); } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/domain/Const.java b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/domain/Const.java index 6760673b0..8cc20fb66 100644 --- a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/domain/Const.java +++ b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/domain/Const.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.starter.all.domain; /** @@ -25,4 +29,4 @@ public class Const { public static final String MILINE = "miline"; public static final String MATRIX = "matrix"; -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/exporter/HTTPServer.java b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/exporter/HTTPServer.java index 368fccc38..8c8dfcf05 100644 --- a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/exporter/HTTPServer.java +++ b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/exporter/HTTPServer.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.starter.all.exporter; import com.sun.net.httpserver.HttpExchange; @@ -315,5 +319,4 @@ public void stop() { public int getPort() { return server.getAddress().getPort(); } -} - +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/factory/ServiceFactory.java b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/factory/ServiceFactory.java index b4929f39a..920db23ad 100644 --- a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/factory/ServiceFactory.java +++ b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/factory/ServiceFactory.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.starter.all.factory; import org.apache.ozhera.prometheus.starter.all.service.MilinePrometheusService; @@ -40,4 +44,4 @@ public static PrometheusService getPrometheusService(String platform){ throw new IllegalArgumentException("platform is invalid"); } } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/MilinePrometheusService.java b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/MilinePrometheusService.java index 6fa0ccc23..0bb042d2a 100644 --- a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/MilinePrometheusService.java +++ b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/MilinePrometheusService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.starter.all.service; import org.apache.commons.lang3.StringUtils; @@ -56,4 +60,4 @@ public String getPort() { } return port; } -} +} \ No newline at end of file diff --git a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/PrometheusService.java b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/PrometheusService.java index 4868a8597..e0514a788 100644 --- a/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/PrometheusService.java +++ b/prometheus-starter-all/prometheus-diy-starter/src/main/java/org/apache/ozhera/prometheus/starter/all/service/PrometheusService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.prometheus.starter.all.service; public abstract class PrometheusService { @@ -26,4 +30,4 @@ public abstract class PrometheusService { public abstract String getServerIp(); public abstract String getPort(); -} +} \ No newline at end of file diff --git a/trace-etl/README.md b/trace-etl/README.md index ee54c1d2a..949b3cd77 100644 --- a/trace-etl/README.md +++ b/trace-etl/README.md @@ -1,3 +1,24 @@ + + # Overview + A system for data extraction, loading, and transformation. + Currently, trace-etl mainly consists of four modules: trace-etl-server, trace-etl-es, trace-etl-manager, and trace-etl-nginx. @@ -29,4 +50,4 @@ ## trace-etl-extensions + This is the extension module in trace-etl, allowing multiple implementations for corresponding interfaces. For example, extensions for MQ such as RocketMQ and Kafka, and extensions for storage like Doris and ES. -+ To learn how to write an extension, refer to: [trace-etl-extensions documentation](docs/extension/extension.md) ++ To learn how to write an extension, refer to: [trace-etl-extensions documentation](docs/extension/extension.md) \ No newline at end of file diff --git a/trace-etl/README_cn.md b/trace-etl/README_cn.md index bca530f98..5786d7964 100644 --- a/trace-etl/README_cn.md +++ b/trace-etl/README_cn.md @@ -1,3 +1,24 @@ + + # 概述 + 数据抽取、加载和转换的系统。 + trace-etl目前主要包含trace-etl-server,trace-etl-es,trace-etl-manager,trace-etl-nginx这四个模块。 diff --git a/trace-etl/docs/extension/extension.md b/trace-etl/docs/extension/extension.md index 75bc59530..b7d8c8d9e 100644 --- a/trace-etl/docs/extension/extension.md +++ b/trace-etl/docs/extension/extension.md @@ -1,3 +1,24 @@ + + # Extension Mechanism Within `trace-etl`, Extensions are used to extend functionalities. diff --git a/trace-etl/docs/extension/extension_cn.md b/trace-etl/docs/extension/extension_cn.md index b1a8679eb..4552dd4f9 100644 --- a/trace-etl/docs/extension/extension_cn.md +++ b/trace-etl/docs/extension/extension_cn.md @@ -1,3 +1,24 @@ + + # Extension机制 在trace-etl中,使用Extension来对功能进行扩展。 @@ -49,4 +70,4 @@ 解释如下: -这代表着目前使用的MQ是kafka,使用的存储是Doris。只会实例化kafka和Doris相关的实现类。 +这代表着目前使用的MQ是kafka,使用的存储是Doris。只会实例化kafka和Doris相关的实现类。 \ No newline at end of file diff --git a/trace-etl/pom.xml b/trace-etl/pom.xml index 763ef9d7a..8684b27d3 100644 --- a/trace-etl/pom.xml +++ b/trace-etl/pom.xml @@ -1,4 +1,25 @@ + + @@ -217,4 +238,4 @@ - + \ No newline at end of file diff --git a/trace-etl/trace-etl-api/pom.xml b/trace-etl/trace-etl-api/pom.xml index a3d64d2bc..d1384cf0f 100644 --- a/trace-etl/trace-etl-api/pom.xml +++ b/trace-etl/trace-etl-api/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/DataSourceService.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/DataSourceService.java index 23c5f224e..b816fef2a 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/DataSourceService.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/DataSourceService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.api.service; import org.apache.ozhera.trace.etl.domain.DriverDomain; @@ -41,4 +45,4 @@ public interface DataSourceService { void insertDriver(DriverDomain driverDomain); void insertHeraSpan(TSpanData tSpanData, String serviceName, String spanName); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/HeraMetaDataService.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/HeraMetaDataService.java index 8b35dc559..a4b1969eb 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/HeraMetaDataService.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/HeraMetaDataService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.api.service; @@ -32,4 +36,4 @@ public interface HeraMetaDataService { int insert(List models); int delete(int metaId); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IEnterManager.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IEnterManager.java index f04c72ab4..f431977ae 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IEnterManager.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IEnterManager.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.api.service; import java.util.concurrent.atomic.AtomicInteger; @@ -29,4 +33,4 @@ public interface IEnterManager { AtomicInteger getProcessNum(); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IMetricsParseService.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IMetricsParseService.java index c4b81d930..84efd57cb 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IMetricsParseService.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/IMetricsParseService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.api.service; import org.apache.ozhera.tspandata.TSpanData; @@ -27,4 +31,4 @@ public interface IMetricsParseService { void parse(TSpanData tSpanData); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/MQExtension.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/MQExtension.java index d404317b4..adaea854d 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/MQExtension.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/MQExtension.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.api.service; import org.apache.ozhera.trace.etl.bo.MqConfig; @@ -39,4 +43,4 @@ public interface MQExtension { * if it's Kafka, messages with the same traceID will be sent to the same partition. */ void sendByTraceId(String traceId, PRODUCER message); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceEtlService.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceEtlService.java index 1bd19fc34..f5d1e692a 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceEtlService.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceEtlService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.api.service; import org.apache.ozhera.trace.etl.domain.HeraTraceEtlConfig; @@ -25,4 +29,4 @@ public interface TraceEtlService { void deleteConfig(HeraTraceEtlConfig config); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceManagerService.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceManagerService.java index 17dfcb331..b41a876d9 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceManagerService.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/api/service/TraceManagerService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.api.service; import org.apache.ozhera.trace.etl.domain.HeraTraceEtlConfig; @@ -27,4 +31,4 @@ */ public interface TraceManagerService { Result> getAll(); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/bo/MqConfig.java b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/bo/MqConfig.java index cf490bc8b..de8903bb1 100644 --- a/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/bo/MqConfig.java +++ b/trace-etl/trace-etl-api/src/main/java/org/apache/ozhera/trace/etl/bo/MqConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.bo; import lombok.Data; @@ -42,4 +46,4 @@ public class MqConfig implements Serializable { private int maxPollRecords; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-common/pom.xml b/trace-etl/trace-etl-common/pom.xml index a0dc381dd..0c11bdfc0 100644 --- a/trace-etl/trace-etl-common/pom.xml +++ b/trace-etl/trace-etl-common/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/HashUtil.java b/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/HashUtil.java index 758adb50e..f5000d5d0 100644 --- a/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/HashUtil.java +++ b/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/HashUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.common; import com.google.common.hash.HashCode; @@ -31,4 +35,4 @@ public static int consistentHash(String traceId, int buckets) { HashCode hasCode = Hashing.murmur3_32().hashString(traceId, StandardCharsets.UTF_8); return Hashing.consistentHash(hasCode, buckets); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/TimeConverter.java b/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/TimeConverter.java index 963377d09..b60140e38 100644 --- a/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/TimeConverter.java +++ b/trace-etl/trace-etl-common/src/main/java/org/apache/ozhera/trace/etl/common/TimeConverter.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.common; import org.apache.commons.lang3.StringUtils; @@ -129,4 +133,4 @@ private static String formatDateTime(long dateTime) { String day = dateTimeStr.substring(6, 8); return String.format("%s.%s.%s", year, month, day); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-dao/pom.xml b/trace-etl/trace-etl-dao/pom.xml index 243251b50..1fbf0141a 100644 --- a/trace-etl/trace-etl-dao/pom.xml +++ b/trace-etl/trace-etl-dao/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraMetaDataMapper.java b/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraMetaDataMapper.java index 9a9d87cec..268de7efe 100644 --- a/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraMetaDataMapper.java +++ b/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraMetaDataMapper.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; diff --git a/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraTraceEtlConfigMapper.java b/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraTraceEtlConfigMapper.java index ce9ff3ee4..7faa33df1 100644 --- a/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraTraceEtlConfigMapper.java +++ b/trace-etl/trace-etl-dao/src/main/java/org/apache/ozhera/trace/etl/mapper/HeraTraceEtlConfigMapper.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; diff --git a/trace-etl/trace-etl-domain/pom.xml b/trace-etl/trace-etl-domain/pom.xml index c7f79abda..a39d2a529 100644 --- a/trace-etl/trace-etl-domain/pom.xml +++ b/trace-etl/trace-etl-domain/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/DriverDomain.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/DriverDomain.java index bb4c3a99c..57b23bca5 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/DriverDomain.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/DriverDomain.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; /** @@ -84,4 +88,4 @@ public String getDataBaseName() { public void setDataBaseName(String dataBaseName) { this.dataBaseName = dataBaseName; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/ErrorTraceMessage.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/ErrorTraceMessage.java index 1a47d63e5..c1be16d3b 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/ErrorTraceMessage.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/ErrorTraceMessage.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; public class ErrorTraceMessage { @@ -187,4 +191,4 @@ public String getErrorType() { public void setErrorType(String errorType) { this.errorType = errorType; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceConfigVo.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceConfigVo.java index 1caedcb3c..3c8874bdb 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceConfigVo.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceConfigVo.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; /** @@ -69,4 +73,4 @@ public String toString() { ", pageSize=" + getPageSize() + '}'; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceEtlConfig.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceEtlConfig.java index a758a37d8..7225234ac 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceEtlConfig.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/HeraTraceEtlConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; import java.io.Serializable; diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/JaegerTracerDomain.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/JaegerTracerDomain.java index 8779a53d8..f729de63b 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/JaegerTracerDomain.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/JaegerTracerDomain.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; import org.apache.commons.lang3.StringUtils; @@ -330,4 +334,4 @@ public String toString() { ", duration=" + duration + '}'; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/MetricsParseResult.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/MetricsParseResult.java index dc606372e..0bf3e055d 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/MetricsParseResult.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/MetricsParseResult.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; /** @@ -83,4 +87,4 @@ public boolean isValidate() { public void setValidate(boolean validate) { isValidate = validate; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/NginxJaegerDomain.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/NginxJaegerDomain.java index 5a44bc21a..5f077460c 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/NginxJaegerDomain.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/NginxJaegerDomain.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; /** @@ -174,4 +178,4 @@ public String getStartTime() { public void setStartTime(String startTime) { this.startTime = startTime; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PageData.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PageData.java index 5feabaeb9..28b1cf7a9 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PageData.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PageData.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; @@ -62,4 +66,4 @@ public T getList() { public void setList(T list) { this.list = list; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PagerVo.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PagerVo.java index d62f4ad04..1f242481c 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PagerVo.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/PagerVo.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain; /** @@ -39,4 +43,4 @@ public Integer getPageSize() { public void setPageSize(int pageSize) { this.pageSize = pageSize; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttrType.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttrType.java index d312cda40..74f7799b8 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttrType.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttrType.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.jaegeres; public class JaegerAttrType { @@ -21,4 +25,4 @@ public class JaegerAttrType { public static final String LONG = "int64"; public static final String BOOLEAN = "bool"; public static final String DOUBLE = "float64"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttribute.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttribute.java index efe4c1e5b..abac292b0 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttribute.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerAttribute.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.jaegeres; public class JaegerAttribute { @@ -43,4 +47,4 @@ public String getValue() { public void setValue(String value) { this.value = value == null ? "" : value; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerESDomain.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerESDomain.java index 08bd3732f..e72945712 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerESDomain.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerESDomain.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.jaegeres; import java.util.List; @@ -109,4 +113,4 @@ public JaegerProcess getProcess() { public void setProcess(JaegerProcess process) { this.process = process; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerLogs.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerLogs.java index 90bd1a954..56610588a 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerLogs.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerLogs.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.jaegeres; import java.util.List; @@ -36,4 +40,4 @@ public List getFields() { public void setFields(List fields) { this.fields = fields; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerProcess.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerProcess.java index 24d1f2040..39301d679 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerProcess.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerProcess.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.jaegeres; import java.util.List; @@ -36,4 +40,4 @@ public List getTags() { public void setTags(List tags) { this.tags = tags; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerRefType.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerRefType.java index 5bb76c871..c7b1d8a75 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerRefType.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerRefType.java @@ -1,22 +1,26 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.jaegeres; public class JaegerRefType { public static final String CHILD_OF = "CHILD_OF"; public static final String FOLLOWS_FROM = "FOLLOWS_FROM"; public static final String UNRECOGNIZED = "UNRECOGNIZED"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerReferences.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerReferences.java index e06f46bd1..53916ac99 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerReferences.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/jaegeres/JaegerReferences.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.jaegeres; public class JaegerReferences { @@ -43,4 +47,4 @@ public String getRefType() { public void setRefType(String refType) { this.refType = refType; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaData.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaData.java index 8f7606c13..3e4494931 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaData.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaData.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.metadata; import com.baomidou.mybatisplus.annotation.IdType; @@ -83,4 +87,4 @@ public class HeraMetaData { private String updateBy; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataMessage.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataMessage.java index 0f686c6e3..2e98afb05 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataMessage.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataMessage.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.metadata; import lombok.Data; @@ -52,4 +56,4 @@ public class HeraMetaDataMessage { private String createBy; private String updateBy; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataModel.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataModel.java index e4fc9900c..09711dfbb 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataModel.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataModel.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.metadata; @@ -73,4 +77,4 @@ public class HeraMetaDataModel implements Serializable { private String createBy; private String updateBy; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPort.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPort.java index 9a1782fe9..b8c6f8275 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPort.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPort.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.metadata; import lombok.AllArgsConstructor; @@ -37,4 +41,4 @@ public class HeraMetaDataPort { private int thriftPort; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPortModel.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPortModel.java index 78f797c56..fb9f66022 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPortModel.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataPortModel.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.metadata; import lombok.AllArgsConstructor; @@ -40,4 +44,4 @@ public class HeraMetaDataPortModel implements Serializable { private int grpcPort; private int thriftPort; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataQuery.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataQuery.java index 58c0d1309..57705009a 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataQuery.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataQuery.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.metadata; @@ -47,4 +51,4 @@ public void initPageParam(){ } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataType.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataType.java index ca64864ee..f9166ce30 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataType.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/metadata/HeraMetaDataType.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.metadata; /** @@ -24,4 +28,4 @@ public class HeraMetaDataType { public static final String REDIS = "redis"; public static final String ES = "es"; public static final String MQ = "mq"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Span.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Span.java index cf27de072..de69e28ad 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Span.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Span.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.tracequery; import org.apache.ozhera.trace.etl.domain.jaegeres.JaegerAttribute; @@ -145,4 +149,4 @@ public List getWarnings() { public void setWarnings(List warnings) { this.warnings = warnings; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Trace.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Trace.java index f1284ac41..fe3c7cd99 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Trace.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/Trace.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.tracequery; import org.apache.ozhera.trace.etl.domain.jaegeres.JaegerProcess; @@ -71,4 +75,4 @@ public Map getProcesses() { public void setProcesses(Map processes) { this.processes = processes; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceIdQueryVo.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceIdQueryVo.java index bc1c4aa38..11f1cdab2 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceIdQueryVo.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceIdQueryVo.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.tracequery; /** @@ -66,4 +70,4 @@ public String toString() { ", index='" + index + '\'' + '}'; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceListQueryVo.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceListQueryVo.java index 598757f04..0d4ea36e3 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceListQueryVo.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceListQueryVo.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.tracequery; /** @@ -138,4 +142,4 @@ public String toString() { ", serverEnv='" + serverEnv + '\'' + '}'; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceOperationsVo.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceOperationsVo.java index 970672ce5..82d25eabe 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceOperationsVo.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceOperationsVo.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.tracequery; /** @@ -56,4 +60,4 @@ public String toString() { ", source='" + source + '\'' + '}'; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceQueryResult.java b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceQueryResult.java index f9b176798..454a28dc5 100644 --- a/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceQueryResult.java +++ b/trace-etl/trace-etl-domain/src/main/java/org/apache/ozhera/trace/etl/domain/tracequery/TraceQueryResult.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.domain.tracequery; /** @@ -69,4 +73,4 @@ public int getTotal() { public void setTotal(int total) { this.total = total; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/README.md b/trace-etl/trace-etl-es/README.md index 9ccf9014a..61b3e827e 100644 --- a/trace-etl/trace-etl-es/README.md +++ b/trace-etl/trace-etl-es/README.md @@ -1,3 +1,24 @@ + + # Overview # How to Deploy ## Deployment Dependencies @@ -38,4 +59,4 @@ Execute: `java -jar trace-etl-es-1.0.0-SNAPSHOT.jar` -to run trace-etl-es. +to run trace-etl-es. \ No newline at end of file diff --git a/trace-etl/trace-etl-es/README_CN.md b/trace-etl/trace-etl-es/README_CN.md index a7d9ad083..f355f2491 100644 --- a/trace-etl/trace-etl-es/README_CN.md +++ b/trace-etl/trace-etl-es/README_CN.md @@ -1,3 +1,24 @@ + + # 概述 # 如何部署 ## 部署依赖 diff --git a/trace-etl/trace-etl-es/pom.xml b/trace-etl/trace-etl-es/pom.xml index 5c75252cc..9e4b30d8c 100644 --- a/trace-etl/trace-etl-es/pom.xml +++ b/trace-etl/trace-etl-es/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/bootstrap/TraceEtlEsBootstrap.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/bootstrap/TraceEtlEsBootstrap.java index b133799fd..60c15f97f 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/bootstrap/TraceEtlEsBootstrap.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/bootstrap/TraceEtlEsBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.bootstrap; import lombok.extern.slf4j.Slf4j; diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DataSourceConfig.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DataSourceConfig.java index 68e4ce8f2..c0503425c 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DataSourceConfig.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DataSourceConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -88,4 +92,4 @@ public DataSourceTransactionManager masterTransactionManager() throws PropertyVe return new DataSourceTransactionManager(masterDataSource()); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DubboConfiguration.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DubboConfiguration.java index 342fde2d3..f3b603d8f 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DubboConfiguration.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/DubboConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -64,4 +68,4 @@ public ProtocolConfig protocolConfig() { return protocolConfig; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/NacosConfiguration.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/NacosConfiguration.java index f42c6add9..f2074d186 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/NacosConfiguration.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/NacosConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.config; import com.alibaba.nacos.api.annotation.NacosProperties; diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/ServiceConfiguration.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/ServiceConfiguration.java index 02eec64aa..fe44857e6 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/ServiceConfiguration.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/ServiceConfiguration.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.trace.etl.es.config; @@ -40,4 +43,4 @@ public ManagerService managerService() { return new ManagerServiceImpl(heraTraceEtlConfigMapper); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/TraceConfig.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/TraceConfig.java index b63f9b876..7c1de0543 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/TraceConfig.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/config/TraceConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -99,4 +103,4 @@ private HeraTraceEtlConfig defaultConfig(HeraTraceEtlConfig config){ } return config; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/ConsumerService.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/ConsumerService.java index a23b0c48b..03c313fce 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/ConsumerService.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/ConsumerService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -356,4 +360,4 @@ private TSpanData deserializeFromString(String decode) { } return null; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/FilterService.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/FilterService.java index 1e235108d..d50fdb644 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/FilterService.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/FilterService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -142,4 +146,4 @@ private boolean checkHeraContext(String heraContext, HeraTraceEtlConfig config) return false; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/KafkaTraceSpanConsumer.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/KafkaTraceSpanConsumer.java index 1a169481d..46b94977a 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/KafkaTraceSpanConsumer.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/KafkaTraceSpanConsumer.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -115,4 +119,4 @@ public void run() { } } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/RocketMQTraceSpanConsumer.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/RocketMQTraceSpanConsumer.java index f8d54d546..147b2791e 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/RocketMQTraceSpanConsumer.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/consumer/RocketMQTraceSpanConsumer.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -112,4 +116,4 @@ public void run() { } } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FilterResult.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FilterResult.java index e143cfe40..29156981e 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FilterResult.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FilterResult.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.domain; /** @@ -58,4 +62,4 @@ public boolean isDiscard() { public void setDiscard(boolean discard) { this.discard = discard; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FutureRequest.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FutureRequest.java index aa6ff147b..46fdcdb63 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FutureRequest.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/FutureRequest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.domain; @@ -96,4 +100,4 @@ public FutureRequest(String traceId, TSpanData tSpanData, String serviceName, St this.serviceName = serviceName; this.spanName = spanName; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/LocalStorages.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/LocalStorages.java index b6bbcf7d9..cb783d3a5 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/LocalStorages.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/domain/LocalStorages.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.domain; import java.util.concurrent.atomic.AtomicLong; @@ -29,4 +33,4 @@ public class LocalStorages { public static AtomicLong secondRocksKeySuffix = new AtomicLong(0L); public static volatile boolean talosIsShutDown = false; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/dubbo/TraceEtlServiceImpl.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/dubbo/TraceEtlServiceImpl.java index 42e0c0ff8..4db857da3 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/dubbo/TraceEtlServiceImpl.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/dubbo/TraceEtlServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.dubbo; import org.apache.ozhera.trace.etl.api.service.TraceEtlService; @@ -46,4 +50,4 @@ public void updateConfig(HeraTraceEtlConfig config) { public void deleteConfig(HeraTraceEtlConfig config) { traceConfig.delete(config); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/DiskStoreService.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/DiskStoreService.java index 41651d3ad..cb5e2b6e6 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/DiskStoreService.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/DiskStoreService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.queue; /** @@ -27,4 +31,4 @@ public interface DiskStoreService { void delete(String key); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/RocksdbStoreServiceImpl.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/RocksdbStoreServiceImpl.java index 805815f94..4edc394f6 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/RocksdbStoreServiceImpl.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/RocksdbStoreServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.queue.impl; import org.apache.ozhera.trace.etl.es.queue.DiskStoreService; @@ -180,4 +184,4 @@ public String getKey(long currSecond, long suffix) { String key = currSecond + "_" + suffix; return key; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/TeSnowFlake.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/TeSnowFlake.java index 03ba1f83c..5f89dba49 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/TeSnowFlake.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/queue/impl/TeSnowFlake.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.queue.impl; import com.alibaba.fastjson.JSONObject; @@ -142,4 +146,4 @@ public static void main(String[] args) { json.put("refer", new ArrayList<>()); System.out.println(json.toJSONString()); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/BloomFilterHelper.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/BloomFilterHelper.java index 49d172f92..c6ce0f167 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/BloomFilterHelper.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/BloomFilterHelper.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.util.bloomfilter; import com.google.common.base.Preconditions; diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/TraceIdRedisBloomUtil.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/TraceIdRedisBloomUtil.java index f07cab427..06209a43d 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/TraceIdRedisBloomUtil.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/bloomfilter/TraceIdRedisBloomUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.util.bloomfilter; import com.google.common.hash.BloomFilter; @@ -128,4 +132,4 @@ private void updateLocalBloom(){ localBloomFilter = BloomFilter.create(charSequenceFunnel, LOCAL_EXPECTEDINSERTIONS, LOCAL_REDIS_ACCIRACY); log.info("update local bloom filter success"); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/pool/ConsumerPool.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/pool/ConsumerPool.java index 88cc4d66f..443017090 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/pool/ConsumerPool.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/pool/ConsumerPool.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.util.pool; import java.util.concurrent.ArrayBlockingQueue; @@ -35,4 +39,4 @@ public class ConsumerPool { }); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/redis/RedisClientUtil.java b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/redis/RedisClientUtil.java index be7a4c850..9d7e1f137 100644 --- a/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/redis/RedisClientUtil.java +++ b/trace-etl/trace-etl-es/src/main/java/org/apache/ozhera/trace/etl/es/util/redis/RedisClientUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.es.util.redis; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -140,4 +144,4 @@ public Long del(String key) { return null; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-es/src/main/resources/application.properties b/trace-etl/trace-etl-es/src/main/resources/application.properties index 85ee224a0..270481af0 100644 --- a/trace-etl/trace-etl-es/src/main/resources/application.properties +++ b/trace-etl/trace-etl-es/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=trace-etl server.type=${server.type} diff --git a/trace-etl/trace-etl-es/src/main/resources/config/opensource-outer.properties b/trace-etl/trace-etl-es/src/main/resources/config/opensource-outer.properties index 3e590f66d..20bbf4ca3 100644 --- a/trace-etl/trace-etl-es/src/main/resources/config/opensource-outer.properties +++ b/trace-etl/trace-etl-es/src/main/resources/config/opensource-outer.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=trace_etl_es server.type=staging diff --git a/trace-etl/trace-etl-es/src/main/resources/logback.xml b/trace-etl/trace-etl-es/src/main/resources/logback.xml index 7c4bdc0ce..f7fbee73a 100644 --- a/trace-etl/trace-etl-es/src/main/resources/logback.xml +++ b/trace-etl/trace-etl-es/src/main/resources/logback.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-es/src/test/java/com/xiaomi/hera/trace/etl/es/AtomicTest.java b/trace-etl/trace-etl-es/src/test/java/com/xiaomi/hera/trace/etl/es/AtomicTest.java index 8aff4e48a..84441041c 100644 --- a/trace-etl/trace-etl-es/src/test/java/com/xiaomi/hera/trace/etl/es/AtomicTest.java +++ b/trace-etl/trace-etl-es/src/test/java/com/xiaomi/hera/trace/etl/es/AtomicTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.xiaomi.hera.trace.etl.es; import org.junit.Assert; @@ -33,4 +37,4 @@ public void testGetAndUpdate() { Assert.assertEquals(1,ai.getAndUpdate(v->12)); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/pom.xml b/trace-etl/trace-etl-extensions/pom.xml index 33a8bc544..bb8299204 100644 --- a/trace-etl/trace-etl-extensions/pom.xml +++ b/trace-etl/trace-etl-extensions/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/pom.xml b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/pom.xml index 73b91e6ad..cb2ba689e 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/pom.xml +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/DorisDataSourceService.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/DorisDataSourceService.java index 225421789..e98d69855 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/DorisDataSourceService.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/DorisDataSourceService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris; import org.apache.ozhera.trace.etl.api.service.DataSourceService; @@ -69,4 +73,4 @@ public void insertDriver(DriverDomain driverDomain) { public void insertHeraSpan(TSpanData tSpanData, String serviceName, String spanName) { writeDorisService.insertHeraSpan(tSpanData, serviceName, spanName); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/QueryDorisService.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/QueryDorisService.java index a2173417d..109b52e5f 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/QueryDorisService.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/QueryDorisService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris; import com.google.common.base.Strings; @@ -299,4 +303,4 @@ private Span convertSpan(Map map) { span.setParentSpanID(String.valueOf(map.get(HeraTraceSpanColumn.parentSpanID))); return span; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/WriteDorisService.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/WriteDorisService.java index 32d954e85..c02e866f8 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/WriteDorisService.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/WriteDorisService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris; import com.google.common.cache.Cache; @@ -273,4 +277,4 @@ public void insertHeraSpan(TSpanData tSpanData, String serviceName, String spanN } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/config/DorisConfig.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/config/DorisConfig.java index a684b7c8a..e487b53b5 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/config/DorisConfig.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/config/DorisConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -59,4 +63,4 @@ public QueryDorisService getQueryDorisService(){ public WriteDorisService getWriteDorisService(){ return new WriteDorisService(); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraErrorSlowTraceColumn.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraErrorSlowTraceColumn.java index 5e251216f..62d6fcbb5 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraErrorSlowTraceColumn.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraErrorSlowTraceColumn.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris.domain; public class HeraErrorSlowTraceColumn { @@ -30,4 +34,4 @@ public class HeraErrorSlowTraceColumn { public static final String HOST = "host"; public static final String DATA_SOURCE = "dataSource"; public static final String TIME_STAMP = "timestamp"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceDriverColumn.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceDriverColumn.java index f5154cd43..0a78a7a79 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceDriverColumn.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceDriverColumn.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris.domain; public class HeraTraceDriverColumn { @@ -25,4 +29,4 @@ public class HeraTraceDriverColumn { public static final String DOMAIN_PORT = "domainPort"; public static final String TYPE = "type"; public static final String USER_NAME = "userName"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceServiceColumn.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceServiceColumn.java index a64feb0a5..3bcf3804d 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceServiceColumn.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceServiceColumn.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris.domain; public class HeraTraceServiceColumn { @@ -20,4 +24,4 @@ public class HeraTraceServiceColumn { public static final String SERVICE_NAME = "serviceName"; public static final String OPERATION_NAME = "operationName"; public static final String TIMESTAMP = "timestamp"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceSpanColumn.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceSpanColumn.java index 82e96090b..8f3eca336 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceSpanColumn.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceSpanColumn.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris.domain; public class HeraTraceSpanColumn { @@ -30,4 +34,4 @@ public class HeraTraceSpanColumn { public static final String timestamp = "timestamp"; public static final String traceID = "traceID"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceTable.java b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceTable.java index 68a295cbe..3a9b440e6 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceTable.java +++ b/trace-etl/trace-etl-extensions/trace-etl-doris-extension/src/main/java/org/apache/ozhera/trace/etl/extension/doris/domain/HeraTraceTable.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.doris.domain; public class HeraTraceTable { @@ -21,4 +25,4 @@ public class HeraTraceTable { public static final String HERA_TRACE_SERVICE_TABLE = "hera_trace_service"; public static final String HERA_TRACE_DRIVER_TABLE = "hera_trace_driver"; public static final String HERA_ERROR_SLOW_TRACE_TABLE = "hera_error_slow_trace"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-es-extension/pom.xml b/trace-etl/trace-etl-extensions/trace-etl-es-extension/pom.xml index 1157af906..76cb17463 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-es-extension/pom.xml +++ b/trace-etl/trace-etl-extensions/trace-etl-es-extension/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsDataSourceService.java b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsDataSourceService.java index 06d964c5c..6ea2ed7b9 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsDataSourceService.java +++ b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsDataSourceService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.es; import org.apache.ozhera.trace.etl.api.service.DataSourceService; @@ -69,4 +73,4 @@ public void insertDriver(DriverDomain driverDomain) { public void insertHeraSpan(TSpanData tSpanData, String serviceName, String spanName) { writeEsService.insertJaegerSpan(tSpanData, serviceName, spanName); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsTraceUtil.java b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsTraceUtil.java index 8dd525489..b5835a356 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsTraceUtil.java +++ b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/EsTraceUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.es; import com.alibaba.fastjson.JSONObject; @@ -56,4 +60,4 @@ public void insertErrorBulk(String index,Map jsonMap){ log.error("insert error es exception:",e); } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/QueryEsService.java b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/QueryEsService.java index c85d0cb99..be6037c1a 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/QueryEsService.java +++ b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/QueryEsService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.es; import com.google.common.base.Strings; @@ -312,4 +316,4 @@ private SearchRequest buildSearchRequest(SearchSourceBuilder sourceBuilder, Stri return searchRequest; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/WriteEsService.java b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/WriteEsService.java index 5deeaa68b..de4487fbc 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/WriteEsService.java +++ b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/WriteEsService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.es; import com.alibaba.fastjson.JSONObject; @@ -227,4 +231,4 @@ public void insertJaegerSpan(TSpanData tSpanData, String serviceName, String spa esTraceUtil.insertBulk(indexPrefix + format, jsonObject); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsConfig.java b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsConfig.java index d5b0b3b63..985242f2d 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsConfig.java +++ b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.es.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -58,4 +62,4 @@ public EsClient jaegerEsClient() { return null; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsProcessConfig.java b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsProcessConfig.java index 0669bec13..90657b986 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsProcessConfig.java +++ b/trace-etl/trace-etl-extensions/trace-etl-es-extension/src/main/java/org/apache/ozhera/trace/etl/extension/es/config/EsProcessConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.es.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -113,4 +117,4 @@ public QueryEsService getQueryEsService(){ public WriteEsService getWriteEsService(){ return new WriteEsService(); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/pom.xml b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/pom.xml index 2516a4c81..82dabfc9f 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/pom.xml +++ b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/BeanInitConfigure.java b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/BeanInitConfigure.java index bcf6ace86..d15684931 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/BeanInitConfigure.java +++ b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/BeanInitConfigure.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.kafka; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -37,4 +41,4 @@ public KafkaConfigure getKafkaConfigure(){ throw new RuntimeException("vpcType is unknow!"); } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure.java b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure.java index 04dce22da..39e4d5deb 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure.java +++ b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.kafka; import org.apache.ozhera.trace.etl.bo.MqConfig; @@ -26,4 +30,4 @@ public interface KafkaConfigure { Properties createConsumerProperties(MqConfig> config); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure9092.java b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure9092.java index 396c5bd21..65ae56ac5 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure9092.java +++ b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/KafkaConfigure9092.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.kafka; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -68,4 +72,4 @@ public Properties createConsumerProperties(MqConfig message } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/VpcType.java b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/VpcType.java index bdd8831ed..660c38d69 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/VpcType.java +++ b/trace-etl/trace-etl-extensions/trace-etl-kafka-extension/src/main/java/org/apache/ozhera/trace/etl/extension/kafka/VpcType.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.kafka; public class VpcType { @@ -20,4 +24,4 @@ public class VpcType { public static final String VPC_9002 = "vpc-9002"; public static final String VPC_SSL_9003 = "vpc-ssl-9003"; public static final String VPC_9004 = "vpc-9004"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/pom.xml b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/pom.xml index 887581ec6..4f4d29542 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/pom.xml +++ b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueue.java b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueue.java index bd5dd0308..0b89335a3 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueue.java +++ b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueue.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.rocketmq; import org.apache.ozhera.trace.etl.common.HashUtil; @@ -100,4 +104,4 @@ public void initFetchQueueTask() { FETCH_ROCKETMQ_QUEUE_GAP, TimeUnit.SECONDS); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueueWrapper.java b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueueWrapper.java index 718a4f84e..38c29ecd3 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueueWrapper.java +++ b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/ClientMessageQueueWrapper.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.rocketmq; import lombok.extern.slf4j.Slf4j; @@ -149,4 +153,4 @@ public void run() { } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/RocketMQExtension.java b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/RocketMQExtension.java index 9350ef3b1..e64861446 100644 --- a/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/RocketMQExtension.java +++ b/trace-etl/trace-etl-extensions/trace-etl-rocketmq-extension/src/main/java/org/apache/ozhera/trace/etl/extension/rocketmq/RocketMQExtension.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.extension.rocketmq; import org.apache.ozhera.trace.etl.api.service.MQExtension; @@ -161,4 +165,4 @@ public void send(List messages, MessageQueue messageQueue) { log.error("rocketmq producer send error", t); } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/README.md b/trace-etl/trace-etl-manager/README.md index d3ad340b0..77c0a34f6 100644 --- a/trace-etl/trace-etl-manager/README.md +++ b/trace-etl/trace-etl-manager/README.md @@ -1,3 +1,24 @@ + + # Overview # Dependencies diff --git a/trace-etl/trace-etl-manager/README_CN.md b/trace-etl/trace-etl-manager/README_CN.md index 8957c3af9..7a452408a 100644 --- a/trace-etl/trace-etl-manager/README_CN.md +++ b/trace-etl/trace-etl-manager/README_CN.md @@ -1,3 +1,24 @@ + + # 概述 # 依赖 diff --git a/trace-etl/trace-etl-manager/pom.xml b/trace-etl/trace-etl-manager/pom.xml index 80bd389ca..fca87e1ba 100644 --- a/trace-etl/trace-etl-manager/pom.xml +++ b/trace-etl/trace-etl-manager/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/bootstrap/TraceEtlManagerBootstrap.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/bootstrap/TraceEtlManagerBootstrap.java index 1e4a16333..ec875758d 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/bootstrap/TraceEtlManagerBootstrap.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/bootstrap/TraceEtlManagerBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.bootstrap; import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan; diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DataSourceConfig.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DataSourceConfig.java index 752e4d774..83884bfd9 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DataSourceConfig.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DataSourceConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -89,4 +93,4 @@ private void setDatasource(ComboPooledDataSource dataSource) { public DataSourceTransactionManager masterTransactionManager() throws PropertyVetoException, NamingException { return new DataSourceTransactionManager(masterDataSource()); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DubboConfiguration.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DubboConfiguration.java index d0d9f818a..21d242c5d 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DubboConfiguration.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/DubboConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -64,4 +68,4 @@ public ProtocolConfig protocolConfig() { return protocolConfig; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/FilterConfiguration.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/FilterConfiguration.java index e365586bf..06c1bfaca 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/FilterConfiguration.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/FilterConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -56,4 +60,4 @@ public FilterRegistrationBean filterCasBean() { registrationBean.setOrder(0); return registrationBean; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/NacosConfiguration.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/NacosConfiguration.java index a0f6fa52e..3788a3025 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/NacosConfiguration.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/NacosConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.config; import com.alibaba.nacos.api.annotation.NacosProperties; diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/ServiceConfiguration.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/ServiceConfiguration.java index a691c771c..882e86d09 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/ServiceConfiguration.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/config/ServiceConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.config; import org.apache.ozhera.trace.etl.api.service.TraceEtlService; @@ -43,4 +47,4 @@ public ManagerService managerService(){ return new ManagerServiceImpl(heraTraceEtlConfigMapper,traceEtlService); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/ManagerController.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/ManagerController.java index c1986f4eb..7b9a63d74 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/ManagerController.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/ManagerController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.controller; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -143,4 +147,4 @@ private void initPage(PagerVo vo) { } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/TraceController.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/TraceController.java index d1cd9c485..67bd65271 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/TraceController.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/controller/TraceController.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.controller; import org.apache.ozhera.trace.etl.api.service.DataSourceService; @@ -65,4 +69,4 @@ public TraceQueryResult getByTraceId(@PathVariable String traceId, TraceIdQueryV vo.setTraceId(traceId); return dataSourceService.getByTraceId(vo); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/dubbo/TraceManagerServiceImpl.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/dubbo/TraceManagerServiceImpl.java index 31b6f00d1..80f02c846 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/dubbo/TraceManagerServiceImpl.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/dubbo/TraceManagerServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.dubbo; import org.apache.ozhera.trace.etl.api.service.TraceManagerService; @@ -42,4 +46,4 @@ public Result> getAll() { List all = managerService.getAll(vo); return Result.success(all); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/filter/RequestHeaderFilter.java b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/filter/RequestHeaderFilter.java index 26430487c..e6ed1fce2 100644 --- a/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/filter/RequestHeaderFilter.java +++ b/trace-etl/trace-etl-manager/src/main/java/org/apache/ozhera/trace/etl/manager/filter/RequestHeaderFilter.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.manager.filter; import org.slf4j.Logger; @@ -68,4 +72,4 @@ private void printHeaders(HttpServletRequest request) { log.info(uri + " : request header end ==================="); } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/resources/application.properties b/trace-etl/trace-etl-manager/src/main/resources/application.properties index a7f290e09..711d79a00 100644 --- a/trace-etl/trace-etl-manager/src/main/resources/application.properties +++ b/trace-etl/trace-etl-manager/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=${app.name} server.type=${server.type} diff --git a/trace-etl/trace-etl-manager/src/main/resources/config/opensource-outer.properties b/trace-etl/trace-etl-manager/src/main/resources/config/opensource-outer.properties index aa6b43829..cdf44bae4 100644 --- a/trace-etl/trace-etl-manager/src/main/resources/config/opensource-outer.properties +++ b/trace-etl/trace-etl-manager/src/main/resources/config/opensource-outer.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=trace_etl_manager server.type=staging diff --git a/trace-etl/trace-etl-manager/src/main/resources/dubbo.properties b/trace-etl/trace-etl-manager/src/main/resources/dubbo.properties index 5c048b993..e26a3290c 100644 --- a/trace-etl/trace-etl-manager/src/main/resources/dubbo.properties +++ b/trace-etl/trace-etl-manager/src/main/resources/dubbo.properties @@ -1 +1,16 @@ -dubbo.trace.log.path=/home/work/log/dubbo/trace-etl_ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +dubbo.trace.log.path=/home/work/log/dubbo/trace-etl_ \ No newline at end of file diff --git a/trace-etl/trace-etl-manager/src/main/resources/logback.xml b/trace-etl/trace-etl-manager/src/main/resources/logback.xml index 21d94df2d..a14797362 100644 --- a/trace-etl/trace-etl-manager/src/main/resources/logback.xml +++ b/trace-etl/trace-etl-manager/src/main/resources/logback.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-metadata/README.md b/trace-etl/trace-etl-metadata/README.md index 83048bf2c..ede34d85b 100644 --- a/trace-etl/trace-etl-metadata/README.md +++ b/trace-etl/trace-etl-metadata/README.md @@ -1,3 +1,24 @@ + + # Overview # How to deploy diff --git a/trace-etl/trace-etl-metadata/README_CN.md b/trace-etl/trace-etl-metadata/README_CN.md index 125f5c861..6bb604a6a 100644 --- a/trace-etl/trace-etl-metadata/README_CN.md +++ b/trace-etl/trace-etl-metadata/README_CN.md @@ -1,3 +1,24 @@ + + # 概述 # 如何部署 ### 依赖 diff --git a/trace-etl/trace-etl-metadata/pom.xml b/trace-etl/trace-etl-metadata/pom.xml index 063dfedb8..f1e034446 100644 --- a/trace-etl/trace-etl-metadata/pom.xml +++ b/trace-etl/trace-etl-metadata/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/bootstrap/TraceEtlMetadataBootstrap.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/bootstrap/TraceEtlMetadataBootstrap.java index 9f78d90b9..89975a99a 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/bootstrap/TraceEtlMetadataBootstrap.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/bootstrap/TraceEtlMetadataBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.metadata.bootstrap; import lombok.extern.slf4j.Slf4j; diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DataSourceConfig.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DataSourceConfig.java index 907dba9e8..1fdeaffe8 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DataSourceConfig.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DataSourceConfig.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.trace.etl.metadata.config; @@ -98,4 +101,4 @@ public JdbcTemplate jdbcTemplate(@Qualifier("masterDataSource") DataSource maste return jt; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DubboConfiguration.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DubboConfiguration.java index 704c754e2..06d5cba1d 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DubboConfiguration.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/DubboConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.metadata.config; import org.apache.dubbo.config.ApplicationConfig; @@ -58,4 +62,4 @@ public ProtocolConfig protocolConfig() { protocolConfig.setThreads(200); return protocolConfig; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/NacosConfiguration.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/NacosConfiguration.java index be600d629..73ed32934 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/NacosConfiguration.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/config/NacosConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.metadata.config; import com.alibaba.nacos.api.annotation.NacosProperties; @@ -24,4 +28,4 @@ @EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "${nacos.address}")) @NacosPropertySource(dataId = "hera_trace_config", autoRefreshed = true) public class NacosConfiguration { -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/dubbo/HeraMetaDataServiceImpl.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/dubbo/HeraMetaDataServiceImpl.java index f6bd0edb6..ac5c1397e 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/dubbo/HeraMetaDataServiceImpl.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/dubbo/HeraMetaDataServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.metadata.dubbo; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -92,4 +96,4 @@ public int delete(int metaId) { return heraMetaDataMapper.delete(wrapper); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/KafkaHeraMetaDataConsumer.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/KafkaHeraMetaDataConsumer.java index e3c526ffd..c72ab2dd1 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/KafkaHeraMetaDataConsumer.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/KafkaHeraMetaDataConsumer.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.metadata.mq; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -214,4 +218,4 @@ private boolean waitSyncData() { } } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/RocketMQHeraMetaDataConsumer.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/RocketMQHeraMetaDataConsumer.java index 9daf5c2f5..7479076df 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/RocketMQHeraMetaDataConsumer.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/mq/RocketMQHeraMetaDataConsumer.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.metadata.mq; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -213,4 +217,4 @@ private boolean waitSyncData() { } } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/util/Const.java b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/util/Const.java index 7004d1af2..ad37459f5 100644 --- a/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/util/Const.java +++ b/trace-etl/trace-etl-metadata/src/main/java/org/apache/ozhera/trace/etl/metadata/util/Const.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.metadata.util; public class Const { @@ -20,4 +24,4 @@ public class Const { public static final String REDIS_DISLOCK_KEY_PREFIX = "hera_metadata_"; // Maximum waiting time for data synchronization to block public static final int SYNC_REDIS_WAIT_DURATION = 3 * 60 * 1000; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-metadata/src/main/resources/application.properties b/trace-etl/trace-etl-metadata/src/main/resources/application.properties index 9df9389ca..ef900269d 100644 --- a/trace-etl/trace-etl-metadata/src/main/resources/application.properties +++ b/trace-etl/trace-etl-metadata/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=${app.name} server.type=${server.type} diff --git a/trace-etl/trace-etl-metadata/src/main/resources/config/opensource-outer.properties b/trace-etl/trace-etl-metadata/src/main/resources/config/opensource-outer.properties index 7fd6f70a5..ee0b7e923 100644 --- a/trace-etl/trace-etl-metadata/src/main/resources/config/opensource-outer.properties +++ b/trace-etl/trace-etl-metadata/src/main/resources/config/opensource-outer.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=trace-etl server.type=staging diff --git a/trace-etl/trace-etl-nginx/README.md b/trace-etl/trace-etl-nginx/README.md index 7bb353642..e311ea455 100644 --- a/trace-etl/trace-etl-nginx/README.md +++ b/trace-etl/trace-etl-nginx/README.md @@ -1,3 +1,24 @@ + + # Overview # Deployment diff --git a/trace-etl/trace-etl-nginx/README_CN.md b/trace-etl/trace-etl-nginx/README_CN.md index caf74f35f..8cbc991b2 100644 --- a/trace-etl/trace-etl-nginx/README_CN.md +++ b/trace-etl/trace-etl-nginx/README_CN.md @@ -1,3 +1,24 @@ + + # 概述 # 如何部署 ## 依赖 diff --git a/trace-etl/trace-etl-nginx/pom.xml b/trace-etl/trace-etl-nginx/pom.xml index f230fa3bf..8dd9c145b 100644 --- a/trace-etl/trace-etl-nginx/pom.xml +++ b/trace-etl/trace-etl-nginx/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/bootstrap/TraceEtlNginxBootstrap.java b/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/bootstrap/TraceEtlNginxBootstrap.java index 325a05220..62d57ef20 100644 --- a/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/bootstrap/TraceEtlNginxBootstrap.java +++ b/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/bootstrap/TraceEtlNginxBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.nginx.bootstrap; import lombok.extern.slf4j.Slf4j; diff --git a/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/parser/NginxLogToTraceBase.java b/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/parser/NginxLogToTraceBase.java index 6a2ea578d..630aec88a 100644 --- a/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/parser/NginxLogToTraceBase.java +++ b/trace-etl/trace-etl-nginx/src/main/java/org/apache/ozhera/trace/etl/nginx/parser/NginxLogToTraceBase.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.nginx.parser; import com.alibaba.fastjson.JSONObject; @@ -233,4 +237,4 @@ protected String parseUri(String requestUri){ } public abstract NginxJaegerDomain parse(String message); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-nginx/src/main/resources/application.properties b/trace-etl/trace-etl-nginx/src/main/resources/application.properties index ddd67ea9f..d455937a4 100644 --- a/trace-etl/trace-etl-nginx/src/main/resources/application.properties +++ b/trace-etl/trace-etl-nginx/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=${app.name} server.type=${server.type} diff --git a/trace-etl/trace-etl-nginx/src/main/resources/config/opensource-outer.properties b/trace-etl/trace-etl-nginx/src/main/resources/config/opensource-outer.properties index 25a3cf689..bdb8c0649 100644 --- a/trace-etl/trace-etl-nginx/src/main/resources/config/opensource-outer.properties +++ b/trace-etl/trace-etl-nginx/src/main/resources/config/opensource-outer.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=trace_etl_nginx server.type=staging diff --git a/trace-etl/trace-etl-nginx/src/main/resources/logback.xml b/trace-etl/trace-etl-nginx/src/main/resources/logback.xml index e6a81ee80..0fc8cfff0 100644 --- a/trace-etl/trace-etl-nginx/src/main/resources/logback.xml +++ b/trace-etl/trace-etl-nginx/src/main/resources/logback.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-server/README.md b/trace-etl/trace-etl-server/README.md index 67d8e85f3..98aec5e68 100644 --- a/trace-etl/trace-etl-server/README.md +++ b/trace-etl/trace-etl-server/README.md @@ -1,3 +1,24 @@ + + # Overview # How to deploy diff --git a/trace-etl/trace-etl-server/README_CN.md b/trace-etl/trace-etl-server/README_CN.md index 1008a29f5..59b0b09a6 100644 --- a/trace-etl/trace-etl-server/README_CN.md +++ b/trace-etl/trace-etl-server/README_CN.md @@ -1,3 +1,24 @@ + + # 概述 # 如何部署 ### 依赖 diff --git a/trace-etl/trace-etl-server/pom.xml b/trace-etl/trace-etl-server/pom.xml index f7d771a79..c046a0933 100644 --- a/trace-etl/trace-etl-server/pom.xml +++ b/trace-etl/trace-etl-server/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/bootstrap/TraceEtlBootstrap.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/bootstrap/TraceEtlBootstrap.java index 443fd7f5e..9f054dfca 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/bootstrap/TraceEtlBootstrap.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/bootstrap/TraceEtlBootstrap.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.bootstrap; import lombok.extern.slf4j.Slf4j; diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DataSourceConfig.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DataSourceConfig.java index 68322c2e4..85da5a7d9 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DataSourceConfig.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DataSourceConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -91,4 +95,4 @@ public DataSourceTransactionManager masterTransactionManager() throws PropertyVe } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DubboConfiguration.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DubboConfiguration.java index 1d15db860..2e0446945 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DubboConfiguration.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/DubboConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.config; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -63,4 +67,4 @@ public ProtocolConfig protocolConfig() { return protocolConfig; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/NacosConfiguration.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/NacosConfiguration.java index facb75300..2b9e61c04 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/NacosConfiguration.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/NacosConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.config; import com.alibaba.nacos.api.annotation.NacosProperties; diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/ServiceConfiguration.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/ServiceConfiguration.java index 540260cee..092b81b0d 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/ServiceConfiguration.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/ServiceConfiguration.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.config; import org.apache.ozhera.trace.etl.mapper.HeraTraceEtlConfigMapper; @@ -39,4 +43,4 @@ public ManagerService managerService(){ } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/TraceConfig.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/TraceConfig.java index 83dc7b3f8..e034e5f77 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/TraceConfig.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/config/TraceConfig.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.config; import org.apache.ozhera.trace.etl.domain.HeraTraceConfigVo; @@ -77,4 +81,4 @@ private String getServiceName(HeraTraceEtlConfig config) { sb.append(config.getBindId()).append("-").append(config.getAppName()); return sb.toString(); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LocalStorages.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LocalStorages.java index 81c58fa6a..911013b42 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LocalStorages.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LocalStorages.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.constant; @@ -20,4 +24,4 @@ public class LocalStorages { public static volatile boolean talosIsShutDown = false; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LockUtil.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LockUtil.java index aa6864c88..0f9ab3a48 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LockUtil.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/LockUtil.java @@ -1,20 +1,24 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.constant; public class LockUtil { public static final Object lock = new Object(); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/MetricsName.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/MetricsName.java index 33d67e133..5160416c2 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/MetricsName.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/MetricsName.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.constant; /** @@ -69,4 +73,4 @@ public class MetricsName { public static final String MYSQL_ERROR_COUNT = "jaeger_dbError"; public static final String MYSQL_DURATION_HISTOGRAM = "jaeger_sqlTotalTimer"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanKind.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanKind.java index 2bc3b3a4e..4a47435a6 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanKind.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanKind.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.constant; /** @@ -27,4 +31,4 @@ public class SpanKind { public static final String CLIENT = "client"; public static final String PRODUCER = "producer"; public static final String CONSUMER = "consumer"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanType.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanType.java index e615941f5..b785f5af1 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanType.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/constant/SpanType.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.constant; /** @@ -29,4 +33,4 @@ public class SpanType { public static final String ROCKETMQ = "rocketmq"; public static final String CUSTOMIZE_MTTHOD = "customizeMethod"; public static final String GRPC = "grpc"; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/DataCacheService.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/DataCacheService.java index a8b982d46..df00984fc 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/DataCacheService.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/DataCacheService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -223,4 +227,4 @@ private void clearTypeMetrics(Map prometheusMetrics, CollectorRe } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/EnterManager.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/EnterManager.java index 01f6fb565..b7018a677 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/EnterManager.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/EnterManager.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.consumer; import com.google.common.util.concurrent.Monitor; @@ -53,4 +57,4 @@ public AtomicInteger getProcessNum() { return this.processNum; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/KafkaConsumerService.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/KafkaConsumerService.java index b93a46b1b..0c36ae11f 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/KafkaConsumerService.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/KafkaConsumerService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -108,4 +112,4 @@ public void takeMessage() throws MQClientException { mq.initMq(config); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MetricsParseService.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MetricsParseService.java index c0f01ac7e..4bde272ee 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MetricsParseService.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MetricsParseService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -737,4 +741,4 @@ private HeraTraceEtlConfig defaultConfig(HeraTraceEtlConfig config) { return config; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MutiMetricsCall.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MutiMetricsCall.java index d3e21da13..0af13d408 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MutiMetricsCall.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/MutiMetricsCall.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.consumer; import com.xiaomi.youpin.prometheus.client.XmCounter; @@ -72,4 +76,4 @@ public XmHistogram newHistogram(String metricName, double[] buckets, String... l } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/RocketMQConsumerService.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/RocketMQConsumerService.java index 30d3f96d2..804f29729 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/RocketMQConsumerService.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/consumer/RocketMQConsumerService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.consumer; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -105,4 +109,4 @@ public void takeMessage() throws MQClientException { } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/dubbo/TraceEtlServiceImpl.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/dubbo/TraceEtlServiceImpl.java index b9bf30497..a3b1da08f 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/dubbo/TraceEtlServiceImpl.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/dubbo/TraceEtlServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.dubbo; import org.apache.ozhera.trace.etl.config.TraceConfig; @@ -46,4 +50,4 @@ public void updateConfig(HeraTraceEtlConfig config) { public void deleteConfig(HeraTraceEtlConfig config) { traceConfig.delete(config); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/nacos/NacosClientUtil.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/nacos/NacosClientUtil.java index 98e263825..51faa9cfc 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/nacos/NacosClientUtil.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/nacos/NacosClientUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util.nacos; import com.alibaba.nacos.api.NacosFactory; @@ -91,4 +95,4 @@ public List getNacos() { } return list; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/prometheus/HTTPServer.java b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/prometheus/HTTPServer.java index bab8784d0..3851527c0 100644 --- a/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/prometheus/HTTPServer.java +++ b/trace-etl/trace-etl-server/src/main/java/org/apache/ozhera/trace/etl/util/prometheus/HTTPServer.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util.prometheus; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -342,5 +346,4 @@ public void run() { } } -} - +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/resources/application.properties b/trace-etl/trace-etl-server/src/main/resources/application.properties index 7598e9102..fefa60910 100644 --- a/trace-etl/trace-etl-server/src/main/resources/application.properties +++ b/trace-etl/trace-etl-server/src/main/resources/application.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=${app.name} server.type=${server.type} diff --git a/trace-etl/trace-etl-server/src/main/resources/config/opensource-outer.properties b/trace-etl/trace-etl-server/src/main/resources/config/opensource-outer.properties index 438b30b17..d42ae416e 100644 --- a/trace-etl/trace-etl-server/src/main/resources/config/opensource-outer.properties +++ b/trace-etl/trace-etl-server/src/main/resources/config/opensource-outer.properties @@ -1,3 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #server app.name=90768_trace_etl server.type=staging diff --git a/trace-etl/trace-etl-server/src/main/resources/dubbo.properties b/trace-etl/trace-etl-server/src/main/resources/dubbo.properties index 5c048b993..e26a3290c 100644 --- a/trace-etl/trace-etl-server/src/main/resources/dubbo.properties +++ b/trace-etl/trace-etl-server/src/main/resources/dubbo.properties @@ -1 +1,16 @@ -dubbo.trace.log.path=/home/work/log/dubbo/trace-etl_ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +dubbo.trace.log.path=/home/work/log/dubbo/trace-etl_ \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/main/resources/logback.xml b/trace-etl/trace-etl-server/src/main/resources/logback.xml index a74020eb2..c8e24dd4a 100644 --- a/trace-etl/trace-etl-server/src/main/resources/logback.xml +++ b/trace-etl/trace-etl-server/src/main/resources/logback.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/FastWriter.java b/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/FastWriter.java index 36a165616..8ac6928c0 100644 --- a/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/FastWriter.java +++ b/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/FastWriter.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.xiaomi.youpin.trace.etl.test; import org.apache.commons.lang3.tuple.Pair; @@ -77,4 +81,4 @@ public byte[] getBytes(Enumeration mfs) throws IOException { } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/TestConsumer.java b/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/TestConsumer.java index 68253ae2d..13fe2d1a6 100644 --- a/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/TestConsumer.java +++ b/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/TestConsumer.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.xiaomi.youpin.trace.etl.test; /** @@ -21,4 +25,4 @@ * @Date 2022/10/24 3:35 下午 */ public class TestConsumer { -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/WriterTest.java b/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/WriterTest.java index e29303587..eb4b33a6c 100644 --- a/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/WriterTest.java +++ b/trace-etl/trace-etl-server/src/test/java/com/xiaomi/youpin/trace/etl/test/WriterTest.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.xiaomi.youpin.trace.etl.test; import com.google.common.base.Strings; @@ -161,4 +165,4 @@ public void test6() { } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/pom.xml b/trace-etl/trace-etl-service/pom.xml index e8cf8dc4c..08e33a239 100644 --- a/trace-etl/trace-etl-service/pom.xml +++ b/trace-etl/trace-etl-service/pom.xml @@ -1,4 +1,25 @@ + + diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/HeraContextService.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/HeraContextService.java index 48e793fb9..7b85f01b1 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/HeraContextService.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/HeraContextService.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.service; import java.util.Set; @@ -27,4 +31,4 @@ public interface HeraContextService { Set getHeraContextKeys(String heraContext); String getHeraContextValue(String heraContext, String key); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/ManagerService.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/ManagerService.java index 4529e4d0a..4746c2428 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/ManagerService.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/ManagerService.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.trace.etl.service; @@ -42,4 +45,4 @@ public interface ManagerService { Result insertOrUpdate(HeraTraceEtlConfig config, String user); int delete(HeraTraceEtlConfig config); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/RedisService.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/RedisService.java index 8bef01c40..d26d232c4 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/RedisService.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/RedisService.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.trace.etl.service; @@ -36,4 +39,4 @@ public interface RedisService { Long del(String key); boolean getDisLock(String key); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/HeraContextServiceImpl.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/HeraContextServiceImpl.java index 47f32e648..4a8253caa 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/HeraContextServiceImpl.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/HeraContextServiceImpl.java @@ -1,17 +1,20 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ package org.apache.ozhera.trace.etl.service.impl; @@ -52,4 +55,4 @@ public String getHeraContextValue(String heraContext, String key) { } return null; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/ManagerServiceImpl.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/ManagerServiceImpl.java index 7d5968fb8..dfe29adcf 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/ManagerServiceImpl.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/ManagerServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -146,4 +150,4 @@ public int delete(HeraTraceEtlConfig config) { } return i; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/RedisServiceImpl.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/RedisServiceImpl.java index 7db8c981b..cc05e9f73 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/RedisServiceImpl.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/service/impl/RedisServiceImpl.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.service.impl; import com.alibaba.nacos.api.config.annotation.NacosValue; @@ -167,4 +171,4 @@ public boolean getDisLock(String key) { } return false; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ExecutorUtil.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ExecutorUtil.java index 67c0d4bea..002b3881d 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ExecutorUtil.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ExecutorUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util; @@ -72,4 +76,4 @@ public static void submitRocksDBRead(Runnable runnable){ log.error("提交rocksdb读取任务失败:",e); } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/MessageUtil.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/MessageUtil.java index af5fdc4b2..c19fc801a 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/MessageUtil.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/MessageUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util; public class MessageUtil { @@ -42,4 +46,4 @@ public class MessageUtil { public static final String TRACE_SERVICE_REDIS_KEY = "trace_service_"; // Cache the expiration time of the redis key of serviceName and operationName public static final int TRACE_SERVICE_REDIS_KEY_EXPIRE = 60 * 60 * 24; -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ThriftUtil.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ThriftUtil.java index 830da25cd..bc04ecd31 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ThriftUtil.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/ThriftUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util; import org.apache.ozhera.tspandata.TAttributeType; @@ -36,4 +40,4 @@ public static String getStringValue(TValue value, TAttributeType type){ return value.getStringValue(); } } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/TraceUtil.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/TraceUtil.java index 2f9415452..816e2371a 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/TraceUtil.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/TraceUtil.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util; import com.alibaba.fastjson.JSONArray; @@ -383,4 +387,4 @@ private static TExtra toTExtra(Map specialAttrMap) { } return tExtra; } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataConvert.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataConvert.java index 7a6a7e3b0..289f11808 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataConvert.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataConvert.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util.convert; import org.apache.ozhera.trace.etl.domain.metadata.HeraMetaData; @@ -37,4 +41,4 @@ public interface HeraMetaDataConvert { List toModelList(List heraMetaData); List toBoList(List heraMetaData); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataPortModelConvert.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataPortModelConvert.java index cd1da1658..0c177f887 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataPortModelConvert.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/convert/HeraMetaDataPortModelConvert.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util.convert; import org.apache.ozhera.trace.etl.domain.metadata.HeraMetaDataPort; @@ -34,4 +38,4 @@ public interface HeraMetaDataPortModelConvert { List toModelList(List port); List toBoList(List port); -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/pool/AsyncNotify.java b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/pool/AsyncNotify.java index 94d6e57cb..e40c8ceb4 100644 --- a/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/pool/AsyncNotify.java +++ b/trace-etl/trace-etl-service/src/main/java/org/apache/ozhera/trace/etl/util/pool/AsyncNotify.java @@ -1,18 +1,22 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package org.apache.ozhera.trace.etl.util.pool; import lombok.extern.slf4j.Slf4j; @@ -46,4 +50,4 @@ public void init(){ public void submit(Runnable runnable){ pool.submit(runnable); } -} +} \ No newline at end of file diff --git a/trace-etl/trace-etl-service/src/test/java/com/xiaomi/youpin/trace/etl/test/Test.java b/trace-etl/trace-etl-service/src/test/java/com/xiaomi/youpin/trace/etl/test/Test.java index 256edfb92..6937e0510 100644 --- a/trace-etl/trace-etl-service/src/test/java/com/xiaomi/youpin/trace/etl/test/Test.java +++ b/trace-etl/trace-etl-service/src/test/java/com/xiaomi/youpin/trace/etl/test/Test.java @@ -1,20 +1,24 @@ /* - * Copyright (C) 2020 Xiaomi Corporation + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at * - * 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 * - * 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. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. */ + package com.xiaomi.youpin.trace.etl.test; public class Test { -} +} \ No newline at end of file