Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
boazhaim committed Sep 1, 2024
1 parent d457f33 commit 801e5b2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ufm_log_analyzer_ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.9'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,12 @@ def create_analyzer(parsed_args, full_extracted_logs_list,

rest_api_log_analyzer = partial_create_analyzer(log_name="rest_api.log",
analyzer_clc=RestApiAnalyzer)
second_telemetry_sampled_csv = get_files_in_dest_by_type(args.destination, "secondary_", 1000, "gz")
links_flapping_analyzer = LinkFlappingAnalyzer(second_telemetry_sampled_csv, args.destination)
second_telemetry_sampled_csv = get_files_in_dest_by_type(args.destination,
"secondary_",
1000,
"gz")
links_flapping_analyzer = LinkFlappingAnalyzer(second_telemetry_sampled_csv,
args.destination)
ufm_top_analyzer.add_analyzer(links_flapping_analyzer)
end = time.perf_counter()
log.LOGGER.debug(f"Took {end-start:.3f} to load the parsed data")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
import shutil
from typing import List
import pandas as pd
from utils.netfix.link_flapping import get_link_flapping
from loganalyze.log_analyzers.base_analyzer import BaseImageCreator
import loganalyze.logger as log
from utils.netfix.link_flapping import get_link_flapping
FILE_NAME_PATTERN=r"^secondary_(5m|1h|1d|1w)_(\d{14})\.gz$"
TIME_PATTERN="%Y%m%d%H%M%S"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#
from typing import List
from urllib.parse import urlparse
from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer
import pandas as pd
import numpy as np
from loganalyze.log_analyzers.base_analyzer import BaseAnalyzer

class RestApiAnalyzer(BaseAnalyzer):

Expand Down

0 comments on commit 801e5b2

Please sign in to comment.