Loading manifests/opticalattackmanagerservice.yaml +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading src/dbscanserving/Config.py +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading src/dbscanserving/Dockerfile +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading src/dbscanserving/__init__.py +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading src/dbscanserving/client/DbscanServingClient.py +2 −6 Original line number Original line Diff line number Diff line Loading @@ -12,18 +12,14 @@ # See the License for the specific language governing permissions and # See the License for the specific language governing permissions and # limitations under the License. # limitations under the License. import logging import grpc, logging from typing import Counter from typing import Counter import grpc from common.proto.dbscanserving_pb2 import DetectionRequest, DetectionResponse from common.proto.dbscanserving_pb2 import DetectionRequest, DetectionResponse from common.proto.dbscanserving_pb2_grpc import DetectorStub from common.proto.dbscanserving_pb2_grpc import DetectorStub from common.Settings import get_log_level, get_setting from common.Settings import get_setting from common.tools.client.RetryDecorator import delay_exponential, retry from common.tools.client.RetryDecorator import delay_exponential, retry log_level = get_log_level() logging.basicConfig(level=log_level) LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__) MAX_RETRIES = 15 MAX_RETRIES = 15 DELAY_FUNCTION = delay_exponential(initial=0.01, increment=2.0, maximum=5.0) DELAY_FUNCTION = delay_exponential(initial=0.01, increment=2.0, maximum=5.0) Loading Loading
manifests/opticalattackmanagerservice.yaml +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading
src/dbscanserving/Config.py +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading
src/dbscanserving/Dockerfile +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading
src/dbscanserving/__init__.py +1 −1 Original line number Original line Diff line number Diff line # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # # # Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License. Loading
src/dbscanserving/client/DbscanServingClient.py +2 −6 Original line number Original line Diff line number Diff line Loading @@ -12,18 +12,14 @@ # See the License for the specific language governing permissions and # See the License for the specific language governing permissions and # limitations under the License. # limitations under the License. import logging import grpc, logging from typing import Counter from typing import Counter import grpc from common.proto.dbscanserving_pb2 import DetectionRequest, DetectionResponse from common.proto.dbscanserving_pb2 import DetectionRequest, DetectionResponse from common.proto.dbscanserving_pb2_grpc import DetectorStub from common.proto.dbscanserving_pb2_grpc import DetectorStub from common.Settings import get_log_level, get_setting from common.Settings import get_setting from common.tools.client.RetryDecorator import delay_exponential, retry from common.tools.client.RetryDecorator import delay_exponential, retry log_level = get_log_level() logging.basicConfig(level=log_level) LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__) MAX_RETRIES = 15 MAX_RETRIES = 15 DELAY_FUNCTION = delay_exponential(initial=0.01, increment=2.0, maximum=5.0) DELAY_FUNCTION = delay_exponential(initial=0.01, increment=2.0, maximum=5.0) Loading