Codota Logo
EventTelemetry.getProperties
Code IndexAdd Codota to your IDE (free)

How to use
getProperties
method
in
com.microsoft.applicationinsights.telemetry.EventTelemetry

Best Java code snippets using com.microsoft.applicationinsights.telemetry.EventTelemetry.getProperties (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: Microsoft/ApplicationInsights-Java

  @Override
  public Telemetry apply(BaseTelemetry bt) {
    Preconditions.checkNotNull(bt);
    EventTelemetry t = (EventTelemetry) bt;
    final Event.Builder eb = Event.newBuilder()
        .setVer(t.getVer());
    if (t.getName() != null) eb.setName(t.getName());
    if (t.getProperties() != null) eb.putAllProperties(t.getProperties());
    if (t.getMetrics() != null) eb.putAllMeasurements(t.getMetrics());
    return telemetryBuilderWithStandardFields(t).setEvent(eb).build();
  }
});
origin: Microsoft/ApplicationInsights-Java

@Test
public void testTrackEventWithPropertiesAndMetrics() {
  Map<String, String> properties = new HashMap<String, String>() {{ put("key", "value"); }};
  Map<String, Double> metrics = new HashMap<String, Double>() {{ put("key", 1d); }};
  client.trackEvent("Event", properties, metrics);
  EventTelemetry telemetry = (EventTelemetry) verifyAndGetLastEventSent();
  Assert.assertTrue("Expected telemetry property not found", telemetry.getProperties().get("key").equalsIgnoreCase("value"));
  Assert.assertTrue("Expected telemetry property not found", 1d == telemetry.getMetrics().get("key"));
}
origin: Microsoft/ApplicationInsights-Java

et = new EventTelemetry(name);
et.getContext().setInstrumentationKey(iKey);
et.getProperties().putAll(props);
et.getMetrics().putAll(metrics);
testCases.add(new Object[]{
com.microsoft.applicationinsights.telemetryEventTelemetrygetProperties

Popular methods of EventTelemetry

  • <init>
    Initializes a new instance.
  • getContext
  • getMetrics
    Gets a map of application-defined event metrics. These metrics appear along with the event in Search
  • getName
    Gets the name of the event.
  • getTimestamp
  • getVer
  • setName
    Sets the name of the event.
  • getData
    Fetches the data structure the instance works with
  • initialize
  • setTimestamp

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JList (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now