get_dashboard_id¶
- swxsoc.util.grafana.get_dashboard_id(dashboard_name: str, mission_dashboard: str | None = None) int | None[source]¶
Retrieves the dashboard UID by its name. Issues a warning if multiple dashboards with the same name are found.
- Args:
dashboard_name (str): Name of the dashboard to retrieve.
- Returns:
Optional[int]: The UID of the dashboard, or None if not found.