Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnider2195 committed Nov 13, 2024
1 parent b051bfa commit 7eab0e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nautobot_chatops/integrations/grafana/diffsync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def run_dashboard_sync(overwrite: bool = False) -> Union[str, None]:
Args:
overwrite (bool): Overwrite Nautobot data and delete records that are no longer in Grafana.
Raises:
ImportError: If DiffSync is not installed.
"""
if not DIFFSYNC_INSTALLED:
raise ImportError("DiffSync is not installed. Please install DiffSync to use the grafana integration.")
Expand Down Expand Up @@ -60,6 +63,9 @@ def run_panels_sync(dashboard: Dashboard, overwrite: bool = False) -> Union[str,
Args:
dashboard (nautobot_chatops.integrations.grafana.models.Dashboard): The dashboard we are going to do a diffsync with.
overwrite (bool): Overwrite Nautobot data and delete records that are no longer in Grafana.
Raises:
ImportError: If DiffSync is not installed.
"""
if not DIFFSYNC_INSTALLED:
raise ImportError("DiffSync is not installed. Please install DiffSync to use the grafana integration.")
Expand Down Expand Up @@ -93,6 +99,9 @@ def run_variables_sync(dashboard: Dashboard, overwrite: bool = False) -> Union[s
Args:
dashboard (nautobot_chatops.integrations.grafana.models.Dashboard): The dashboard we are going to do a diffsync with.
overwrite (bool): Overwrite Nautobot data and delete records that are no longer in Grafana.
Raises:
ImportError: If DiffSync is not installed.
"""
if not DIFFSYNC_INSTALLED:
raise ImportError("DiffSync is not installed. Please install DiffSync to use the grafana integration.")
Expand Down

0 comments on commit 7eab0e8

Please sign in to comment.