public boolean syncDashboards ( NewRelicCache cache ) { boolean ret = true ; if ( apiClient == null ) throw new IllegalArgumentException ( "null API client" ) ; // Get the dashboard configuration using the REST API if ( cache . isInsightsEnabled ( ) ) { ret = false ; logger . info ( "Getting the dashboards" ) ; cache . dashboards ( ) . set ( apiClient . dashboards ( ) . list ( ) ) ; cache . setUpdatedAt ( ) ; ret = true ; } return ret ; }
Synchronise the dashboard configuration with the cache .