<div class="markdown">
<p dir="auto">On 11 Mar 2016, at 18:12, Brian Fitzpatrick wrote:</p>
<blockquote>
<p dir="auto">When you say "Wizards should already be there as long as SY and Fuse depend<br>
on the usage plug-in." what do you mean?</p>
</blockquote>
<p dir="auto">hmm - just realised that is missing from the docs...pretty sure it was there at some point.</p>
<p dir="auto">For basic enablement add dependency to: <code>org.jboss.tools.usage</code> like in <a href="https://github.com/jbosstools/jbosstools-server/blob/jbosstools-4.2.0.Beta1x/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF#L67">https://github.com/jbosstools/jbosstools-server/blob/jbosstools-4.2.0.Beta1x/as/plugins/org.jboss.ide.eclipse.as.ui/META-INF/MANIFEST.MF#L67</a></p>
<blockquote>
<p dir="auto">Can I interpret that as meaning if our tools ping for daily events as in<br>
the example below, our wizard usage will already be recorded?</p>
</blockquote>
<p dir="auto">Wizard usage will be recorded as soon as the usage reporter is installed (and of course if the user said yes to be tracked)</p>
<blockquote>
<p dir="auto">UsageReporter.getInstance().countEvent(eventType.event(label, value));</p>
</blockquote>
<p dir="auto">If you have code like the above then you for sure should already be covered for sure ;)</p>
<p dir="auto">/max</p>
<blockquote>
<p dir="auto">On Fri, Mar 11, 2016 at 10:08 AM, Max Rydahl Andersen <a href="mailto:manderse@redhat.com">manderse@redhat.com</a><br>
wrote:</p>
<blockquote>
<p dir="auto">On 11 Mar 2016, at 18:01, Brian Fitzpatrick wrote:</p>
<p dir="auto">Hi all,</p>
<blockquote>
<p dir="auto">Back in January I received great help from Alexey and Max to help me take<br>
a<br>
look at the usage data we've been tracking for JBDS. It really helped get<br>
some baseline numbers for ESB usage so we could justify deprecation of the<br>
older tooling going forward (still supporting, just not actively updating,<br>
which is how it's been for a few years now anyway).</p>
<p dir="auto">Now we'd like to hook SwitchYard and Fuse Tools wizards and editors up to<br>
get them into the tracking data as well.</p>
</blockquote>
<p dir="auto">Wizards should already be there as long as SY and Fuse depend on the usage<br>
plugin.</p>
<p dir="auto">For editors you will need to send specific events.</p>
<p dir="auto">Do we have anything written up on how to use the frameworks for the usage</p>
<blockquote>
<p dir="auto">tooling in JBDS? Or can you point me at some examples of how you've done<br>
it<br>
for wizards and editors in the main JBoss Tools code?</p>
</blockquote>
<p dir="auto">Docs:<br>
<a href="https://github.com/jbosstools/jbosstools-devdoc/blob/master/api/usage/usage_api.adoc">https://github.com/jbosstools/jbosstools-devdoc/blob/master/api/usage/usage_api.adoc</a></p>
<p dir="auto">Please be aware to not send a ping for every little thing - we don't want<br>
to overload with data.</p>
<p dir="auto">But for example if you want to count the number of times the fuse editor<br>
is opened you can do that with a daily event counter.</p>
<p dir="auto">To find examples - search for .countEvent() in JBoss Tools Server and I<br>
think Forge has some too.</p>
<p dir="auto">/max<br>
<a href="http://about.me/maxandersen">http://about.me/maxandersen</a></p>
</blockquote>
</blockquote>
<p dir="auto">/max<br>
<a href="http://about.me/maxandersen">http://about.me/maxandersen</a></p>
</div>