get_panel_id

swxsoc.util.grafana.get_panel_id(dashboard_id: int, panel_name: str, mission_dashboard: str | None = None) int | None[source]

Retrieves the panel ID by dashboard UID and panel name. Issues a warning if multiple panels with the same name are found.

Args:

dashboard_id (int): UID of the dashboard. panel_name (str): Name of the panel to retrieve.

Returns:

Optional[int]: The ID of the panel, or None if not found.