question: private void createDatabaseIfNotExistent ( ) { if ( isOnline ( ) ) { List < String > dbNames = influxDB . describeDatabases ( ) ; if ( ! dbNames . contains ( database ) ) { influxDB . createDatabase ( database ) ; } } }
target:  Creates the configured database in influx if it does not exist yet.