| | 1 | | using Microsoft.Azure.ApplicationInsights.Query; |
| | 2 | | using Microsoft.Azure.ApplicationInsights.Query.Models; |
| | 3 | | using Microsoft.Rest; |
| | 4 | | using System.Collections.Generic; |
| | 5 | | using System.Linq; |
| | 6 | | using System.Net.Http; |
| | 7 | | using System.Threading; |
| | 8 | | using System.Threading.Tasks; |
| | 9 | |
|
| | 10 | | namespace Microsoft.Azure.ApplicationInsights.Query |
| | 11 | | { |
| | 12 | | public partial class Events : IServiceOperations<ApplicationInsightsDataClient>, IEvents |
| | 13 | | { |
| | 14 | |
|
| | 15 | | #region Event Extensions |
| | 16 | |
|
| | 17 | | /// <summary> |
| | 18 | | /// Execute OData query for trace events |
| | 19 | | /// </summary> |
| | 20 | | /// <remarks> |
| | 21 | | /// Executes an OData query for trace events |
| | 22 | | /// </remarks> |
| | 23 | | /// <param name='timespan'> |
| | 24 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 25 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 26 | | /// any that are specified in the Odata expression. |
| | 27 | | /// </param> |
| | 28 | | /// <param name='filter'> |
| | 29 | | /// An expression used to filter the returned events |
| | 30 | | /// </param> |
| | 31 | | /// <param name='search'> |
| | 32 | | /// A free-text search expression to match for whether a particular |
| | 33 | | /// event should be returned |
| | 34 | | /// </param> |
| | 35 | | /// <param name='orderby'> |
| | 36 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 37 | | /// \"desc\" to control the order of returned events |
| | 38 | | /// </param> |
| | 39 | | /// <param name='select'> |
| | 40 | | /// Limits the properties to just those requested on each returned |
| | 41 | | /// event |
| | 42 | | /// </param> |
| | 43 | | /// <param name='skip'> |
| | 44 | | /// The number of items to skip over before returning events |
| | 45 | | /// </param> |
| | 46 | | /// <param name='top'> |
| | 47 | | /// The number of events to return |
| | 48 | | /// </param> |
| | 49 | | /// <param name='format'> |
| | 50 | | /// Format for the returned events |
| | 51 | | /// </param> |
| | 52 | | /// <param name='count'> |
| | 53 | | /// Request a count of matching items included with the returned events |
| | 54 | | /// </param> |
| | 55 | | /// <param name='apply'> |
| | 56 | | /// An expression used for aggregation over returned events |
| | 57 | | /// </param> |
| | 58 | | /// <param name='customHeaders'> |
| | 59 | | /// The headers that will be added to request. |
| | 60 | | /// </param> |
| | 61 | | /// <param name='cancellationToken'> |
| | 62 | | /// The cancellation token. |
| | 63 | | /// </param> |
| | 64 | | public async Task<HttpOperationResponse<EventsResults<EventsTraceResult>>> GetTraceEventsWithHttpMessagesAsync( |
| | 65 | | string appId, string timespan = default(string), string filter = default(string), string search = default(st |
| | 66 | | string orderby = default(string), string select = default(string), int? skip = default(int?), |
| | 67 | | int? top = default(int?), string format = default(string), bool? count = default(bool?), |
| | 68 | | string apply = default(string), Dictionary<string, List<string>> customHeaders = null, |
| | 69 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 70 | | { |
| 2 | 71 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Traces, timespan, filter, search, ord |
| 2 | 72 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 73 | | var realBody = realResult.Body; |
| 2 | 74 | | return new HttpOperationResponse<EventsResults<EventsTraceResult>> |
| 2 | 75 | | { |
| 2 | 76 | | Request = realResult.Request, |
| 2 | 77 | | Response = realResult.Response, |
| 2 | 78 | | Body = new EventsResults<EventsTraceResult> |
| 2 | 79 | | { |
| 2 | 80 | | Aimessages = realBody.Aimessages, |
| 2 | 81 | | Value = realBody.Value.OfType<EventsTraceResult>().ToList(), |
| 2 | 82 | | } |
| 2 | 83 | | }; |
| 2 | 84 | | } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Get a trace event |
| | 88 | | /// </summary> |
| | 89 | | /// <remarks> |
| | 90 | | /// Gets the data for a single trace event |
| | 91 | | /// </remarks> |
| | 92 | | /// <param name='appId'> |
| | 93 | | /// ID of the application. This is Application ID from the API Access settings |
| | 94 | | /// blade in the Azure portal. |
| | 95 | | /// </param> |
| | 96 | | /// <param name='eventId'> |
| | 97 | | /// ID of event. |
| | 98 | | /// </param> |
| | 99 | | /// <param name='timespan'> |
| | 100 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 101 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 102 | | /// any that are specified in the Odata expression. |
| | 103 | | /// </param> |
| | 104 | | /// <param name='customHeaders'> |
| | 105 | | /// The headers that will be added to request. |
| | 106 | | /// </param> |
| | 107 | | /// <param name='cancellationToken'> |
| | 108 | | /// The cancellation token. |
| | 109 | | /// </param> |
| | 110 | | public async Task<HttpOperationResponse<EventsResults<EventsTraceResult>>> GetTraceEventWithHttpMessagesAsync( |
| | 111 | | string appId, string eventId = default(string), string timespan = default(string), |
| | 112 | | Dictionary<string, List<string>> customHeaders = null, |
| | 113 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 114 | | { |
| 2 | 115 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.Traces, eventId, timespan, customHeaders, |
| 2 | 116 | | cancellationToken).ConfigureAwait(false); |
| 2 | 117 | | var realBody = realResult.Body; |
| 2 | 118 | | return new HttpOperationResponse<EventsResults<EventsTraceResult>> |
| 2 | 119 | | { |
| 2 | 120 | | Request = realResult.Request, |
| 2 | 121 | | Response = realResult.Response, |
| 2 | 122 | | Body = new EventsResults<EventsTraceResult> |
| 2 | 123 | | { |
| 2 | 124 | | Aimessages = realBody.Aimessages, |
| 2 | 125 | | Value = realBody.Value.OfType<EventsTraceResult>().ToList(), |
| 2 | 126 | | } |
| 2 | 127 | | }; |
| 2 | 128 | | } |
| | 129 | |
|
| | 130 | | /// <summary> |
| | 131 | | /// Execute OData query for custom events |
| | 132 | | /// </summary> |
| | 133 | | /// <remarks> |
| | 134 | | /// Executes an OData query for custom events |
| | 135 | | /// </remarks> |
| | 136 | | /// <param name='appId'> |
| | 137 | | /// ID of the application. This is Application ID from the API Access settings |
| | 138 | | /// blade in the Azure portal. |
| | 139 | | /// </param> |
| | 140 | | /// <param name='timespan'> |
| | 141 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 142 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 143 | | /// any that are specified in the Odata expression. |
| | 144 | | /// </param> |
| | 145 | | /// <param name='filter'> |
| | 146 | | /// An expression used to filter the returned events |
| | 147 | | /// </param> |
| | 148 | | /// <param name='search'> |
| | 149 | | /// A free-text search expression to match for whether a particular |
| | 150 | | /// event should be returned |
| | 151 | | /// </param> |
| | 152 | | /// <param name='orderby'> |
| | 153 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 154 | | /// \"desc\" to control the order of returned events |
| | 155 | | /// </param> |
| | 156 | | /// <param name='select'> |
| | 157 | | /// Limits the properties to just those requested on each returned |
| | 158 | | /// event |
| | 159 | | /// </param> |
| | 160 | | /// <param name='skip'> |
| | 161 | | /// The number of items to skip over before returning events |
| | 162 | | /// </param> |
| | 163 | | /// <param name='top'> |
| | 164 | | /// The number of events to return |
| | 165 | | /// </param> |
| | 166 | | /// <param name='format'> |
| | 167 | | /// Format for the returned events |
| | 168 | | /// </param> |
| | 169 | | /// <param name='count'> |
| | 170 | | /// Request a count of matching items included with the returned events |
| | 171 | | /// </param> |
| | 172 | | /// <param name='apply'> |
| | 173 | | /// An expression used for aggregation over returned events |
| | 174 | | /// </param> |
| | 175 | | /// <param name='customHeaders'> |
| | 176 | | /// The headers that will be added to request. |
| | 177 | | /// </param> |
| | 178 | | /// <param name='cancellationToken'> |
| | 179 | | /// The cancellation token. |
| | 180 | | /// </param> |
| | 181 | | public async Task<HttpOperationResponse<EventsResults<EventsCustomEventResult>>> |
| | 182 | | GetCustomEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = defaul |
| | 183 | | string search = default(string), string orderby = default(string), string select = default(string), |
| | 184 | | int? skip = default(int?), int? top = default(int?), string format = default(string), |
| | 185 | | bool? count = default(bool?), string apply = default(string), |
| | 186 | | Dictionary<string, List<string>> customHeaders = null, |
| | 187 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 188 | | { |
| 2 | 189 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.CustomEvents, timespan, filter, searc |
| 2 | 190 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 191 | | var realBody = realResult.Body; |
| 2 | 192 | | return new HttpOperationResponse<EventsResults<EventsCustomEventResult>> |
| 2 | 193 | | { |
| 2 | 194 | | Request = realResult.Request, |
| 2 | 195 | | Response = realResult.Response, |
| 2 | 196 | | Body = new EventsResults<EventsCustomEventResult> |
| 2 | 197 | | { |
| 2 | 198 | | Aimessages = realBody.Aimessages, |
| 2 | 199 | | Value = realBody.Value.OfType<EventsCustomEventResult>().ToList(), |
| 2 | 200 | | } |
| 2 | 201 | | }; |
| 2 | 202 | | } |
| | 203 | |
|
| | 204 | | /// <summary> |
| | 205 | | /// Get a custom event |
| | 206 | | /// </summary> |
| | 207 | | /// <remarks> |
| | 208 | | /// Gets the data for a single custom event |
| | 209 | | /// </remarks> |
| | 210 | | /// <param name='appId'> |
| | 211 | | /// ID of the application. This is Application ID from the API Access settings |
| | 212 | | /// blade in the Azure portal. |
| | 213 | | /// </param> |
| | 214 | | /// <param name='eventId'> |
| | 215 | | /// ID of event. |
| | 216 | | /// </param> |
| | 217 | | /// <param name='timespan'> |
| | 218 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 219 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 220 | | /// any that are specified in the Odata expression. |
| | 221 | | /// </param> |
| | 222 | | /// <param name='customHeaders'> |
| | 223 | | /// The headers that will be added to request. |
| | 224 | | /// </param> |
| | 225 | | /// <param name='cancellationToken'> |
| | 226 | | /// The cancellation token. |
| | 227 | | /// </param> |
| | 228 | | public async Task<HttpOperationResponse<EventsResults<EventsCustomEventResult>>> |
| | 229 | | GetCustomEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = defaul |
| | 230 | | Dictionary<string, List<string>> customHeaders = null, |
| | 231 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 232 | | { |
| 2 | 233 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.CustomEvents, eventId, timespan, customHead |
| 2 | 234 | | cancellationToken).ConfigureAwait(false); |
| 2 | 235 | | var realBody = realResult.Body; |
| 2 | 236 | | return new HttpOperationResponse<EventsResults<EventsCustomEventResult>> |
| 2 | 237 | | { |
| 2 | 238 | | Request = realResult.Request, |
| 2 | 239 | | Response = realResult.Response, |
| 2 | 240 | | Body = new EventsResults<EventsCustomEventResult> |
| 2 | 241 | | { |
| 2 | 242 | | Aimessages = realBody.Aimessages, |
| 2 | 243 | | Value = realBody.Value.OfType<EventsCustomEventResult>().ToList(), |
| 2 | 244 | | } |
| 2 | 245 | | }; |
| 2 | 246 | | } |
| | 247 | |
|
| | 248 | | /// <summary> |
| | 249 | | /// Execute OData query for page view events |
| | 250 | | /// </summary> |
| | 251 | | /// <remarks> |
| | 252 | | /// Executes an OData query for page view events |
| | 253 | | /// </remarks> |
| | 254 | | /// <param name='appId'> |
| | 255 | | /// ID of the application. This is Application ID from the API Access settings |
| | 256 | | /// blade in the Azure portal. |
| | 257 | | /// </param> |
| | 258 | | /// <param name='timespan'> |
| | 259 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 260 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 261 | | /// any that are specified in the Odata expression. |
| | 262 | | /// </param> |
| | 263 | | /// <param name='filter'> |
| | 264 | | /// An expression used to filter the returned events |
| | 265 | | /// </param> |
| | 266 | | /// <param name='search'> |
| | 267 | | /// A free-text search expression to match for whether a particular |
| | 268 | | /// event should be returned |
| | 269 | | /// </param> |
| | 270 | | /// <param name='orderby'> |
| | 271 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 272 | | /// \"desc\" to control the order of returned events |
| | 273 | | /// </param> |
| | 274 | | /// <param name='select'> |
| | 275 | | /// Limits the properties to just those requested on each returned |
| | 276 | | /// event |
| | 277 | | /// </param> |
| | 278 | | /// <param name='skip'> |
| | 279 | | /// The number of items to skip over before returning events |
| | 280 | | /// </param> |
| | 281 | | /// <param name='top'> |
| | 282 | | /// The number of events to return |
| | 283 | | /// </param> |
| | 284 | | /// <param name='format'> |
| | 285 | | /// Format for the returned events |
| | 286 | | /// </param> |
| | 287 | | /// <param name='count'> |
| | 288 | | /// Request a count of matching items included with the returned events |
| | 289 | | /// </param> |
| | 290 | | /// <param name='apply'> |
| | 291 | | /// An expression used for aggregation over returned events |
| | 292 | | /// </param> |
| | 293 | | /// <param name='customHeaders'> |
| | 294 | | /// The headers that will be added to request. |
| | 295 | | /// </param> |
| | 296 | | /// <param name='cancellationToken'> |
| | 297 | | /// The cancellation token. |
| | 298 | | /// </param> |
| | 299 | | public async Task<HttpOperationResponse<EventsResults<EventsPageViewResult>>> |
| | 300 | | GetPageViewEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = defa |
| | 301 | | string search = default(string), string orderby = default(string), string select = default(string), |
| | 302 | | int? skip = default(int?), int? top = default(int?), string format = default(string), |
| | 303 | | bool? count = default(bool?), string apply = default(string), |
| | 304 | | Dictionary<string, List<string>> customHeaders = null, |
| | 305 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 306 | | { |
| 2 | 307 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.PageViews, timespan, filter, search, |
| 2 | 308 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 309 | | var realBody = realResult.Body; |
| 2 | 310 | | return new HttpOperationResponse<EventsResults<EventsPageViewResult>> |
| 2 | 311 | | { |
| 2 | 312 | | Request = realResult.Request, |
| 2 | 313 | | Response = realResult.Response, |
| 2 | 314 | | Body = new EventsResults<EventsPageViewResult> |
| 2 | 315 | | { |
| 2 | 316 | | Aimessages = realBody.Aimessages, |
| 2 | 317 | | Value = realBody.Value.OfType<EventsPageViewResult>().ToList(), |
| 2 | 318 | | } |
| 2 | 319 | | }; |
| 2 | 320 | | } |
| | 321 | |
|
| | 322 | | /// <summary> |
| | 323 | | /// Get a page view event |
| | 324 | | /// </summary> |
| | 325 | | /// <remarks> |
| | 326 | | /// Gets the data for a single page view event |
| | 327 | | /// </remarks> |
| | 328 | | /// <param name='appId'> |
| | 329 | | /// ID of the application. This is Application ID from the API Access settings |
| | 330 | | /// blade in the Azure portal. |
| | 331 | | /// </param> |
| | 332 | | /// <param name='eventId'> |
| | 333 | | /// ID of event. |
| | 334 | | /// </param> |
| | 335 | | /// <param name='timespan'> |
| | 336 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 337 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 338 | | /// any that are specified in the Odata expression. |
| | 339 | | /// </param> |
| | 340 | | /// <param name='customHeaders'> |
| | 341 | | /// The headers that will be added to request. |
| | 342 | | /// </param> |
| | 343 | | /// <param name='cancellationToken'> |
| | 344 | | /// The cancellation token. |
| | 345 | | /// </param> |
| | 346 | | public async Task<HttpOperationResponse<EventsResults<EventsPageViewResult>>> |
| | 347 | | GetPageViewEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = defa |
| | 348 | | Dictionary<string, List<string>> customHeaders = null, |
| | 349 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 350 | | { |
| 2 | 351 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.PageViews, eventId, timespan, customHeaders |
| 2 | 352 | | cancellationToken).ConfigureAwait(false); |
| 2 | 353 | | var realBody = realResult.Body; |
| 2 | 354 | | return new HttpOperationResponse<EventsResults<EventsPageViewResult>> |
| 2 | 355 | | { |
| 2 | 356 | | Request = realResult.Request, |
| 2 | 357 | | Response = realResult.Response, |
| 2 | 358 | | Body = new EventsResults<EventsPageViewResult> |
| 2 | 359 | | { |
| 2 | 360 | | Aimessages = realBody.Aimessages, |
| 2 | 361 | | Value = realBody.Value.OfType<EventsPageViewResult>().ToList(), |
| 2 | 362 | | } |
| 2 | 363 | | }; |
| 2 | 364 | | } |
| | 365 | |
|
| | 366 | | /// <summary> |
| | 367 | | /// Execute OData query for browser timing events |
| | 368 | | /// </summary> |
| | 369 | | /// <remarks> |
| | 370 | | /// Executes an OData query for browser timing events |
| | 371 | | /// </remarks> |
| | 372 | | /// <param name='appId'> |
| | 373 | | /// ID of the application. This is Application ID from the API Access settings |
| | 374 | | /// blade in the Azure portal. |
| | 375 | | /// </param> |
| | 376 | | /// <param name='timespan'> |
| | 377 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 378 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 379 | | /// any that are specified in the Odata expression. |
| | 380 | | /// </param> |
| | 381 | | /// <param name='filter'> |
| | 382 | | /// An expression used to filter the returned events |
| | 383 | | /// </param> |
| | 384 | | /// <param name='search'> |
| | 385 | | /// A free-text search expression to match for whether a particular |
| | 386 | | /// event should be returned |
| | 387 | | /// </param> |
| | 388 | | /// <param name='orderby'> |
| | 389 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 390 | | /// \"desc\" to control the order of returned events |
| | 391 | | /// </param> |
| | 392 | | /// <param name='select'> |
| | 393 | | /// Limits the properties to just those requested on each returned |
| | 394 | | /// event |
| | 395 | | /// </param> |
| | 396 | | /// <param name='skip'> |
| | 397 | | /// The number of items to skip over before returning events |
| | 398 | | /// </param> |
| | 399 | | /// <param name='top'> |
| | 400 | | /// The number of events to return |
| | 401 | | /// </param> |
| | 402 | | /// <param name='format'> |
| | 403 | | /// Format for the returned events |
| | 404 | | /// </param> |
| | 405 | | /// <param name='count'> |
| | 406 | | /// Request a count of matching items included with the returned events |
| | 407 | | /// </param> |
| | 408 | | /// <param name='apply'> |
| | 409 | | /// An expression used for aggregation over returned events |
| | 410 | | /// </param> |
| | 411 | | /// <param name='customHeaders'> |
| | 412 | | /// The headers that will be added to request. |
| | 413 | | /// </param> |
| | 414 | | /// <param name='cancellationToken'> |
| | 415 | | /// The cancellation token. |
| | 416 | | /// </param> |
| | 417 | | public async Task<HttpOperationResponse<EventsResults<EventsBrowserTimingResult>>> |
| | 418 | | GetBrowserTimingEventsWithHttpMessagesAsync(string appId, string timespan = default(string), |
| | 419 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 420 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 421 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 422 | | Dictionary<string, List<string>> customHeaders = null, |
| | 423 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 424 | | { |
| 2 | 425 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.BrowserTimings, timespan, filter, sea |
| 2 | 426 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 427 | | var realBody = realResult.Body; |
| 2 | 428 | | return new HttpOperationResponse<EventsResults<EventsBrowserTimingResult>> |
| 2 | 429 | | { |
| 2 | 430 | | Request = realResult.Request, |
| 2 | 431 | | Response = realResult.Response, |
| 2 | 432 | | Body = new EventsResults<EventsBrowserTimingResult> |
| 2 | 433 | | { |
| 2 | 434 | | Aimessages = realBody.Aimessages, |
| 2 | 435 | | Value = realBody.Value.OfType<EventsBrowserTimingResult>().ToList(), |
| 2 | 436 | | } |
| 2 | 437 | | }; |
| 2 | 438 | | } |
| | 439 | |
|
| | 440 | | /// <summary> |
| | 441 | | /// Get a browser timing event |
| | 442 | | /// </summary> |
| | 443 | | /// <remarks> |
| | 444 | | /// Gets the data for a single browser timing event |
| | 445 | | /// </remarks> |
| | 446 | | /// <param name='appId'> |
| | 447 | | /// ID of the application. This is Application ID from the API Access settings |
| | 448 | | /// blade in the Azure portal. |
| | 449 | | /// </param> |
| | 450 | | /// <param name='eventId'> |
| | 451 | | /// ID of event. |
| | 452 | | /// </param> |
| | 453 | | /// <param name='timespan'> |
| | 454 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 455 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 456 | | /// any that are specified in the Odata expression. |
| | 457 | | /// </param> |
| | 458 | | /// <param name='customHeaders'> |
| | 459 | | /// The headers that will be added to request. |
| | 460 | | /// </param> |
| | 461 | | /// <param name='cancellationToken'> |
| | 462 | | /// The cancellation token. |
| | 463 | | /// </param> |
| | 464 | | public async Task<HttpOperationResponse<EventsResults<EventsBrowserTimingResult>>> |
| | 465 | | GetBrowserTimingEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = |
| | 466 | | Dictionary<string, List<string>> customHeaders = null, |
| | 467 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 468 | | { |
| 2 | 469 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.BrowserTimings, eventId, timespan, customHe |
| 2 | 470 | | cancellationToken).ConfigureAwait(false); |
| 2 | 471 | | var realBody = realResult.Body; |
| 2 | 472 | | return new HttpOperationResponse<EventsResults<EventsBrowserTimingResult>> |
| 2 | 473 | | { |
| 2 | 474 | | Request = realResult.Request, |
| 2 | 475 | | Response = realResult.Response, |
| 2 | 476 | | Body = new EventsResults<EventsBrowserTimingResult> |
| 2 | 477 | | { |
| 2 | 478 | | Aimessages = realBody.Aimessages, |
| 2 | 479 | | Value = realBody.Value.OfType<EventsBrowserTimingResult>().ToList(), |
| 2 | 480 | | } |
| 2 | 481 | | }; |
| 2 | 482 | | } |
| | 483 | |
|
| | 484 | | /// <summary> |
| | 485 | | /// Execute OData query for request events |
| | 486 | | /// </summary> |
| | 487 | | /// <remarks> |
| | 488 | | /// Executes an OData query for request events |
| | 489 | | /// </remarks> |
| | 490 | | /// <param name='appId'> |
| | 491 | | /// ID of the application. This is Application ID from the API Access settings |
| | 492 | | /// blade in the Azure portal. |
| | 493 | | /// </param> |
| | 494 | | /// <param name='timespan'> |
| | 495 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 496 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 497 | | /// any that are specified in the Odata expression. |
| | 498 | | /// </param> |
| | 499 | | /// <param name='filter'> |
| | 500 | | /// An expression used to filter the returned events |
| | 501 | | /// </param> |
| | 502 | | /// <param name='search'> |
| | 503 | | /// A free-text search expression to match for whether a particular |
| | 504 | | /// event should be returned |
| | 505 | | /// </param> |
| | 506 | | /// <param name='orderby'> |
| | 507 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 508 | | /// \"desc\" to control the order of returned events |
| | 509 | | /// </param> |
| | 510 | | /// <param name='select'> |
| | 511 | | /// Limits the properties to just those requested on each returned |
| | 512 | | /// event |
| | 513 | | /// </param> |
| | 514 | | /// <param name='skip'> |
| | 515 | | /// The number of items to skip over before returning events |
| | 516 | | /// </param> |
| | 517 | | /// <param name='top'> |
| | 518 | | /// The number of events to return |
| | 519 | | /// </param> |
| | 520 | | /// <param name='format'> |
| | 521 | | /// Format for the returned events |
| | 522 | | /// </param> |
| | 523 | | /// <param name='count'> |
| | 524 | | /// Request a count of matching items included with the returned events |
| | 525 | | /// </param> |
| | 526 | | /// <param name='apply'> |
| | 527 | | /// An expression used for aggregation over returned events |
| | 528 | | /// </param> |
| | 529 | | /// <param name='customHeaders'> |
| | 530 | | /// The headers that will be added to request. |
| | 531 | | /// </param> |
| | 532 | | /// <param name='cancellationToken'> |
| | 533 | | /// The cancellation token. |
| | 534 | | /// </param> |
| | 535 | | public async Task<HttpOperationResponse<EventsResults<EventsRequestResult>>> |
| | 536 | | GetRequestEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = defau |
| | 537 | | string search = default(string), string orderby = default(string), string select = default(string), |
| | 538 | | int? skip = default(int?), int? top = default(int?), string format = default(string), |
| | 539 | | bool? count = default(bool?), string apply = default(string), |
| | 540 | | Dictionary<string, List<string>> customHeaders = null, |
| | 541 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 542 | | { |
| 2 | 543 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Requests, timespan, filter, search, o |
| 2 | 544 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 545 | | var realBody = realResult.Body; |
| 2 | 546 | | return new HttpOperationResponse<EventsResults<EventsRequestResult>> |
| 2 | 547 | | { |
| 2 | 548 | | Request = realResult.Request, |
| 2 | 549 | | Response = realResult.Response, |
| 2 | 550 | | Body = new EventsResults<EventsRequestResult> |
| 2 | 551 | | { |
| 2 | 552 | | Aimessages = realBody.Aimessages, |
| 2 | 553 | | Value = realBody.Value.OfType<EventsRequestResult>().ToList(), |
| 2 | 554 | | } |
| 2 | 555 | | }; |
| 2 | 556 | | } |
| | 557 | |
|
| | 558 | | /// <summary> |
| | 559 | | /// Get a request event |
| | 560 | | /// </summary> |
| | 561 | | /// <remarks> |
| | 562 | | /// Gets the data for a single request event |
| | 563 | | /// </remarks> |
| | 564 | | /// <param name='appId'> |
| | 565 | | /// ID of the application. This is Application ID from the API Access settings |
| | 566 | | /// blade in the Azure portal. |
| | 567 | | /// </param> |
| | 568 | | /// <param name='eventId'> |
| | 569 | | /// ID of event. |
| | 570 | | /// </param> |
| | 571 | | /// <param name='timespan'> |
| | 572 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 573 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 574 | | /// any that are specified in the Odata expression. |
| | 575 | | /// </param> |
| | 576 | | /// <param name='customHeaders'> |
| | 577 | | /// The headers that will be added to request. |
| | 578 | | /// </param> |
| | 579 | | /// <param name='cancellationToken'> |
| | 580 | | /// The cancellation token. |
| | 581 | | /// </param> |
| | 582 | | public async Task<HttpOperationResponse<EventsResults<EventsRequestResult>>> |
| | 583 | | GetRequestEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = defau |
| | 584 | | Dictionary<string, List<string>> customHeaders = null, |
| | 585 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 586 | | { |
| 2 | 587 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.Requests, eventId, timespan, customHeaders, |
| 2 | 588 | | cancellationToken).ConfigureAwait(false); |
| 2 | 589 | | var realBody = realResult.Body; |
| 2 | 590 | | return new HttpOperationResponse<EventsResults<EventsRequestResult>> |
| 2 | 591 | | { |
| 2 | 592 | | Request = realResult.Request, |
| 2 | 593 | | Response = realResult.Response, |
| 2 | 594 | | Body = new EventsResults<EventsRequestResult> |
| 2 | 595 | | { |
| 2 | 596 | | Aimessages = realBody.Aimessages, |
| 2 | 597 | | Value = realBody.Value.OfType<EventsRequestResult>().ToList(), |
| 2 | 598 | | } |
| 2 | 599 | | }; |
| 2 | 600 | | } |
| | 601 | |
|
| | 602 | | /// <summary> |
| | 603 | | /// Execute OData query for dependency events |
| | 604 | | /// </summary> |
| | 605 | | /// <remarks> |
| | 606 | | /// Executes an OData query for dependency events |
| | 607 | | /// </remarks> |
| | 608 | | /// <param name='appId'> |
| | 609 | | /// ID of the application. This is Application ID from the API Access settings |
| | 610 | | /// blade in the Azure portal. |
| | 611 | | /// </param> |
| | 612 | | /// <param name='timespan'> |
| | 613 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 614 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 615 | | /// any that are specified in the Odata expression. |
| | 616 | | /// </param> |
| | 617 | | /// <param name='filter'> |
| | 618 | | /// An expression used to filter the returned events |
| | 619 | | /// </param> |
| | 620 | | /// <param name='search'> |
| | 621 | | /// A free-text search expression to match for whether a particular |
| | 622 | | /// event should be returned |
| | 623 | | /// </param> |
| | 624 | | /// <param name='orderby'> |
| | 625 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 626 | | /// \"desc\" to control the order of returned events |
| | 627 | | /// </param> |
| | 628 | | /// <param name='select'> |
| | 629 | | /// Limits the properties to just those requested on each returned |
| | 630 | | /// event |
| | 631 | | /// </param> |
| | 632 | | /// <param name='skip'> |
| | 633 | | /// The number of items to skip over before returning events |
| | 634 | | /// </param> |
| | 635 | | /// <param name='top'> |
| | 636 | | /// The number of events to return |
| | 637 | | /// </param> |
| | 638 | | /// <param name='format'> |
| | 639 | | /// Format for the returned events |
| | 640 | | /// </param> |
| | 641 | | /// <param name='count'> |
| | 642 | | /// Request a count of matching items included with the returned events |
| | 643 | | /// </param> |
| | 644 | | /// <param name='apply'> |
| | 645 | | /// An expression used for aggregation over returned events |
| | 646 | | /// </param> |
| | 647 | | /// <param name='customHeaders'> |
| | 648 | | /// The headers that will be added to request. |
| | 649 | | /// </param> |
| | 650 | | /// <param name='cancellationToken'> |
| | 651 | | /// The cancellation token. |
| | 652 | | /// </param> |
| | 653 | | public async Task<HttpOperationResponse<EventsResults<EventsDependencyResult>>> |
| | 654 | | GetDependencyEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = de |
| | 655 | | string search = default(string), string orderby = default(string), string select = default(string), |
| | 656 | | int? skip = default(int?), int? top = default(int?), string format = default(string), |
| | 657 | | bool? count = default(bool?), string apply = default(string), |
| | 658 | | Dictionary<string, List<string>> customHeaders = null, |
| | 659 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 660 | | { |
| 2 | 661 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Dependencies, timespan, filter, searc |
| 2 | 662 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 663 | | var realBody = realResult.Body; |
| 2 | 664 | | return new HttpOperationResponse<EventsResults<EventsDependencyResult>> |
| 2 | 665 | | { |
| 2 | 666 | | Request = realResult.Request, |
| 2 | 667 | | Response = realResult.Response, |
| 2 | 668 | | Body = new EventsResults<EventsDependencyResult> |
| 2 | 669 | | { |
| 2 | 670 | | Aimessages = realBody.Aimessages, |
| 2 | 671 | | Value = realBody.Value.OfType<EventsDependencyResult>().ToList(), |
| 2 | 672 | | } |
| 2 | 673 | | }; |
| 2 | 674 | | } |
| | 675 | |
|
| | 676 | | /// <summary> |
| | 677 | | /// Get a dependency event |
| | 678 | | /// </summary> |
| | 679 | | /// <remarks> |
| | 680 | | /// Gets the data for a single dependency event |
| | 681 | | /// </remarks> |
| | 682 | | /// <param name='appId'> |
| | 683 | | /// ID of the application. This is Application ID from the API Access settings |
| | 684 | | /// blade in the Azure portal. |
| | 685 | | /// </param> |
| | 686 | | /// <param name='eventId'> |
| | 687 | | /// ID of event. |
| | 688 | | /// </param> |
| | 689 | | /// <param name='timespan'> |
| | 690 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 691 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 692 | | /// any that are specified in the Odata expression. |
| | 693 | | /// </param> |
| | 694 | | /// <param name='customHeaders'> |
| | 695 | | /// The headers that will be added to request. |
| | 696 | | /// </param> |
| | 697 | | /// <param name='cancellationToken'> |
| | 698 | | /// The cancellation token. |
| | 699 | | /// </param> |
| | 700 | | public async Task<HttpOperationResponse<EventsResults<EventsDependencyResult>>> |
| | 701 | | GetDependencyEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = de |
| | 702 | | Dictionary<string, List<string>> customHeaders = null, |
| | 703 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 704 | | { |
| 2 | 705 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.Dependencies, eventId, timespan, customHead |
| 2 | 706 | | cancellationToken).ConfigureAwait(false); |
| 2 | 707 | | var realBody = realResult.Body; |
| 2 | 708 | | return new HttpOperationResponse<EventsResults<EventsDependencyResult>> |
| 2 | 709 | | { |
| 2 | 710 | | Request = realResult.Request, |
| 2 | 711 | | Response = realResult.Response, |
| 2 | 712 | | Body = new EventsResults<EventsDependencyResult> |
| 2 | 713 | | { |
| 2 | 714 | | Aimessages = realBody.Aimessages, |
| 2 | 715 | | Value = realBody.Value.OfType<EventsDependencyResult>().ToList(), |
| 2 | 716 | | } |
| 2 | 717 | | }; |
| 2 | 718 | | } |
| | 719 | |
|
| | 720 | | /// <summary> |
| | 721 | | /// Execute OData query for exception events |
| | 722 | | /// </summary> |
| | 723 | | /// <remarks> |
| | 724 | | /// Executes an OData query for exception events |
| | 725 | | /// </remarks> |
| | 726 | | /// <param name='appId'> |
| | 727 | | /// ID of the application. This is Application ID from the API Access settings |
| | 728 | | /// blade in the Azure portal. |
| | 729 | | /// </param> |
| | 730 | | /// <param name='timespan'> |
| | 731 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 732 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 733 | | /// any that are specified in the Odata expression. |
| | 734 | | /// </param> |
| | 735 | | /// <param name='filter'> |
| | 736 | | /// An expression used to filter the returned events |
| | 737 | | /// </param> |
| | 738 | | /// <param name='search'> |
| | 739 | | /// A free-text search expression to match for whether a particular |
| | 740 | | /// event should be returned |
| | 741 | | /// </param> |
| | 742 | | /// <param name='orderby'> |
| | 743 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 744 | | /// \"desc\" to control the order of returned events |
| | 745 | | /// </param> |
| | 746 | | /// <param name='select'> |
| | 747 | | /// Limits the properties to just those requested on each returned |
| | 748 | | /// event |
| | 749 | | /// </param> |
| | 750 | | /// <param name='skip'> |
| | 751 | | /// The number of items to skip over before returning events |
| | 752 | | /// </param> |
| | 753 | | /// <param name='top'> |
| | 754 | | /// The number of events to return |
| | 755 | | /// </param> |
| | 756 | | /// <param name='format'> |
| | 757 | | /// Format for the returned events |
| | 758 | | /// </param> |
| | 759 | | /// <param name='count'> |
| | 760 | | /// Request a count of matching items included with the returned events |
| | 761 | | /// </param> |
| | 762 | | /// <param name='apply'> |
| | 763 | | /// An expression used for aggregation over returned events |
| | 764 | | /// </param> |
| | 765 | | /// <param name='customHeaders'> |
| | 766 | | /// The headers that will be added to request. |
| | 767 | | /// </param> |
| | 768 | | /// <param name='cancellationToken'> |
| | 769 | | /// The cancellation token. |
| | 770 | | /// </param> |
| | 771 | | public async Task<HttpOperationResponse<EventsResults<EventsExceptionResult>>> |
| | 772 | | GetExceptionEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = def |
| | 773 | | string search = default(string), string orderby = default(string), string select = default(string), |
| | 774 | | int? skip = default(int?), int? top = default(int?), string format = default(string), |
| | 775 | | bool? count = default(bool?), string apply = default(string), |
| | 776 | | Dictionary<string, List<string>> customHeaders = null, |
| | 777 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 778 | | { |
| 2 | 779 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Exceptions, timespan, filter, search, |
| 2 | 780 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 781 | | var realBody = realResult.Body; |
| 2 | 782 | | return new HttpOperationResponse<EventsResults<EventsExceptionResult>> |
| 2 | 783 | | { |
| 2 | 784 | | Request = realResult.Request, |
| 2 | 785 | | Response = realResult.Response, |
| 2 | 786 | | Body = new EventsResults<EventsExceptionResult> |
| 2 | 787 | | { |
| 2 | 788 | | Aimessages = realBody.Aimessages, |
| 2 | 789 | | Value = realBody.Value.OfType<EventsExceptionResult>().ToList(), |
| 2 | 790 | | } |
| 2 | 791 | | }; |
| 2 | 792 | | } |
| | 793 | |
|
| | 794 | | /// <summary> |
| | 795 | | /// Get an exception event |
| | 796 | | /// </summary> |
| | 797 | | /// <remarks> |
| | 798 | | /// Gets the data for a single exception event |
| | 799 | | /// </remarks> |
| | 800 | | /// <param name='appId'> |
| | 801 | | /// ID of the application. This is Application ID from the API Access settings |
| | 802 | | /// blade in the Azure portal. |
| | 803 | | /// </param> |
| | 804 | | /// <param name='eventId'> |
| | 805 | | /// ID of event. |
| | 806 | | /// </param> |
| | 807 | | /// <param name='timespan'> |
| | 808 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 809 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 810 | | /// any that are specified in the Odata expression. |
| | 811 | | /// </param> |
| | 812 | | /// <param name='customHeaders'> |
| | 813 | | /// The headers that will be added to request. |
| | 814 | | /// </param> |
| | 815 | | /// <param name='cancellationToken'> |
| | 816 | | /// The cancellation token. |
| | 817 | | /// </param> |
| | 818 | | public async Task<HttpOperationResponse<EventsResults<EventsExceptionResult>>> |
| | 819 | | GetExceptionEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = def |
| | 820 | | Dictionary<string, List<string>> customHeaders = null, |
| | 821 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 822 | | { |
| 2 | 823 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.Exceptions, eventId, timespan, customHeader |
| 2 | 824 | | cancellationToken).ConfigureAwait(false); |
| 2 | 825 | | var realBody = realResult.Body; |
| 2 | 826 | | return new HttpOperationResponse<EventsResults<EventsExceptionResult>> |
| 2 | 827 | | { |
| 2 | 828 | | Request = realResult.Request, |
| 2 | 829 | | Response = realResult.Response, |
| 2 | 830 | | Body = new EventsResults<EventsExceptionResult> |
| 2 | 831 | | { |
| 2 | 832 | | Aimessages = realBody.Aimessages, |
| 2 | 833 | | Value = realBody.Value.OfType<EventsExceptionResult>().ToList(), |
| 2 | 834 | | } |
| 2 | 835 | | }; |
| 2 | 836 | | } |
| | 837 | |
|
| | 838 | | /// <summary> |
| | 839 | | /// Execute OData query for availability result events |
| | 840 | | /// </summary> |
| | 841 | | /// <remarks> |
| | 842 | | /// Executes an OData query for availability result events |
| | 843 | | /// </remarks> |
| | 844 | | /// <param name='timespan'> |
| | 845 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 846 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 847 | | /// any that are specified in the Odata expression. |
| | 848 | | /// </param> |
| | 849 | | /// <param name='appId'> |
| | 850 | | /// ID of the application. This is Application ID from the API Access settings |
| | 851 | | /// blade in the Azure portal. |
| | 852 | | /// </param> |
| | 853 | | /// <param name='filter'> |
| | 854 | | /// An expression used to filter the returned events |
| | 855 | | /// </param> |
| | 856 | | /// <param name='search'> |
| | 857 | | /// A free-text search expression to match for whether a particular |
| | 858 | | /// event should be returned |
| | 859 | | /// </param> |
| | 860 | | /// <param name='orderby'> |
| | 861 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 862 | | /// \"desc\" to control the order of returned events |
| | 863 | | /// </param> |
| | 864 | | /// <param name='select'> |
| | 865 | | /// Limits the properties to just those requested on each returned |
| | 866 | | /// event |
| | 867 | | /// </param> |
| | 868 | | /// <param name='skip'> |
| | 869 | | /// The number of items to skip over before returning events |
| | 870 | | /// </param> |
| | 871 | | /// <param name='top'> |
| | 872 | | /// The number of events to return |
| | 873 | | /// </param> |
| | 874 | | /// <param name='format'> |
| | 875 | | /// Format for the returned events |
| | 876 | | /// </param> |
| | 877 | | /// <param name='count'> |
| | 878 | | /// Request a count of matching items included with the returned events |
| | 879 | | /// </param> |
| | 880 | | /// <param name='apply'> |
| | 881 | | /// An expression used for aggregation over returned events |
| | 882 | | /// </param> |
| | 883 | | /// <param name='customHeaders'> |
| | 884 | | /// The headers that will be added to request. |
| | 885 | | /// </param> |
| | 886 | | /// <param name='cancellationToken'> |
| | 887 | | /// The cancellation token. |
| | 888 | | /// </param> |
| | 889 | | public async Task<HttpOperationResponse<EventsResults<EventsAvailabilityResultResult>>> |
| | 890 | | GetAvailabilityResultEventsWithHttpMessagesAsync(string appId, string timespan = default(string), |
| | 891 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 892 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 893 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 894 | | Dictionary<string, List<string>> customHeaders = null, |
| | 895 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 896 | | { |
| 2 | 897 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.AvailabilityResults, timespan, filter |
| 2 | 898 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 899 | | var realBody = realResult.Body; |
| 2 | 900 | | return new HttpOperationResponse<EventsResults<EventsAvailabilityResultResult>> |
| 2 | 901 | | { |
| 2 | 902 | | Request = realResult.Request, |
| 2 | 903 | | Response = realResult.Response, |
| 2 | 904 | | Body = new EventsResults<EventsAvailabilityResultResult> |
| 2 | 905 | | { |
| 2 | 906 | | Aimessages = realBody.Aimessages, |
| 2 | 907 | | Value = realBody.Value.OfType<EventsAvailabilityResultResult>().ToList(), |
| 2 | 908 | | } |
| 2 | 909 | | }; |
| 2 | 910 | | } |
| | 911 | |
|
| | 912 | | /// <summary> |
| | 913 | | /// Get an availability result event |
| | 914 | | /// </summary> |
| | 915 | | /// <remarks> |
| | 916 | | /// Gets the data for a single availability result event |
| | 917 | | /// </remarks> |
| | 918 | | /// <param name='appId'> |
| | 919 | | /// ID of the application. This is Application ID from the API Access settings |
| | 920 | | /// blade in the Azure portal. |
| | 921 | | /// </param> |
| | 922 | | /// <param name='eventId'> |
| | 923 | | /// ID of event. |
| | 924 | | /// </param> |
| | 925 | | /// <param name='timespan'> |
| | 926 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 927 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 928 | | /// any that are specified in the Odata expression. |
| | 929 | | /// </param> |
| | 930 | | /// <param name='customHeaders'> |
| | 931 | | /// The headers that will be added to request. |
| | 932 | | /// </param> |
| | 933 | | /// <param name='cancellationToken'> |
| | 934 | | /// The cancellation token. |
| | 935 | | /// </param> |
| | 936 | | public async Task<HttpOperationResponse<EventsResults<EventsAvailabilityResultResult>>> |
| | 937 | | GetAvailabilityResultEventWithHttpMessagesAsync(string appId, string eventId = default(string), string times |
| | 938 | | Dictionary<string, List<string>> customHeaders = null, |
| | 939 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 940 | | { |
| 2 | 941 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.AvailabilityResults, eventId, timespan, cus |
| 2 | 942 | | cancellationToken).ConfigureAwait(false); |
| 2 | 943 | | var realBody = realResult.Body; |
| 2 | 944 | | return new HttpOperationResponse<EventsResults<EventsAvailabilityResultResult>> |
| 2 | 945 | | { |
| 2 | 946 | | Request = realResult.Request, |
| 2 | 947 | | Response = realResult.Response, |
| 2 | 948 | | Body = new EventsResults<EventsAvailabilityResultResult> |
| 2 | 949 | | { |
| 2 | 950 | | Aimessages = realBody.Aimessages, |
| 2 | 951 | | Value = realBody.Value.OfType<EventsAvailabilityResultResult>().ToList(), |
| 2 | 952 | | } |
| 2 | 953 | | }; |
| 2 | 954 | | } |
| | 955 | |
|
| | 956 | | /// <summary> |
| | 957 | | /// Execute OData query for performance counter events |
| | 958 | | /// </summary> |
| | 959 | | /// <remarks> |
| | 960 | | /// Executes an OData query for performance counter events |
| | 961 | | /// </remarks> |
| | 962 | | /// <param name='appId'> |
| | 963 | | /// ID of the application. This is Application ID from the API Access settings |
| | 964 | | /// blade in the Azure portal. |
| | 965 | | /// </param> |
| | 966 | | /// <param name='timespan'> |
| | 967 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 968 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 969 | | /// any that are specified in the Odata expression. |
| | 970 | | /// </param> |
| | 971 | | /// <param name='filter'> |
| | 972 | | /// An expression used to filter the returned events |
| | 973 | | /// </param> |
| | 974 | | /// <param name='search'> |
| | 975 | | /// A free-text search expression to match for whether a particular |
| | 976 | | /// event should be returned |
| | 977 | | /// </param> |
| | 978 | | /// <param name='orderby'> |
| | 979 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 980 | | /// \"desc\" to control the order of returned events |
| | 981 | | /// </param> |
| | 982 | | /// <param name='select'> |
| | 983 | | /// Limits the properties to just those requested on each returned |
| | 984 | | /// event |
| | 985 | | /// </param> |
| | 986 | | /// <param name='skip'> |
| | 987 | | /// The number of items to skip over before returning events |
| | 988 | | /// </param> |
| | 989 | | /// <param name='top'> |
| | 990 | | /// The number of events to return |
| | 991 | | /// </param> |
| | 992 | | /// <param name='format'> |
| | 993 | | /// Format for the returned events |
| | 994 | | /// </param> |
| | 995 | | /// <param name='count'> |
| | 996 | | /// Request a count of matching items included with the returned events |
| | 997 | | /// </param> |
| | 998 | | /// <param name='apply'> |
| | 999 | | /// An expression used for aggregation over returned events |
| | 1000 | | /// </param> |
| | 1001 | | /// <param name='customHeaders'> |
| | 1002 | | /// The headers that will be added to request. |
| | 1003 | | /// </param> |
| | 1004 | | /// <param name='cancellationToken'> |
| | 1005 | | /// The cancellation token. |
| | 1006 | | /// </param> |
| | 1007 | | public async Task<HttpOperationResponse<EventsResults<EventsPerformanceCounterResult>>> |
| | 1008 | | GetPerformanceCounterEventsWithHttpMessagesAsync(string appId, string timespan = default(string), |
| | 1009 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1010 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1011 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 1012 | | Dictionary<string, List<string>> customHeaders = null, |
| | 1013 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1014 | | { |
| 2 | 1015 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.PerformanceCounters, timespan, filter |
| 2 | 1016 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 1017 | | var realBody = realResult.Body; |
| 2 | 1018 | | return new HttpOperationResponse<EventsResults<EventsPerformanceCounterResult>> |
| 2 | 1019 | | { |
| 2 | 1020 | | Request = realResult.Request, |
| 2 | 1021 | | Response = realResult.Response, |
| 2 | 1022 | | Body = new EventsResults<EventsPerformanceCounterResult> |
| 2 | 1023 | | { |
| 2 | 1024 | | Aimessages = realBody.Aimessages, |
| 2 | 1025 | | Value = realBody.Value.OfType<EventsPerformanceCounterResult>().ToList(), |
| 2 | 1026 | | } |
| 2 | 1027 | | }; |
| 2 | 1028 | | } |
| | 1029 | |
|
| | 1030 | | /// <summary> |
| | 1031 | | /// Get a performance counter event |
| | 1032 | | /// </summary> |
| | 1033 | | /// <remarks> |
| | 1034 | | /// Gets the data for a single performance counter event |
| | 1035 | | /// </remarks> |
| | 1036 | | /// <param name='appId'> |
| | 1037 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1038 | | /// blade in the Azure portal. |
| | 1039 | | /// </param> |
| | 1040 | | /// <param name='eventId'> |
| | 1041 | | /// ID of event. |
| | 1042 | | /// </param> |
| | 1043 | | /// <param name='timespan'> |
| | 1044 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1045 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1046 | | /// any that are specified in the Odata expression. |
| | 1047 | | /// </param> |
| | 1048 | | /// <param name='customHeaders'> |
| | 1049 | | /// The headers that will be added to request. |
| | 1050 | | /// </param> |
| | 1051 | | /// <param name='cancellationToken'> |
| | 1052 | | /// The cancellation token. |
| | 1053 | | /// </param> |
| | 1054 | | public async Task<HttpOperationResponse<EventsResults<EventsPerformanceCounterResult>>> |
| | 1055 | | GetPerformanceCounterEventWithHttpMessagesAsync(string appId, string eventId = default(string), string times |
| | 1056 | | Dictionary<string, List<string>> customHeaders = null, |
| | 1057 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1058 | | { |
| 2 | 1059 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.PerformanceCounters, eventId, timespan, cus |
| 2 | 1060 | | cancellationToken).ConfigureAwait(false); |
| 2 | 1061 | | var realBody = realResult.Body; |
| 2 | 1062 | | return new HttpOperationResponse<EventsResults<EventsPerformanceCounterResult>> |
| 2 | 1063 | | { |
| 2 | 1064 | | Request = realResult.Request, |
| 2 | 1065 | | Response = realResult.Response, |
| 2 | 1066 | | Body = new EventsResults<EventsPerformanceCounterResult> |
| 2 | 1067 | | { |
| 2 | 1068 | | Aimessages = realBody.Aimessages, |
| 2 | 1069 | | Value = realBody.Value.OfType<EventsPerformanceCounterResult>().ToList(), |
| 2 | 1070 | | } |
| 2 | 1071 | | }; |
| 2 | 1072 | | } |
| | 1073 | |
|
| | 1074 | | /// <summary> |
| | 1075 | | /// Execute OData query for custom metric events |
| | 1076 | | /// </summary> |
| | 1077 | | /// <remarks> |
| | 1078 | | /// Executes an OData query for custom metric events |
| | 1079 | | /// </remarks> |
| | 1080 | | /// <param name='appId'> |
| | 1081 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1082 | | /// blade in the Azure portal. |
| | 1083 | | /// </param> |
| | 1084 | | /// <param name='timespan'> |
| | 1085 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1086 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1087 | | /// any that are specified in the Odata expression. |
| | 1088 | | /// </param> |
| | 1089 | | /// <param name='filter'> |
| | 1090 | | /// An expression used to filter the returned events |
| | 1091 | | /// </param> |
| | 1092 | | /// <param name='search'> |
| | 1093 | | /// A free-text search expression to match for whether a particular |
| | 1094 | | /// event should be returned |
| | 1095 | | /// </param> |
| | 1096 | | /// <param name='orderby'> |
| | 1097 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1098 | | /// \"desc\" to control the order of returned events |
| | 1099 | | /// </param> |
| | 1100 | | /// <param name='select'> |
| | 1101 | | /// Limits the properties to just those requested on each returned |
| | 1102 | | /// event |
| | 1103 | | /// </param> |
| | 1104 | | /// <param name='skip'> |
| | 1105 | | /// The number of items to skip over before returning events |
| | 1106 | | /// </param> |
| | 1107 | | /// <param name='top'> |
| | 1108 | | /// The number of events to return |
| | 1109 | | /// </param> |
| | 1110 | | /// <param name='format'> |
| | 1111 | | /// Format for the returned events |
| | 1112 | | /// </param> |
| | 1113 | | /// <param name='count'> |
| | 1114 | | /// Request a count of matching items included with the returned events |
| | 1115 | | /// </param> |
| | 1116 | | /// <param name='apply'> |
| | 1117 | | /// An expression used for aggregation over returned events |
| | 1118 | | /// </param> |
| | 1119 | | /// <param name='customHeaders'> |
| | 1120 | | /// The headers that will be added to request. |
| | 1121 | | /// </param> |
| | 1122 | | /// <param name='cancellationToken'> |
| | 1123 | | /// The cancellation token. |
| | 1124 | | /// </param> |
| | 1125 | | public async Task<HttpOperationResponse<EventsResults<EventsCustomMetricResult>>> |
| | 1126 | | GetCustomMetricEventsWithHttpMessagesAsync(string appId, string timespan = default(string), |
| | 1127 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1128 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1129 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 1130 | | Dictionary<string, List<string>> customHeaders = null, |
| | 1131 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1132 | | { |
| 2 | 1133 | | var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.CustomMetrics, timespan, filter, sear |
| 2 | 1134 | | skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false); |
| 2 | 1135 | | var realBody = realResult.Body; |
| 2 | 1136 | | return new HttpOperationResponse<EventsResults<EventsCustomMetricResult>> |
| 2 | 1137 | | { |
| 2 | 1138 | | Request = realResult.Request, |
| 2 | 1139 | | Response = realResult.Response, |
| 2 | 1140 | | Body = new EventsResults<EventsCustomMetricResult> |
| 2 | 1141 | | { |
| 2 | 1142 | | Aimessages = realBody.Aimessages, |
| 2 | 1143 | | Value = realBody.Value.OfType<EventsCustomMetricResult>().ToList(), |
| 2 | 1144 | | } |
| 2 | 1145 | | }; |
| 2 | 1146 | | } |
| | 1147 | |
|
| | 1148 | | /// <summary> |
| | 1149 | | /// Get a custom metricevent |
| | 1150 | | /// </summary> |
| | 1151 | | /// <remarks> |
| | 1152 | | /// Gets the data for a single custom metric event |
| | 1153 | | /// </remarks> |
| | 1154 | | /// <param name='appId'> |
| | 1155 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1156 | | /// blade in the Azure portal. |
| | 1157 | | /// </param> |
| | 1158 | | /// <param name='eventId'> |
| | 1159 | | /// ID of event. |
| | 1160 | | /// </param> |
| | 1161 | | /// <param name='timespan'> |
| | 1162 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1163 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1164 | | /// any that are specified in the Odata expression. |
| | 1165 | | /// </param> |
| | 1166 | | /// <param name='customHeaders'> |
| | 1167 | | /// The headers that will be added to request. |
| | 1168 | | /// </param> |
| | 1169 | | /// <param name='cancellationToken'> |
| | 1170 | | /// The cancellation token. |
| | 1171 | | /// </param> |
| | 1172 | | public async Task<HttpOperationResponse<EventsResults<EventsCustomMetricResult>>> |
| | 1173 | | GetCustomMetricEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = |
| | 1174 | | Dictionary<string, List<string>> customHeaders = null, |
| | 1175 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1176 | | { |
| 2 | 1177 | | var realResult = await GetWithHttpMessagesAsync(appId, EventType.CustomMetrics, eventId, timespan, customHea |
| 2 | 1178 | | cancellationToken).ConfigureAwait(false); |
| 2 | 1179 | | var realBody = realResult.Body; |
| 2 | 1180 | | return new HttpOperationResponse<EventsResults<EventsCustomMetricResult>> |
| 2 | 1181 | | { |
| 2 | 1182 | | Request = realResult.Request, |
| 2 | 1183 | | Response = realResult.Response, |
| 2 | 1184 | | Body = new EventsResults<EventsCustomMetricResult> |
| 2 | 1185 | | { |
| 2 | 1186 | | Aimessages = realBody.Aimessages, |
| 2 | 1187 | | Value = realBody.Value.OfType<EventsCustomMetricResult>().ToList(), |
| 2 | 1188 | | } |
| 2 | 1189 | | }; |
| 2 | 1190 | | } |
| | 1191 | |
|
| | 1192 | | #endregion |
| | 1193 | |
|
| | 1194 | | } |
| | 1195 | | } |