Class AppInsightsClient
- java.lang.Object
 - 
- com.microsoft.jenkins.azurecommons.telemetry.AppInsightsClient
 
 
- 
public class AppInsightsClient extends Object
Client for App Insights. To enable AI in local env(mvn hpi:run), you need set env variable first: export APPLICATION_INSIGHTS_IKEY=`your key`. 
- 
- 
Constructor Summary
Constructors Constructor Description AppInsightsClient(Plugin plugin) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendEvent(String item, String action, Map<String,String> properties, boolean force)No-OP, first step of retiring analytics.AppInsightsClientwithEventNamePrefix(String prefix)AppInsightsClientwithInstrumentationKey(String key) 
 - 
 
- 
- 
Constructor Detail
- 
AppInsightsClient
public AppInsightsClient(Plugin plugin)
 
 - 
 
- 
Method Detail
- 
sendEvent
public void sendEvent(String item, String action, Map<String,String> properties, boolean force)
No-OP, first step of retiring analytics. 
- 
withInstrumentationKey
public AppInsightsClient withInstrumentationKey(String key)
 
- 
withEventNamePrefix
public AppInsightsClient withEventNamePrefix(String prefix)
 
 - 
 
 -