@@ -95,7 +95,7 @@ public void testPostRequest() throws InterruptedException {
9595 String expectedPingRequestBody =
9696 "\\ {\" Documents\" :null,\" InstrumentationKey\" :null,\" Metrics\" :null,\" InvariantVersion\" :1,\" Timestamp\" :\" \\ \\ /Date\\ (\\ d+\\ )\\ \\ /\" ,\" Version\" :\" \\ (unknown\\ )\" ,\" StreamId\" :\" qpid123\" ,\" MachineName\" :\" machine1\" ,\" Instance\" :\" instance1\" ,\" RoleName\" :null\\ }" ;
9797 String expectedPostRequestBody =
98- "\\ [\\ {\" Documents\" :\\ [\\ {\" __type\" :\" RequestTelemetryDocument\" ,\" DocumentType\" :\" Request\" ,\" Version\" :\" 1.0\" ,\" OperationId\" :null,\" Properties\" :\\ {\" customProperty\" :\" customValue\" \\ },\" Name\" :\" request-test\" ,\" Success\" :true,\" Duration\" :\" \\ d+: \\ d+: \\ d+ \\ . \\ d+ \ " ,\" ResponseCode\" :\" 200\" ,\" OperationName\" :null,\" Url\" :\" foo\" \\ },\\ {\" __type\" :\" DependencyTelemetryDocument\" ,\" DocumentType\" :\" RemoteDependency\" ,\" Version\" :\" 1.0\" ,\" OperationId\" :null,\" Properties\" :\\ {\" customProperty\" :\" customValue\" \\ },\" Name\" :\" dep-test\" ,\" Target\" :null,\" Success\" :true,\" Duration\" :\" \\ d+: \\ d+: \\ d+. \\ d+ \" ,\" ResultCode\" :null,\" CommandName\" :\" dep-test-cmd\" ,\" DependencyTypeName\" :null,\" OperationName\" :null\\ },\\ {\" __type\" :\" ExceptionTelemetryDocument\" ,\" DocumentType\" :\" Exception\" ,\" Version\" :\" 1.0\" ,\" OperationId\" :null,\" Properties\" :null,\" Exception\" :\" \" ,\" ExceptionMessage\" :\" test\" ,\" ExceptionType\" :\" java.lang.Exception\" \\ }\\ ],\" InstrumentationKey\" :\" "
98+ "\\ [\\ {\" Documents\" :\\ [\\ {\" __type\" :\" RequestTelemetryDocument\" ,\" DocumentType\" :\" Request\" ,\" Version\" :\" 1.0\" ,\" OperationId\" :null,\" Properties\" :\\ {\" customProperty\" :\" customValue\" \\ },\" Name\" :\" request-test\" ,\" Success\" :true,\" Duration\" :\" PT.*S \ " ,\" ResponseCode\" :\" 200\" ,\" OperationName\" :null,\" Url\" :\" foo\" \\ },\\ {\" __type\" :\" DependencyTelemetryDocument\" ,\" DocumentType\" :\" RemoteDependency\" ,\" Version\" :\" 1.0\" ,\" OperationId\" :null,\" Properties\" :\\ {\" customProperty\" :\" customValue\" \\ },\" Name\" :\" dep-test\" ,\" Target\" :null,\" Success\" :true,\" Duration\" :\" PT.*S \" ,\" ResultCode\" :null,\" CommandName\" :\" dep-test-cmd\" ,\" DependencyTypeName\" :null,\" OperationName\" :null\\ },\\ {\" __type\" :\" ExceptionTelemetryDocument\" ,\" DocumentType\" :\" Exception\" ,\" Version\" :\" 1.0\" ,\" OperationId\" :null,\" Properties\" :null,\" Exception\" :\" \" ,\" ExceptionMessage\" :\" test\" ,\" ExceptionType\" :\" java.lang.Exception\" \\ }\\ ],\" InstrumentationKey\" :\" "
9999 + instrumentationKey
100100 + "\" ,\" Metrics\" :\\ [\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Requests\\ \\ \\ /Sec\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Request Duration\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Requests Failed\\ \\ \\ /Sec\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Requests Succeeded\\ \\ \\ /Sec\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Dependency Calls\\ \\ \\ /Sec\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Dependency Call Duration\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Dependency Calls Failed\\ \\ \\ /Sec\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Dependency Calls Succeeded\\ \\ \\ /Sec\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ ApplicationInsights\\ \\ \\ \\ Exceptions\\ \\ \\ /Sec\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ Memory\\ \\ \\ \\ Committed Bytes\" ,\" Value\" :\\ d+,\" Weight\" :\\ d+\\ },\\ {\" Name\" :\" \\ \\ \\ \\ Processor\\ (_Total\\ )\\ \\ \\ \\ % Processor Time\" ,\" Value\" :-?\\ d+,\" Weight\" :\\ d+\\ }\\ ],\" InvariantVersion\" :1,\" Timestamp\" :\" \\ \\ \\ /Date\\ (\\ d+\\ )\\ \\ \\ /\" ,\" Version\" :\" [^\" ]*\" ,\" StreamId\" :null,\" MachineName\" :\" machine1\" ,\" Instance\" :\" instance1\" ,\" RoleName\" :null\\ }\\ ]" ;
101101 QuickPulsePingSender pingSender =
0 commit comments