class ClouderaManagerMgmtTelemetryService {

    @VisibleForTesting
    ApiConfigList buildTelemetryCMConfigList(WorkloadAnalytics workloadAnalytics) {
        final Map<String, String> configsToUpdate = new HashMap<>();
        configsToUpdate.put(TELEMETRY_MASTER, "true");
        configsToUpdate.put(TELEMETRY_WA, "true");
        configsToUpdate.put(TELEMETRY_COLLECT_JOB_LOGS, "true");
        configsToUpdate.put(TELEMETRY_ALTUS_ACCOUNT, ALTUS_CREDENTIAL_NAME);
        if (StringUtils.isNotEmpty(workloadAnalytics.getDatabusEndpoint())) {
            configsToUpdate.put(TELEMETRY_ALTUS_URL, workloadAnalytics.getDatabusEndpoint());
        }
        return makeApiConfigList(configsToUpdate);
    }

}