1
1
{
2
- "networkCallRecords" : [ {
3
- "Method" : " POST" ,
4
- "Uri" : " https://REDACTED.loganalytics.io/v1/$batch" ,
5
- "Headers" : {
6
- "User-Agent" : " azsdk-java-azure-monitor-query/1.2.0-beta.1 (17.0.2; Windows 11; 10.0)" ,
7
- "x-ms-client-request-id" : " 3d7f76cb-71e9-4837-930e-176eebc57741" ,
8
- "Content-Type" : " application/json"
9
- },
10
- "Response" : {
11
- "Transfer-Encoding" : " chunked" ,
12
- "Access-Control-Allow-Origin" : " *" ,
13
- "X-Content-Type-Options" : " nosniff" ,
14
- "Connection" : " keep-alive" ,
15
- "retry-after" : " 0" ,
16
- "StatusCode" : " 200" ,
17
- "Date" : " Tue, 14 Mar 2023 07:50:11 GMT" ,
18
- "via" : " 1.1 draft-oms-5979b88dcd-kx47g" ,
19
- "Strict-Transport-Security" : " max-age=15724800; includeSubDomains" ,
20
- "Access-Control-Expose-Headers" : " Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location" ,
21
- "Vary" : " Accept-Encoding" ,
22
- "Body" : "{\"responses\":[{\"id\":\"2\",\"status\":400,\"body\":{\"error\":{\"message\":\"The request had some invalid properties\",\"code\":\"BadArgumentError\",\"correlationId\":\"31269348-b3c4-4147-b79e-f1143ee64c0c\",\"innererror\":{\"code\":\"SyntaxError\",\"message\":\"A recognition error occurred in the query.\",\"innererror\":{\"code\":\"SYN0002\",\"message\":\"Query could not be parsed at '<EOF>' on line [2,299]\",\"line\":2,\"pos\":299,\"token\":\"<EOF>\"}}}}},{\"id\":\"1\",\"status\":200,\"body\":{\"tables\":[{\"name\":\"PrimaryResult\",\"columns\":[{\"name\":\"x\",\"type\":\"long\"},{\"name\":\"y\",\"type\":\"long\"},{\"name\":\"DateTime\",\"type\":\"datetime\"},{\"name\":\"Bool\",\"type\":\"bool\"},{\"name\":\"Guid\",\"type\":\"guid\"},{\"name\":\"Int\",\"type\":\"int\"},{\"name\":\"Long\",\"type\":\"long\"},{\"name\":\"Double\",\"type\":\"real\"},{\"name\":\"String\",\"type\":\"string\"},{\"name\":\"Timespan\",\"type\":\"timespan\"},{\"name\":\"Decimal\",\"type\":\"decimal\"},{\"name\":\"Dynamic\",\"type\":\"dynamic\"}],\"rows\":[[100,1,\"2015-12-31T23:59:59.9Z\",false,\"74be27de-1e4e-49d9-b579-fe0b331d3642\",12345,1,12345.6789,\"string value\",\"00:00:10\",\"0.10101\",\"{\\\"a\\\":123,\\\"b\\\":\\\"hello\\\",\\\"c\\\":[1,2,3],\\\"d\\\":{}}\"],[99,1,\"2015-12-31T23:59:59.9Z\",false,\"74be27de-1e4e-49d9-b579-fe0b331d3642\",12345,1,12345.6789,\"string value\",\"00:00:10\",\"0.10101\",\"{\\\"a\\\":123,\\\"b\\\":\\\"hello\\\",\\\"c\\\":[1,2,3],\\\"d\\\":{}}\"]]}]}}]}",
23
- "Content-Type" : " application/json; charset=utf-8"
24
- },
25
- "Exception" : null
26
- } ],
27
- "variables" : [ ]
28
- }
2
+ "Entries" : [
3
+ {
4
+ "RequestUri" : " https://REDACTED/v1/$batch" ,
5
+ "RequestMethod" : " POST" ,
6
+ "RequestHeaders" : {
7
+ "Accept" : " application/json" ,
8
+ "Authorization" : " Sanitized" ,
9
+ "Content-Length" : " 1234" ,
10
+ "Content-Type" : " application/json" ,
11
+ "Date" : " Tue, 18 Apr 2023 18:00:51 GMT" ,
12
+ "User-Agent" : " azsdk-java-azure-monitor-query/1.2.0-beta.1 (17.0.2; Windows 11; 10.0)" ,
13
+ "x-ms-client-request-id" : " e9551643-9abe-483b-af21-fb294d449a61"
14
+ },
15
+ "RequestBody" : {
16
+ "requests" : [
17
+ {
18
+ "id" : " 1" ,
19
+ "body" : {
20
+ "query" : " let dt = datatable (DateTime: datetime, Bool:bool, Guid: guid, Int: int, Long:long, Double: double, String: string, Timespan: timespan, Decimal: decimal, Dynamic: dynamic)\n [datetime(2015-12-31 23:59:59.9), false, guid(74be27de-1e4e-49d9-b579-fe0b331d3642), 12345, 1, 12345.6789, \u0027 string value\u0027 , 10s, decimal(0.10101), dynamic({\u0022 a\u0022 :123, \u0022 b\u0022 :\u0022 hello\u0022 , \u0022 c\u0022 :[1,2,3], \u0022 d\u0022 :{}})];range x from 1 to 100 step 1 | extend y=1 | join kind=fullouter dt on $left.y == $right.Long | take 2"
21
+ },
22
+ "workspace" : " d2d0e126-fa1e-4b0a-b647-250cdd471e68" ,
23
+ "headers" : {},
24
+ "path" : " /query" ,
25
+ "method" : " POST"
26
+ },
27
+ {
28
+ "id" : " 2" ,
29
+ "body" : {
30
+ "query" : " let dt = datatable (DateTime: datetime, Bool:bool, Guid: guid, Int: int, Long:long, Double: double, String: string, Timespan: timespan, Decimal: decimal, Dynamic: dynamic)\n [datetime(2015-12-31 23:59:59.9), false, guid(74be27de-1e4e-49d9-b579-fe0b331d3642), 12345, 1, 12345.6789, \u0027 string value\u0027 , 10s, decimal(0.10101), dynamic({\u0022 a\u0022 :123, \u0022 b\u0022 :\u0022 hello\u0022 , \u0022 c\u0022 :[1,2,3], \u0022 d\u0022 :{}})];range x from 1 to 100 step 1 | extend y=1 | join kind=fullouter dt on $left.y == $right.Long | take"
31
+ },
32
+ "workspace" : " d2d0e126-fa1e-4b0a-b647-250cdd471e68" ,
33
+ "headers" : {},
34
+ "path" : " /query" ,
35
+ "method" : " POST"
36
+ }
37
+ ]
38
+ },
39
+ "StatusCode" : 200 ,
40
+ "ResponseHeaders" : {
41
+ "Access-Control-Allow-Origin" : " *" ,
42
+ "Access-Control-Expose-Headers" : " Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location" ,
43
+ "Connection" : " keep-alive" ,
44
+ "Content-Type" : " application/json; charset=utf-8" ,
45
+ "Date" : " Tue, 18 Apr 2023 18:00:52 GMT" ,
46
+ "Strict-Transport-Security" : " max-age=15724800; includeSubDomains" ,
47
+ "Transfer-Encoding" : " chunked" ,
48
+ "Vary" : " Accept-Encoding" ,
49
+ "Via" : " 1.1 draft-oms-666995cb46-22qw8" ,
50
+ "X-Content-Type-Options" : " nosniff"
51
+ },
52
+ "ResponseBody" : {
53
+ "responses" : [
54
+ {
55
+ "id" : " 1" ,
56
+ "status" : 200 ,
57
+ "headers" : {
58
+ "Age" : " 91" ,
59
+ "request-context" : " appId=cid-v1:70941e4f-7e8f-40b7-b730-183893db0297"
60
+ },
61
+ "body" : {
62
+ "tables" : [
63
+ {
64
+ "name" : " PrimaryResult" ,
65
+ "columns" : [
66
+ {
67
+ "name" : " x" ,
68
+ "type" : " long"
69
+ },
70
+ {
71
+ "name" : " y" ,
72
+ "type" : " long"
73
+ },
74
+ {
75
+ "name" : " DateTime" ,
76
+ "type" : " datetime"
77
+ },
78
+ {
79
+ "name" : " Bool" ,
80
+ "type" : " bool"
81
+ },
82
+ {
83
+ "name" : " Guid" ,
84
+ "type" : " guid"
85
+ },
86
+ {
87
+ "name" : " Int" ,
88
+ "type" : " int"
89
+ },
90
+ {
91
+ "name" : " Long" ,
92
+ "type" : " long"
93
+ },
94
+ {
95
+ "name" : " Double" ,
96
+ "type" : " real"
97
+ },
98
+ {
99
+ "name" : " String" ,
100
+ "type" : " string"
101
+ },
102
+ {
103
+ "name" : " Timespan" ,
104
+ "type" : " timespan"
105
+ },
106
+ {
107
+ "name" : " Decimal" ,
108
+ "type" : " decimal"
109
+ },
110
+ {
111
+ "name" : " Dynamic" ,
112
+ "type" : " dynamic"
113
+ }
114
+ ],
115
+ "rows" : [
116
+ [
117
+ 100 ,
118
+ 1 ,
119
+ " 2015-12-31T23:59:59.9Z" ,
120
+ false ,
121
+ " 74be27de-1e4e-49d9-b579-fe0b331d3642" ,
122
+ 12345 ,
123
+ 1 ,
124
+ 12345.6789 ,
125
+ " string value" ,
126
+ " 00:00:10" ,
127
+ " 0.10101" ,
128
+ " {\u0022 a\u0022 :123,\u0022 b\u0022 :\u0022 hello\u0022 ,\u0022 c\u0022 :[1,2,3],\u0022 d\u0022 :{}}"
129
+ ],
130
+ [
131
+ 99 ,
132
+ 1 ,
133
+ " 2015-12-31T23:59:59.9Z" ,
134
+ false ,
135
+ " 74be27de-1e4e-49d9-b579-fe0b331d3642" ,
136
+ 12345 ,
137
+ 1 ,
138
+ 12345.6789 ,
139
+ " string value" ,
140
+ " 00:00:10" ,
141
+ " 0.10101" ,
142
+ " {\u0022 a\u0022 :123,\u0022 b\u0022 :\u0022 hello\u0022 ,\u0022 c\u0022 :[1,2,3],\u0022 d\u0022 :{}}"
143
+ ]
144
+ ]
145
+ }
146
+ ]
147
+ }
148
+ },
149
+ {
150
+ "id" : " 2" ,
151
+ "status" : 400 ,
152
+ "body" : {
153
+ "error" : {
154
+ "message" : " The request had some invalid properties" ,
155
+ "code" : " BadArgumentError" ,
156
+ "correlationId" : " c6c594e9-2703-4738-80c2-3b6ba90316e3" ,
157
+ "innererror" : {
158
+ "code" : " SyntaxError" ,
159
+ "message" : " A recognition error occurred in the query." ,
160
+ "innererror" : {
161
+ "code" : " SYN0002" ,
162
+ "message" : " Query could not be parsed at \u0027\u003C EOF\u003E\u0027 on line [2,299]" ,
163
+ "line" : 2 ,
164
+ "pos" : 299 ,
165
+ "token" : " \u003C EOF\u003E "
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ ]
172
+ }
173
+ }
174
+ ],
175
+ "Variables" : {}
176
+ }
0 commit comments