use of io.keen.client.java.KeenProject in project blueocean-plugin by jenkinsci.
the class KeenAnalyticsImpl method doTrack.
@Override
protected void doTrack(String name, Map<String, Object> allProps) {
// Always set the proxy in case its configuration has changed after startup
ProxyConfiguration proxyConfig = Jenkins.get().proxy;
Proxy proxy = proxyConfig == null ? null : proxyConfig.createProxy(null);
CLIENT.setProxy(proxy);
// Ensure that we are using the right project info
KeenProject project = KeenConfiguration.get().project();
CLIENT.setDefaultProject(project);
// Send the event
CLIENT.addEventAsync(name, allProps);
}
Aggregations