public boolean syncMonitors ( NewRelicCache cache ) { boolean ret = true ; if ( apiClient == null ) throw new IllegalArgumentException ( "null API client" ) ; // Get the Synthetics configuration using the REST API if ( cache . isSyntheticsEnabled ( ) ) { ret = false ; logger . info ( "Getting the monitors" ) ; cache . monitors ( ) . add ( syntheticsApiClient . monitors ( ) . list ( ) ) ; cache . setUpdatedAt ( ) ; ret = true ; } return ret ; }
Synchronise the Synthetics configuration with the cache .