Hi Nirmal, Documentation says arbitrary data support can be used with wso2event input format. But in my case its "JSON". Custom event receiver will be an option. But is there a way I can do this without writing a custom event receiver ?
Thanks for the help. Regards, Lahiru On Sat, Jul 8, 2017 at 10:02 AM, Nirmal Fernando <nir...@wso2.com> wrote: > Check on arbitrary data support https://docs.wso2.com/ > display/DAS310/Input+Mapping+Types > > On Sat, Jul 8, 2017 at 7:48 AM, Lahiru Madushanka <lahirum...@wso2.com> > wrote: > >> Hi all, >> >> I have a requirement where data values published to DAS are not >> predefined (dynamic) >> ( Ex :- cpu usage of a given laptop ) So I push them as a JSON string >> Ex:- "cpuinfo":{"corePercentages": [4.1, 3.1, 5.2, 7.1], "numOfCores": 4} >> This JSON string will be changed with no of cores in the PC which pushes >> the data. >> >> Is there a way I can write a summarization query in siddhiql to take >> average of average corePercentages for a time interval. (first take avg of >> percentage values and then average it over time ) >> >> Thanks >> Lahiru >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Thanks & regards, > Nirmal > > Technical Lead, WSO2 Inc. > Mobile: +94715779733 <+94%2071%20577%209733> > Blog: http://nirmalfdo.blogspot.com/ > > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev