Hi Tharindu, On Fri, Jun 1, 2012 at 12:36 PM, Tharindu Mathew <[email protected]> wrote:
> Great that you have got it working. > > I have a couple of questions on the approach. > > - How are you calling the stubs? Are using the local transport or are you > using credentials anywhere? > As per offline discussion, I'll use the local transport when calling the stubs. > > - What is the dashboard artifacts needed? And what are their format? Ex: > What are the artifacts needed to create a service monitoring dashboard with > 3 tabs with 4, 3 and 3 gadgets respectively. > As per the discussion, since we can add multiple tabs for a dashboard, we don't need to go with separate dashboard per scenario. Currently I have done as creating one tab per artifact. But this can be changed to add multiple tabs. Currently within the bam deployment artifact, there will be a properties file called 'dashboard.properties', there you need to specify the tab name, and the respective gadget xml names for that tab. And the gadget artifacts should be placed under gadgets folder. The structure is, bam artifact |- dashboard (folder) |-dashboar.properties |-gadget (folder) |- (All gadget xmls, and files will be here) All gadget files in the gadget folder will be put in the registry and then tabs & gadgets will be created by calling respective admin services. The currently dashboard.properties file which support only one tab looks like below. Ex: tab.name=Test Tab gadgets.xmls=helloworld1.xml, helloworld2.xml I'll extend this, such as to support many tabs in a single deployment artifact. Then the dashboard.properties file be looking as below to your scenario: tabs.name=Service Monitoring Tab-1, Service Monitoring Tab-2, Service Monitoring Tab-3 tabs.name1.gadgets.xmls=helloworld11.xml, helloworld12.xml, helloworld13.xml, helloworld14.xml tabs.name2.gadgets.xmls=helloworld21.xml, helloworld22.xml,helloworl23.xml tabs.name3.gadgets.xmls=helloworld31.xml, helloworld32.xml,helloworl33.xml Thanks, Sinthuja. > > On Fri, Jun 1, 2012 at 11:27 AM, Nuwan Bandara <[email protected]> wrote: > >> cool :) >> >> >> On Fri, Jun 1, 2012 at 11:24 AM, Sinthuja Ragendran <[email protected]>wrote: >> >>> Hi, >>> >>> Sorry for the delay in updating the thread. >>> >>> I was able to use the Dashboard Service for add tab and add gadgets as >>> mentioned. >>> >>> But anyhow first I put the gadget xmls in the registry and then I >>> invoked the following methods. >>> >>> >>> public Integer addNewTab(String userId, String tabTitle, >>> String dashboardName) -> To add tab in the >>> dashboard >>> >>> public Boolean addGadgetToUser(String userId, String tabId, String url, >>> String dashboardName, String >>> gadgetGroup) -> To add the gadgets >>> >>> >>> Thanks for helping on this. >>> >>> Regards, >>> Sinthuja. >>> >>> >>> >>> >>> On Thu, May 24, 2012 at 1:18 PM, Nuwan Bandara <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I would say for now, go with the old dashboard, once we do the new one >>>> we will migrate. >>>> >>>> Regards, >>>> /Nuwan >>>> >>>> >>>> On Thu, May 24, 2012 at 1:15 PM, Sinthuja Ragendran >>>> <[email protected]>wrote: >>>> >>>>> Hi Nuwan, >>>>> >>>>> So when are you planning to complete/partially complete to the make >>>>> use of the new dashborad? >>>>> This requirement is for BAM toolboxes and planned to be in M6 of BAM2 >>>>> according to the roadmap [1]. >>>>> >>>>> So what you would suggest whether to proceed with old dashboard or >>>>> wait until newly implementing one? >>>>> >>>>> [1] >>>>> https://wso2.org/jira/browse/BAM#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel >>>>> >>>>> Thanks, >>>>> Sinthuja. >>>>> >>>>> >>>>> On Thu, May 24, 2012 at 12:40 PM, Nuwan Bandara <[email protected]>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> Honestly right now, the dashboard is not that flexible. It was made >>>>>> up initially with a limited set of requirements. You might be able to >>>>>> accommodate these with some hacks, but I cannot think of a clean >>>>>> solution. >>>>>> >>>>>> We will be start doing a jaggery based dashboard solution within next >>>>>> few weeks, and will make sure to capture all these requirements and >>>>>> expose >>>>>> a clean api. >>>>>> >>>>>> With what we got right now, >>>>>> >>>>>> 1. You can directly use the admin service and push data in >>>>>> 2. Create a dashboard xml, (which is a registry dump) withing the >>>>>> code and pump it in to the registry (Refer to the dahboard populater >>>>>> code.) >>>>>> >>>>>> Regards, >>>>>> /Nuwan >>>>>> >>>>>> >>>>>> On Thu, May 24, 2012 at 12:29 PM, Tharindu Mathew >>>>>> <[email protected]>wrote: >>>>>> >>>>>>> Sinthuja, >>>>>>> >>>>>>> Maybe we should expand on the requirement here. I believe it is not >>>>>>> just adding a gadget but adding a whole dashboard, i.e. tabs + tab >>>>>>> configuration of gadgets + gadgets. >>>>>>> >>>>>>> Nuwan, this is similar to what we had with dashboard.xml. We need >>>>>>> this to deploy different dashboards for different scenarios. Ex: A >>>>>>> dashboard for service monitoring, a dashboard for message tracing, a >>>>>>> dashboard for ESB monitoring >>>>>>> >>>>>>> Can you suggest the best approach for this? This should probably be >>>>>>> there in the gadget deployment phase already, >>>>>>> >>>>>>> On Thu, May 24, 2012 at 12:07 PM, Nuwan Bandara <[email protected]>wrote: >>>>>>> >>>>>>>> Hi Sinthuja, >>>>>>>> >>>>>>>> We havent done this programatically before, so you mite face road >>>>>>>> blocks. Please read through DashboardService. I belive addGadgetToUser >>>>>>>> method, does what you need. >>>>>>>> >>>>>>>> addGadgetToUser(String userId, String tabId, String url, String >>>>>>>> dashboardName, String gadgetGroup) >>>>>>>> >>>>>>>> Simply ignore the last parameter and pass null for that. >>>>>>>> >>>>>>>> Regards, >>>>>>>> /Nuwan >>>>>>>> >>>>>>>> On Thu, May 24, 2012 at 11:14 AM, Sinthuja Ragendran < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I have requirement to add a gadget in BAM2 programmatically. I >>>>>>>>> have a gadget artifact in the file system, and I need this gadget >>>>>>>>> artifact >>>>>>>>> to be added to the bam gadgets and see that in the bam main dash board >>>>>>>>> programmatically, rather going through the UI by clicking on add >>>>>>>>> gadgets >>>>>>>>> and point to the URL. >>>>>>>>> >>>>>>>>> What are the possible ways of doing this? Is there any services >>>>>>>>> exposed to add the gadgets so that I can make use of? >>>>>>>>> >>>>>>>>> Currently bam2 has the following features installed: >>>>>>>>> >>>>>>>>> org.wso2.carbon.dashboard.dashboardpopulator.server.feature >>>>>>>>> org.wso2.carbon.dashboard.feature >>>>>>>>> org.wso2.carbon.gadget.editor.ui.feature >>>>>>>>> org.wso2.carbon.gadget.editor.feature >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Sinthuja. >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Thanks & Regards, >>>>>>>> >>>>>>>> Nuwan Bandara >>>>>>>> Associate Technical Lead & Member, MC, Development Technologies >>>>>>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>>>>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 >>>>>>>> 763 9629 >>>>>>>> * >>>>>>>> <http://www.nuwanbando.com/> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Dev mailing list >>>>>>>> [email protected] >>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Regards, >>>>>>> >>>>>>> Tharindu >>>>>>> >>>>>>> blog: http://mackiemathew.com/ >>>>>>> M: +94777759908 >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Thanks & Regards, >>>>>> >>>>>> Nuwan Bandara >>>>>> Associate Technical Lead & Member, MC, Development Technologies >>>>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 >>>>>> 763 9629 >>>>>> * >>>>>> <http://www.nuwanbando.com/> >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Thanks & Regards, >>>> >>>> Nuwan Bandara >>>> Associate Technical Lead & Member, MC, Development Technologies >>>> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >>>> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 >>>> 9629 >>>> * >>>> <http://www.nuwanbando.com/> >>>> >>> >>> >> >> >> -- >> *Thanks & Regards, >> >> Nuwan Bandara >> Associate Technical Lead & Member, MC, Development Technologies >> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >> blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 >> 9629 >> * >> <http://www.nuwanbando.com/> >> > > > > -- > Regards, > > Tharindu > > blog: http://mackiemathew.com/ > M: +94777759908 > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
