Skip to content

Commit

Permalink
Add the collectx versions to the to the PFD
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Dec 4, 2024
1 parent c2d2e10 commit 2279091
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(
self.save_first_last_iteration_timestamp,
self.save_number_of_switches_and_ports,
self.save_number_of_core_dumps,
self.save_collectx_versions
}
# Based on the log path, decided if this is primary or secondary
if "ufm_logs" in logs_csvs[0]:
Expand All @@ -52,11 +53,16 @@ def __init__(
self._first_timestamp_of_logs = None
self._last_timestamp_of_logs = None

def get_collectx_versions(self):
def save_collectx_versions(self):
unique_collectx_versions = self._log_data_sorted[
self._log_data_sorted["type"] == "collectx_version"
]["data"].unique()
return unique_collectx_versions
self._dataframes_for_pdf.append(
(
f"{self.telemetry_type} telemetry collectx versions",
unique_collectx_versions,
)
)

def save_number_of_switches_and_ports(self):
"""
Expand Down

0 comments on commit 2279091

Please sign in to comment.