| | 1 | | using Microsoft.Azure.ApplicationInsights.Query.Models; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Threading; |
| | 4 | | using System.Threading.Tasks; |
| | 5 | |
|
| | 6 | | namespace Microsoft.Azure.ApplicationInsights.Query |
| | 7 | | { |
| | 8 | | public partial class EventsExtensions |
| | 9 | | { |
| | 10 | |
|
| | 11 | | #region Event Extensions |
| | 12 | |
|
| | 13 | | /// <summary> |
| | 14 | | /// Execute OData query for trace events |
| | 15 | | /// </summary> |
| | 16 | | /// <remarks> |
| | 17 | | /// Executes an OData query for trace events |
| | 18 | | /// </remarks> |
| | 19 | | /// <param name='operations'> |
| | 20 | | /// The operations group for this extension method. |
| | 21 | | /// </param> |
| | 22 | | /// <param name='appId'> |
| | 23 | | /// ID of the application. This is Application ID from the API Access settings |
| | 24 | | /// blade in the Azure portal. |
| | 25 | | /// </param> |
| | 26 | | /// <param name='timespan'> |
| | 27 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 28 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 29 | | /// any that are specified in the Odata expression. |
| | 30 | | /// </param> |
| | 31 | | /// <param name='filter'> |
| | 32 | | /// An expression used to filter the returned events |
| | 33 | | /// </param> |
| | 34 | | /// <param name='search'> |
| | 35 | | /// A free-text search expression to match for whether a particular |
| | 36 | | /// event should be returned |
| | 37 | | /// </param> |
| | 38 | | /// <param name='orderby'> |
| | 39 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 40 | | /// \"desc\" to control the order of returned events |
| | 41 | | /// </param> |
| | 42 | | /// <param name='select'> |
| | 43 | | /// Limits the properties to just those requested on each returned |
| | 44 | | /// event |
| | 45 | | /// </param> |
| | 46 | | /// <param name='skip'> |
| | 47 | | /// The number of items to skip over before returning events |
| | 48 | | /// </param> |
| | 49 | | /// <param name='top'> |
| | 50 | | /// The number of events to return |
| | 51 | | /// </param> |
| | 52 | | /// <param name='format'> |
| | 53 | | /// Format for the returned events |
| | 54 | | /// </param> |
| | 55 | | /// <param name='count'> |
| | 56 | | /// Request a count of matching items included with the returned events |
| | 57 | | /// </param> |
| | 58 | | /// <param name='apply'> |
| | 59 | | /// An expression used for aggregation over returned events |
| | 60 | | /// </param> |
| | 61 | | public static EventsResults<EventsTraceResult> GetTraceEvents(this IEvents operations, string appId, |
| | 62 | | string timespan = default(string), string filter = default(string), string search = default(string), |
| | 63 | | string orderby = default(string), string select = default(string), int? skip = default(int?), |
| | 64 | | int? top = default(int?), string format = default(string), bool? count = default(bool?), |
| | 65 | | string apply = default(string)) |
| | 66 | | { |
| 1 | 67 | | return operations |
| 1 | 68 | | .GetTraceEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply) |
| 1 | 69 | | .GetAwaiter().GetResult(); |
| | 70 | | } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// Execute OData query for trace events |
| | 74 | | /// </summary> |
| | 75 | | /// <remarks> |
| | 76 | | /// Executes an OData query for trace events |
| | 77 | | /// </remarks> |
| | 78 | | /// <param name='operations'> |
| | 79 | | /// The operations group for this extension method. |
| | 80 | | /// </param> |
| | 81 | | /// <param name='appId'> |
| | 82 | | /// ID of the application. This is Application ID from the API Access settings |
| | 83 | | /// blade in the Azure portal. |
| | 84 | | /// </param> |
| | 85 | | /// <param name='timespan'> |
| | 86 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 87 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 88 | | /// any that are specified in the Odata expression. |
| | 89 | | /// </param> |
| | 90 | | /// <param name='filter'> |
| | 91 | | /// An expression used to filter the returned events |
| | 92 | | /// </param> |
| | 93 | | /// <param name='search'> |
| | 94 | | /// A free-text search expression to match for whether a particular |
| | 95 | | /// event should be returned |
| | 96 | | /// </param> |
| | 97 | | /// <param name='orderby'> |
| | 98 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 99 | | /// \"desc\" to control the order of returned events |
| | 100 | | /// </param> |
| | 101 | | /// <param name='select'> |
| | 102 | | /// Limits the properties to just those requested on each returned |
| | 103 | | /// event |
| | 104 | | /// </param> |
| | 105 | | /// <param name='skip'> |
| | 106 | | /// The number of items to skip over before returning events |
| | 107 | | /// </param> |
| | 108 | | /// <param name='top'> |
| | 109 | | /// The number of events to return |
| | 110 | | /// </param> |
| | 111 | | /// <param name='format'> |
| | 112 | | /// Format for the returned events |
| | 113 | | /// </param> |
| | 114 | | /// <param name='count'> |
| | 115 | | /// Request a count of matching items included with the returned events |
| | 116 | | /// </param> |
| | 117 | | /// <param name='apply'> |
| | 118 | | /// An expression used for aggregation over returned events |
| | 119 | | /// </param> |
| | 120 | | /// <param name='cancellationToken'> |
| | 121 | | /// The cancellation token. |
| | 122 | | /// </param> |
| | 123 | | public static async Task<EventsResults<EventsTraceResult>> GetTraceEventsAsync( |
| | 124 | | this IEvents operations, string appId, string timespan = default(string), |
| | 125 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 126 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 127 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 128 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 129 | | { |
| 2 | 130 | | using (var result = await operations.GetTraceEventsWithHttpMessagesAsync(appId, timespan, filter, search, or |
| 2 | 131 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 132 | | { |
| 2 | 133 | | return result.Body; |
| | 134 | | } |
| 2 | 135 | | } |
| | 136 | |
|
| | 137 | | /// <summary> |
| | 138 | | /// Get a trace event |
| | 139 | | /// </summary> |
| | 140 | | /// <remarks> |
| | 141 | | /// Gets the data for a single trace event |
| | 142 | | /// </remarks> |
| | 143 | | /// <param name='operations'> |
| | 144 | | /// The operations group for this extension method. |
| | 145 | | /// </param> |
| | 146 | | /// <param name='appId'> |
| | 147 | | /// ID of the application. This is Application ID from the API Access settings |
| | 148 | | /// blade in the Azure portal. |
| | 149 | | /// </param> |
| | 150 | | /// <param name='eventId'> |
| | 151 | | /// ID of event. |
| | 152 | | /// </param> |
| | 153 | | /// <param name='timespan'> |
| | 154 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 155 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 156 | | /// any that are specified in the Odata expression. |
| | 157 | | /// </param> |
| | 158 | | public static EventsResults<EventsTraceResult> GetTraceEvent(this IEvents operations, string appId, |
| | 159 | | string eventId, string timespan = default(string)) |
| | 160 | | { |
| 1 | 161 | | return operations.GetTraceEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 162 | | } |
| | 163 | |
|
| | 164 | | /// <summary> |
| | 165 | | /// Get a trace event |
| | 166 | | /// </summary> |
| | 167 | | /// <remarks> |
| | 168 | | /// Gets the data for a single trace event |
| | 169 | | /// </remarks> |
| | 170 | | /// <param name='operations'> |
| | 171 | | /// The operations group for this extension method. |
| | 172 | | /// </param> |
| | 173 | | /// <param name='appId'> |
| | 174 | | /// ID of the application. This is Application ID from the API Access settings |
| | 175 | | /// blade in the Azure portal. |
| | 176 | | /// </param> |
| | 177 | | /// <param name='eventId'> |
| | 178 | | /// ID of event. |
| | 179 | | /// </param> |
| | 180 | | /// <param name='timespan'> |
| | 181 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 182 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 183 | | /// any that are specified in the Odata expression. |
| | 184 | | /// </param> |
| | 185 | | /// <param name='cancellationToken'> |
| | 186 | | /// The cancellation token. |
| | 187 | | /// </param> |
| | 188 | | public static async Task<EventsResults<EventsTraceResult>> GetTraceEventAsync( |
| | 189 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 190 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 191 | | { |
| 2 | 192 | | using (var result = await operations.GetTraceEventWithHttpMessagesAsync(appId, eventId, timespan, null, canc |
| | 193 | | { |
| 2 | 194 | | return result.Body; |
| | 195 | | } |
| 2 | 196 | | } |
| | 197 | |
|
| | 198 | | /// <summary> |
| | 199 | | /// Execute OData query for custom events |
| | 200 | | /// </summary> |
| | 201 | | /// <remarks> |
| | 202 | | /// Executes an OData query for custom events |
| | 203 | | /// </remarks> |
| | 204 | | /// <param name='operations'> |
| | 205 | | /// The operations group for this extension method. |
| | 206 | | /// </param> |
| | 207 | | /// <param name='appId'> |
| | 208 | | /// ID of the application. This is Application ID from the API Access settings |
| | 209 | | /// blade in the Azure portal. |
| | 210 | | /// </param> |
| | 211 | | /// <param name='timespan'> |
| | 212 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 213 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 214 | | /// any that are specified in the Odata expression. |
| | 215 | | /// </param> |
| | 216 | | /// <param name='filter'> |
| | 217 | | /// An expression used to filter the returned events |
| | 218 | | /// </param> |
| | 219 | | /// <param name='search'> |
| | 220 | | /// A free-text search expression to match for whether a particular |
| | 221 | | /// event should be returned |
| | 222 | | /// </param> |
| | 223 | | /// <param name='orderby'> |
| | 224 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 225 | | /// \"desc\" to control the order of returned events |
| | 226 | | /// </param> |
| | 227 | | /// <param name='select'> |
| | 228 | | /// Limits the properties to just those requested on each returned |
| | 229 | | /// event |
| | 230 | | /// </param> |
| | 231 | | /// <param name='skip'> |
| | 232 | | /// The number of items to skip over before returning events |
| | 233 | | /// </param> |
| | 234 | | /// <param name='top'> |
| | 235 | | /// The number of events to return |
| | 236 | | /// </param> |
| | 237 | | /// <param name='format'> |
| | 238 | | /// Format for the returned events |
| | 239 | | /// </param> |
| | 240 | | /// <param name='count'> |
| | 241 | | /// Request a count of matching items included with the returned events |
| | 242 | | /// </param> |
| | 243 | | /// <param name='apply'> |
| | 244 | | /// An expression used for aggregation over returned events |
| | 245 | | /// </param> |
| | 246 | | public static EventsResults<EventsCustomEventResult> GetCustomEvents( |
| | 247 | | this IEvents operations, string appId, string timespan = default(string), |
| | 248 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 249 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 250 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 251 | | { |
| 1 | 252 | | return operations |
| 1 | 253 | | .GetCustomEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply) |
| 1 | 254 | | .GetAwaiter().GetResult(); |
| | 255 | | } |
| | 256 | |
|
| | 257 | | /// <summary> |
| | 258 | | /// Execute OData query for custom events |
| | 259 | | /// </summary> |
| | 260 | | /// <remarks> |
| | 261 | | /// Executes an OData query for custom events |
| | 262 | | /// </remarks> |
| | 263 | | /// <param name='operations'> |
| | 264 | | /// The operations group for this extension method. |
| | 265 | | /// </param> |
| | 266 | | /// <param name='appId'> |
| | 267 | | /// ID of the application. This is Application ID from the API Access settings |
| | 268 | | /// blade in the Azure portal. |
| | 269 | | /// </param> |
| | 270 | | /// <param name='timespan'> |
| | 271 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 272 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 273 | | /// any that are specified in the Odata expression. |
| | 274 | | /// </param> |
| | 275 | | /// <param name='filter'> |
| | 276 | | /// An expression used to filter the returned events |
| | 277 | | /// </param> |
| | 278 | | /// <param name='search'> |
| | 279 | | /// A free-text search expression to match for whether a particular |
| | 280 | | /// event should be returned |
| | 281 | | /// </param> |
| | 282 | | /// <param name='orderby'> |
| | 283 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 284 | | /// \"desc\" to control the order of returned events |
| | 285 | | /// </param> |
| | 286 | | /// <param name='select'> |
| | 287 | | /// Limits the properties to just those requested on each returned |
| | 288 | | /// event |
| | 289 | | /// </param> |
| | 290 | | /// <param name='skip'> |
| | 291 | | /// The number of items to skip over before returning events |
| | 292 | | /// </param> |
| | 293 | | /// <param name='top'> |
| | 294 | | /// The number of events to return |
| | 295 | | /// </param> |
| | 296 | | /// <param name='format'> |
| | 297 | | /// Format for the returned events |
| | 298 | | /// </param> |
| | 299 | | /// <param name='count'> |
| | 300 | | /// Request a count of matching items included with the returned events |
| | 301 | | /// </param> |
| | 302 | | /// <param name='apply'> |
| | 303 | | /// An expression used for aggregation over returned events |
| | 304 | | /// </param> |
| | 305 | | /// <param name='cancellationToken'> |
| | 306 | | /// The cancellation token. |
| | 307 | | /// </param> |
| | 308 | | public static async Task<EventsResults<EventsCustomEventResult>> GetCustomEventsAsync( |
| | 309 | | this IEvents operations, string appId, string timespan = default(string), |
| | 310 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 311 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 312 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 313 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 314 | | { |
| 2 | 315 | | using (var result = await operations.GetCustomEventsWithHttpMessagesAsync(appId, timespan, filter, search, o |
| 2 | 316 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 317 | | { |
| 2 | 318 | | return result.Body; |
| | 319 | | } |
| 2 | 320 | | } |
| | 321 | |
|
| | 322 | | /// <summary> |
| | 323 | | /// Get a custom event |
| | 324 | | /// </summary> |
| | 325 | | /// <remarks> |
| | 326 | | /// Gets the data for a single custom event |
| | 327 | | /// </remarks> |
| | 328 | | /// <param name='operations'> |
| | 329 | | /// The operations group for this extension method. |
| | 330 | | /// </param> |
| | 331 | | /// <param name='appId'> |
| | 332 | | /// ID of the application. This is Application ID from the API Access settings |
| | 333 | | /// blade in the Azure portal. |
| | 334 | | /// </param> |
| | 335 | | /// <param name='eventId'> |
| | 336 | | /// ID of event. |
| | 337 | | /// </param> |
| | 338 | | /// <param name='timespan'> |
| | 339 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 340 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 341 | | /// any that are specified in the Odata expression. |
| | 342 | | /// </param> |
| | 343 | | public static EventsResults<EventsCustomEventResult> GetCustomEvent( |
| | 344 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 345 | | { |
| 1 | 346 | | return operations.GetCustomEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 347 | | } |
| | 348 | |
|
| | 349 | | /// <summary> |
| | 350 | | /// Get a custom event |
| | 351 | | /// </summary> |
| | 352 | | /// <remarks> |
| | 353 | | /// Gets the data for a single custom event |
| | 354 | | /// </remarks> |
| | 355 | | /// <param name='operations'> |
| | 356 | | /// The operations group for this extension method. |
| | 357 | | /// </param> |
| | 358 | | /// <param name='appId'> |
| | 359 | | /// ID of the application. This is Application ID from the API Access settings |
| | 360 | | /// blade in the Azure portal. |
| | 361 | | /// </param> |
| | 362 | | /// <param name='eventId'> |
| | 363 | | /// ID of event. |
| | 364 | | /// </param> |
| | 365 | | /// <param name='timespan'> |
| | 366 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 367 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 368 | | /// any that are specified in the Odata expression. |
| | 369 | | /// </param> |
| | 370 | | /// <param name='cancellationToken'> |
| | 371 | | /// The cancellation token. |
| | 372 | | /// </param> |
| | 373 | | public static async Task<EventsResults<EventsCustomEventResult>> GetCustomEventAsync( |
| | 374 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 375 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 376 | | { |
| 2 | 377 | | using (var result = await operations.GetCustomEventWithHttpMessagesAsync(appId, eventId, timespan, null, can |
| | 378 | | { |
| 2 | 379 | | return result.Body; |
| | 380 | | } |
| 2 | 381 | | } |
| | 382 | |
|
| | 383 | | /// <summary> |
| | 384 | | /// Execute OData query for page view events |
| | 385 | | /// </summary> |
| | 386 | | /// <remarks> |
| | 387 | | /// Executes an OData query for page view events |
| | 388 | | /// </remarks> |
| | 389 | | /// <param name='operations'> |
| | 390 | | /// The operations group for this extension method. |
| | 391 | | /// </param> |
| | 392 | | /// <param name='appId'> |
| | 393 | | /// ID of the application. This is Application ID from the API Access settings |
| | 394 | | /// blade in the Azure portal. |
| | 395 | | /// </param> |
| | 396 | | /// <param name='timespan'> |
| | 397 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 398 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 399 | | /// any that are specified in the Odata expression. |
| | 400 | | /// </param> |
| | 401 | | /// <param name='filter'> |
| | 402 | | /// An expression used to filter the returned events |
| | 403 | | /// </param> |
| | 404 | | /// <param name='search'> |
| | 405 | | /// A free-text search expression to match for whether a particular |
| | 406 | | /// event should be returned |
| | 407 | | /// </param> |
| | 408 | | /// <param name='orderby'> |
| | 409 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 410 | | /// \"desc\" to control the order of returned events |
| | 411 | | /// </param> |
| | 412 | | /// <param name='select'> |
| | 413 | | /// Limits the properties to just those requested on each returned |
| | 414 | | /// event |
| | 415 | | /// </param> |
| | 416 | | /// <param name='skip'> |
| | 417 | | /// The number of items to skip over before returning events |
| | 418 | | /// </param> |
| | 419 | | /// <param name='top'> |
| | 420 | | /// The number of events to return |
| | 421 | | /// </param> |
| | 422 | | /// <param name='format'> |
| | 423 | | /// Format for the returned events |
| | 424 | | /// </param> |
| | 425 | | /// <param name='count'> |
| | 426 | | /// Request a count of matching items included with the returned events |
| | 427 | | /// </param> |
| | 428 | | /// <param name='apply'> |
| | 429 | | /// An expression used for aggregation over returned events |
| | 430 | | /// </param> |
| | 431 | | public static EventsResults<EventsPageViewResult> GetPageViewEvents( |
| | 432 | | this IEvents operations, string appId, string timespan = default(string), |
| | 433 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 434 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 435 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 436 | | { |
| 1 | 437 | | return operations |
| 1 | 438 | | .GetPageViewEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, appl |
| 1 | 439 | | .GetAwaiter().GetResult(); |
| | 440 | | } |
| | 441 | |
|
| | 442 | | /// <summary> |
| | 443 | | /// Execute OData query for page view events |
| | 444 | | /// </summary> |
| | 445 | | /// <remarks> |
| | 446 | | /// Executes an OData query for page view events |
| | 447 | | /// </remarks> |
| | 448 | | /// <param name='operations'> |
| | 449 | | /// The operations group for this extension method. |
| | 450 | | /// </param> |
| | 451 | | /// <param name='appId'> |
| | 452 | | /// ID of the application. This is Application ID from the API Access settings |
| | 453 | | /// blade in the Azure portal. |
| | 454 | | /// </param> |
| | 455 | | /// <param name='timespan'> |
| | 456 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 457 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 458 | | /// any that are specified in the Odata expression. |
| | 459 | | /// </param> |
| | 460 | | /// <param name='filter'> |
| | 461 | | /// An expression used to filter the returned events |
| | 462 | | /// </param> |
| | 463 | | /// <param name='search'> |
| | 464 | | /// A free-text search expression to match for whether a particular |
| | 465 | | /// event should be returned |
| | 466 | | /// </param> |
| | 467 | | /// <param name='orderby'> |
| | 468 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 469 | | /// \"desc\" to control the order of returned events |
| | 470 | | /// </param> |
| | 471 | | /// <param name='select'> |
| | 472 | | /// Limits the properties to just those requested on each returned |
| | 473 | | /// event |
| | 474 | | /// </param> |
| | 475 | | /// <param name='skip'> |
| | 476 | | /// The number of items to skip over before returning events |
| | 477 | | /// </param> |
| | 478 | | /// <param name='top'> |
| | 479 | | /// The number of events to return |
| | 480 | | /// </param> |
| | 481 | | /// <param name='format'> |
| | 482 | | /// Format for the returned events |
| | 483 | | /// </param> |
| | 484 | | /// <param name='count'> |
| | 485 | | /// Request a count of matching items included with the returned events |
| | 486 | | /// </param> |
| | 487 | | /// <param name='apply'> |
| | 488 | | /// An expression used for aggregation over returned events |
| | 489 | | /// </param> |
| | 490 | | /// <param name='cancellationToken'> |
| | 491 | | /// The cancellation token. |
| | 492 | | /// </param> |
| | 493 | | public static async Task<EventsResults<EventsPageViewResult>> GetPageViewEventsAsync( |
| | 494 | | this IEvents operations, string appId, string timespan = default(string), |
| | 495 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 496 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 497 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 498 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 499 | | { |
| 2 | 500 | | using (var result = await operations.GetPageViewEventsWithHttpMessagesAsync(appId, timespan, filter, search, |
| 2 | 501 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 502 | | { |
| 2 | 503 | | return result.Body; |
| | 504 | | } |
| 2 | 505 | | } |
| | 506 | |
|
| | 507 | | /// <summary> |
| | 508 | | /// Get a page view event |
| | 509 | | /// </summary> |
| | 510 | | /// <remarks> |
| | 511 | | /// Gets the data for a single page view event |
| | 512 | | /// </remarks> |
| | 513 | | /// <param name='operations'> |
| | 514 | | /// The operations group for this extension method. |
| | 515 | | /// </param> |
| | 516 | | /// <param name='appId'> |
| | 517 | | /// ID of the application. This is Application ID from the API Access settings |
| | 518 | | /// blade in the Azure portal. |
| | 519 | | /// </param> |
| | 520 | | /// <param name='eventId'> |
| | 521 | | /// ID of event. |
| | 522 | | /// </param> |
| | 523 | | /// <param name='timespan'> |
| | 524 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 525 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 526 | | /// any that are specified in the Odata expression. |
| | 527 | | /// </param> |
| | 528 | | public static EventsResults<EventsPageViewResult> GetPageViewEvent( |
| | 529 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 530 | | { |
| 1 | 531 | | return operations.GetPageViewEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 532 | | } |
| | 533 | |
|
| | 534 | | /// <summary> |
| | 535 | | /// Get a page view event |
| | 536 | | /// </summary> |
| | 537 | | /// <remarks> |
| | 538 | | /// Gets the data for a single page view event |
| | 539 | | /// </remarks> |
| | 540 | | /// <param name='operations'> |
| | 541 | | /// The operations group for this extension method. |
| | 542 | | /// </param> |
| | 543 | | /// <param name='appId'> |
| | 544 | | /// ID of the application. This is Application ID from the API Access settings |
| | 545 | | /// blade in the Azure portal. |
| | 546 | | /// </param> |
| | 547 | | /// <param name='eventId'> |
| | 548 | | /// ID of event. |
| | 549 | | /// </param> |
| | 550 | | /// <param name='timespan'> |
| | 551 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 552 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 553 | | /// any that are specified in the Odata expression. |
| | 554 | | /// </param> |
| | 555 | | /// <param name='cancellationToken'> |
| | 556 | | /// The cancellation token. |
| | 557 | | /// </param> |
| | 558 | | public static async Task<EventsResults<EventsPageViewResult>> GetPageViewEventAsync( |
| | 559 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 560 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 561 | | { |
| 2 | 562 | | using (var result = await operations.GetPageViewEventWithHttpMessagesAsync(appId, eventId, timespan, null, c |
| | 563 | | { |
| 2 | 564 | | return result.Body; |
| | 565 | | } |
| 2 | 566 | | } |
| | 567 | |
|
| | 568 | | /// <summary> |
| | 569 | | /// Execute OData query for browser timing events |
| | 570 | | /// </summary> |
| | 571 | | /// <remarks> |
| | 572 | | /// Executes an OData query for browser timing events |
| | 573 | | /// </remarks> |
| | 574 | | /// <param name='operations'> |
| | 575 | | /// The operations group for this extension method. |
| | 576 | | /// </param> |
| | 577 | | /// <param name='appId'> |
| | 578 | | /// ID of the application. This is Application ID from the API Access settings |
| | 579 | | /// blade in the Azure portal. |
| | 580 | | /// </param> |
| | 581 | | /// <param name='timespan'> |
| | 582 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 583 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 584 | | /// any that are specified in the Odata expression. |
| | 585 | | /// </param> |
| | 586 | | /// <param name='filter'> |
| | 587 | | /// An expression used to filter the returned events |
| | 588 | | /// </param> |
| | 589 | | /// <param name='search'> |
| | 590 | | /// A free-text search expression to match for whether a particular |
| | 591 | | /// event should be returned |
| | 592 | | /// </param> |
| | 593 | | /// <param name='orderby'> |
| | 594 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 595 | | /// \"desc\" to control the order of returned events |
| | 596 | | /// </param> |
| | 597 | | /// <param name='select'> |
| | 598 | | /// Limits the properties to just those requested on each returned |
| | 599 | | /// event |
| | 600 | | /// </param> |
| | 601 | | /// <param name='skip'> |
| | 602 | | /// The number of items to skip over before returning events |
| | 603 | | /// </param> |
| | 604 | | /// <param name='top'> |
| | 605 | | /// The number of events to return |
| | 606 | | /// </param> |
| | 607 | | /// <param name='format'> |
| | 608 | | /// Format for the returned events |
| | 609 | | /// </param> |
| | 610 | | /// <param name='count'> |
| | 611 | | /// Request a count of matching items included with the returned events |
| | 612 | | /// </param> |
| | 613 | | /// <param name='apply'> |
| | 614 | | /// An expression used for aggregation over returned events |
| | 615 | | /// </param> |
| | 616 | | public static EventsResults<EventsBrowserTimingResult> GetBrowserTimingEvents( |
| | 617 | | this IEvents operations, string appId, string timespan = default(string), |
| | 618 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 619 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 620 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 621 | | { |
| 1 | 622 | | return operations |
| 1 | 623 | | .GetBrowserTimingEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, |
| 1 | 624 | | .GetAwaiter().GetResult(); |
| | 625 | | } |
| | 626 | |
|
| | 627 | | /// <summary> |
| | 628 | | /// Execute OData query for browser timing events |
| | 629 | | /// </summary> |
| | 630 | | /// <remarks> |
| | 631 | | /// Executes an OData query for browser timing events |
| | 632 | | /// </remarks> |
| | 633 | | /// <param name='operations'> |
| | 634 | | /// The operations group for this extension method. |
| | 635 | | /// </param> |
| | 636 | | /// <param name='appId'> |
| | 637 | | /// ID of the application. This is Application ID from the API Access settings |
| | 638 | | /// blade in the Azure portal. |
| | 639 | | /// </param> |
| | 640 | | /// <param name='timespan'> |
| | 641 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 642 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 643 | | /// any that are specified in the Odata expression. |
| | 644 | | /// </param> |
| | 645 | | /// <param name='filter'> |
| | 646 | | /// An expression used to filter the returned events |
| | 647 | | /// </param> |
| | 648 | | /// <param name='search'> |
| | 649 | | /// A free-text search expression to match for whether a particular |
| | 650 | | /// event should be returned |
| | 651 | | /// </param> |
| | 652 | | /// <param name='orderby'> |
| | 653 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 654 | | /// \"desc\" to control the order of returned events |
| | 655 | | /// </param> |
| | 656 | | /// <param name='select'> |
| | 657 | | /// Limits the properties to just those requested on each returned |
| | 658 | | /// event |
| | 659 | | /// </param> |
| | 660 | | /// <param name='skip'> |
| | 661 | | /// The number of items to skip over before returning events |
| | 662 | | /// </param> |
| | 663 | | /// <param name='top'> |
| | 664 | | /// The number of events to return |
| | 665 | | /// </param> |
| | 666 | | /// <param name='format'> |
| | 667 | | /// Format for the returned events |
| | 668 | | /// </param> |
| | 669 | | /// <param name='count'> |
| | 670 | | /// Request a count of matching items included with the returned events |
| | 671 | | /// </param> |
| | 672 | | /// <param name='apply'> |
| | 673 | | /// An expression used for aggregation over returned events |
| | 674 | | /// </param> |
| | 675 | | /// <param name='cancellationToken'> |
| | 676 | | /// The cancellation token. |
| | 677 | | /// </param> |
| | 678 | | public static async Task<EventsResults<EventsBrowserTimingResult>> GetBrowserTimingEventsAsync( |
| | 679 | | this IEvents operations, string appId, string timespan = default(string), |
| | 680 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 681 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 682 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 683 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 684 | | { |
| 2 | 685 | | using (var result = await operations.GetBrowserTimingEventsWithHttpMessagesAsync(appId, timespan, filter, se |
| 2 | 686 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 687 | | { |
| 2 | 688 | | return result.Body; |
| | 689 | | } |
| 2 | 690 | | } |
| | 691 | |
|
| | 692 | | /// <summary> |
| | 693 | | /// Get a browser timing event |
| | 694 | | /// </summary> |
| | 695 | | /// <remarks> |
| | 696 | | /// Gets the data for a single browser timing event |
| | 697 | | /// </remarks> |
| | 698 | | /// <param name='operations'> |
| | 699 | | /// The operations group for this extension method. |
| | 700 | | /// </param> |
| | 701 | | /// <param name='appId'> |
| | 702 | | /// ID of the application. This is Application ID from the API Access settings |
| | 703 | | /// blade in the Azure portal. |
| | 704 | | /// </param> |
| | 705 | | /// <param name='eventId'> |
| | 706 | | /// ID of event. |
| | 707 | | /// </param> |
| | 708 | | /// <param name='timespan'> |
| | 709 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 710 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 711 | | /// any that are specified in the Odata expression. |
| | 712 | | /// </param> |
| | 713 | | public static EventsResults<EventsBrowserTimingResult> GetBrowserTimingEvent( |
| | 714 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 715 | | { |
| 1 | 716 | | return operations.GetBrowserTimingEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 717 | | } |
| | 718 | |
|
| | 719 | | /// <summary> |
| | 720 | | /// Get a browser timing event |
| | 721 | | /// </summary> |
| | 722 | | /// <remarks> |
| | 723 | | /// Gets the data for a single browser timing event |
| | 724 | | /// </remarks> |
| | 725 | | /// <param name='operations'> |
| | 726 | | /// The operations group for this extension method. |
| | 727 | | /// </param> |
| | 728 | | /// <param name='appId'> |
| | 729 | | /// ID of the application. This is Application ID from the API Access settings |
| | 730 | | /// blade in the Azure portal. |
| | 731 | | /// </param> |
| | 732 | | /// <param name='eventId'> |
| | 733 | | /// ID of event. |
| | 734 | | /// </param> |
| | 735 | | /// <param name='timespan'> |
| | 736 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 737 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 738 | | /// any that are specified in the Odata expression. |
| | 739 | | /// </param> |
| | 740 | | /// <param name='cancellationToken'> |
| | 741 | | /// The cancellation token. |
| | 742 | | /// </param> |
| | 743 | | public static async Task<EventsResults<EventsBrowserTimingResult>> GetBrowserTimingEventAsync( |
| | 744 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 745 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 746 | | { |
| 2 | 747 | | using (var result = await operations.GetBrowserTimingEventWithHttpMessagesAsync(appId, eventId, timespan, nu |
| | 748 | | { |
| 2 | 749 | | return result.Body; |
| | 750 | | } |
| 2 | 751 | | } |
| | 752 | |
|
| | 753 | | /// <summary> |
| | 754 | | /// Execute OData query for request events |
| | 755 | | /// </summary> |
| | 756 | | /// <remarks> |
| | 757 | | /// Executes an OData query for request events |
| | 758 | | /// </remarks> |
| | 759 | | /// <param name='operations'> |
| | 760 | | /// The operations group for this extension method. |
| | 761 | | /// </param> |
| | 762 | | /// <param name='appId'> |
| | 763 | | /// ID of the application. This is Application ID from the API Access settings |
| | 764 | | /// blade in the Azure portal. |
| | 765 | | /// </param> |
| | 766 | | /// <param name='timespan'> |
| | 767 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 768 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 769 | | /// any that are specified in the Odata expression. |
| | 770 | | /// </param> |
| | 771 | | /// <param name='filter'> |
| | 772 | | /// An expression used to filter the returned events |
| | 773 | | /// </param> |
| | 774 | | /// <param name='search'> |
| | 775 | | /// A free-text search expression to match for whether a particular |
| | 776 | | /// event should be returned |
| | 777 | | /// </param> |
| | 778 | | /// <param name='orderby'> |
| | 779 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 780 | | /// \"desc\" to control the order of returned events |
| | 781 | | /// </param> |
| | 782 | | /// <param name='select'> |
| | 783 | | /// Limits the properties to just those requested on each returned |
| | 784 | | /// event |
| | 785 | | /// </param> |
| | 786 | | /// <param name='skip'> |
| | 787 | | /// The number of items to skip over before returning events |
| | 788 | | /// </param> |
| | 789 | | /// <param name='top'> |
| | 790 | | /// The number of events to return |
| | 791 | | /// </param> |
| | 792 | | /// <param name='format'> |
| | 793 | | /// Format for the returned events |
| | 794 | | /// </param> |
| | 795 | | /// <param name='count'> |
| | 796 | | /// Request a count of matching items included with the returned events |
| | 797 | | /// </param> |
| | 798 | | /// <param name='apply'> |
| | 799 | | /// An expression used for aggregation over returned events |
| | 800 | | /// </param> |
| | 801 | | public static EventsResults<EventsRequestResult> GetRequestEvents( |
| | 802 | | this IEvents operations, string appId, string timespan = default(string), |
| | 803 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 804 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 805 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 806 | | { |
| 1 | 807 | | return operations |
| 1 | 808 | | .GetRequestEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply |
| 1 | 809 | | .GetAwaiter().GetResult(); |
| | 810 | | } |
| | 811 | |
|
| | 812 | | /// <summary> |
| | 813 | | /// Execute OData query for request events |
| | 814 | | /// </summary> |
| | 815 | | /// <remarks> |
| | 816 | | /// Executes an OData query for request events |
| | 817 | | /// </remarks> |
| | 818 | | /// <param name='operations'> |
| | 819 | | /// The operations group for this extension method. |
| | 820 | | /// </param> |
| | 821 | | /// <param name='appId'> |
| | 822 | | /// ID of the application. This is Application ID from the API Access settings |
| | 823 | | /// blade in the Azure portal. |
| | 824 | | /// </param> |
| | 825 | | /// <param name='timespan'> |
| | 826 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 827 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 828 | | /// any that are specified in the Odata expression. |
| | 829 | | /// </param> |
| | 830 | | /// <param name='filter'> |
| | 831 | | /// An expression used to filter the returned events |
| | 832 | | /// </param> |
| | 833 | | /// <param name='search'> |
| | 834 | | /// A free-text search expression to match for whether a particular |
| | 835 | | /// event should be returned |
| | 836 | | /// </param> |
| | 837 | | /// <param name='orderby'> |
| | 838 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 839 | | /// \"desc\" to control the order of returned events |
| | 840 | | /// </param> |
| | 841 | | /// <param name='select'> |
| | 842 | | /// Limits the properties to just those requested on each returned |
| | 843 | | /// event |
| | 844 | | /// </param> |
| | 845 | | /// <param name='skip'> |
| | 846 | | /// The number of items to skip over before returning events |
| | 847 | | /// </param> |
| | 848 | | /// <param name='top'> |
| | 849 | | /// The number of events to return |
| | 850 | | /// </param> |
| | 851 | | /// <param name='format'> |
| | 852 | | /// Format for the returned events |
| | 853 | | /// </param> |
| | 854 | | /// <param name='count'> |
| | 855 | | /// Request a count of matching items included with the returned events |
| | 856 | | /// </param> |
| | 857 | | /// <param name='apply'> |
| | 858 | | /// An expression used for aggregation over returned events |
| | 859 | | /// </param> |
| | 860 | | /// <param name='cancellationToken'> |
| | 861 | | /// The cancellation token. |
| | 862 | | /// </param> |
| | 863 | | public static async Task<EventsResults<EventsRequestResult>> GetRequestEventsAsync( |
| | 864 | | this IEvents operations, string appId, string timespan = default(string), |
| | 865 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 866 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 867 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 868 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 869 | | { |
| 2 | 870 | | using (var result = await operations.GetRequestEventsWithHttpMessagesAsync(appId, timespan, filter, search, |
| 2 | 871 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 872 | | { |
| 2 | 873 | | return result.Body; |
| | 874 | | } |
| 2 | 875 | | } |
| | 876 | |
|
| | 877 | | /// <summary> |
| | 878 | | /// Get a request event |
| | 879 | | /// </summary> |
| | 880 | | /// <remarks> |
| | 881 | | /// Gets the data for a single request event |
| | 882 | | /// </remarks> |
| | 883 | | /// <param name='operations'> |
| | 884 | | /// The operations group for this extension method. |
| | 885 | | /// </param> |
| | 886 | | /// <param name='appId'> |
| | 887 | | /// ID of the application. This is Application ID from the API Access settings |
| | 888 | | /// blade in the Azure portal. |
| | 889 | | /// </param> |
| | 890 | | /// <param name='eventId'> |
| | 891 | | /// ID of event. |
| | 892 | | /// </param> |
| | 893 | | /// <param name='timespan'> |
| | 894 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 895 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 896 | | /// any that are specified in the Odata expression. |
| | 897 | | /// </param> |
| | 898 | | public static EventsResults<EventsRequestResult> GetRequestEvent(this IEvents operations, string appId, |
| | 899 | | string eventId, string timespan = default(string)) |
| | 900 | | { |
| 1 | 901 | | return operations.GetRequestEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 902 | | } |
| | 903 | |
|
| | 904 | | /// <summary> |
| | 905 | | /// Get a request event |
| | 906 | | /// </summary> |
| | 907 | | /// <remarks> |
| | 908 | | /// Gets the data for a single request event |
| | 909 | | /// </remarks> |
| | 910 | | /// <param name='operations'> |
| | 911 | | /// The operations group for this extension method. |
| | 912 | | /// </param> |
| | 913 | | /// <param name='appId'> |
| | 914 | | /// ID of the application. This is Application ID from the API Access settings |
| | 915 | | /// blade in the Azure portal. |
| | 916 | | /// </param> |
| | 917 | | /// <param name='eventId'> |
| | 918 | | /// ID of event. |
| | 919 | | /// </param> |
| | 920 | | /// <param name='timespan'> |
| | 921 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 922 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 923 | | /// any that are specified in the Odata expression. |
| | 924 | | /// </param> |
| | 925 | | /// <param name='cancellationToken'> |
| | 926 | | /// The cancellation token. |
| | 927 | | /// </param> |
| | 928 | | public static async Task<EventsResults<EventsRequestResult>> GetRequestEventAsync( |
| | 929 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 930 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 931 | | { |
| 2 | 932 | | using (var result = await operations.GetRequestEventWithHttpMessagesAsync(appId, eventId, timespan, null, ca |
| | 933 | | { |
| 2 | 934 | | return result.Body; |
| | 935 | | } |
| 2 | 936 | | } |
| | 937 | |
|
| | 938 | | /// <summary> |
| | 939 | | /// Execute OData query for dependency events |
| | 940 | | /// </summary> |
| | 941 | | /// <remarks> |
| | 942 | | /// Executes an OData query for dependency events |
| | 943 | | /// </remarks> |
| | 944 | | /// <param name='operations'> |
| | 945 | | /// The operations group for this extension method. |
| | 946 | | /// </param> |
| | 947 | | /// <param name='appId'> |
| | 948 | | /// ID of the application. This is Application ID from the API Access settings |
| | 949 | | /// blade in the Azure portal. |
| | 950 | | /// </param> |
| | 951 | | /// <param name='timespan'> |
| | 952 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 953 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 954 | | /// any that are specified in the Odata expression. |
| | 955 | | /// </param> |
| | 956 | | /// <param name='filter'> |
| | 957 | | /// An expression used to filter the returned events |
| | 958 | | /// </param> |
| | 959 | | /// <param name='search'> |
| | 960 | | /// A free-text search expression to match for whether a particular |
| | 961 | | /// event should be returned |
| | 962 | | /// </param> |
| | 963 | | /// <param name='orderby'> |
| | 964 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 965 | | /// \"desc\" to control the order of returned events |
| | 966 | | /// </param> |
| | 967 | | /// <param name='select'> |
| | 968 | | /// Limits the properties to just those requested on each returned |
| | 969 | | /// event |
| | 970 | | /// </param> |
| | 971 | | /// <param name='skip'> |
| | 972 | | /// The number of items to skip over before returning events |
| | 973 | | /// </param> |
| | 974 | | /// <param name='top'> |
| | 975 | | /// The number of events to return |
| | 976 | | /// </param> |
| | 977 | | /// <param name='format'> |
| | 978 | | /// Format for the returned events |
| | 979 | | /// </param> |
| | 980 | | /// <param name='count'> |
| | 981 | | /// Request a count of matching items included with the returned events |
| | 982 | | /// </param> |
| | 983 | | /// <param name='apply'> |
| | 984 | | /// An expression used for aggregation over returned events |
| | 985 | | /// </param> |
| | 986 | | public static EventsResults<EventsDependencyResult> GetDependencyEvents( |
| | 987 | | this IEvents operations, string appId, string timespan = default(string), |
| | 988 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 989 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 990 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 991 | | { |
| 1 | 992 | | return operations |
| 1 | 993 | | .GetDependencyEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, ap |
| 1 | 994 | | .GetAwaiter().GetResult(); |
| | 995 | | } |
| | 996 | |
|
| | 997 | | /// <summary> |
| | 998 | | /// Execute OData query for dependency events |
| | 999 | | /// </summary> |
| | 1000 | | /// <remarks> |
| | 1001 | | /// Executes an OData query for dependency events |
| | 1002 | | /// </remarks> |
| | 1003 | | /// <param name='operations'> |
| | 1004 | | /// The operations group for this extension method. |
| | 1005 | | /// </param> |
| | 1006 | | /// <param name='appId'> |
| | 1007 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1008 | | /// blade in the Azure portal. |
| | 1009 | | /// </param> |
| | 1010 | | /// <param name='timespan'> |
| | 1011 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1012 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1013 | | /// any that are specified in the Odata expression. |
| | 1014 | | /// </param> |
| | 1015 | | /// <param name='filter'> |
| | 1016 | | /// An expression used to filter the returned events |
| | 1017 | | /// </param> |
| | 1018 | | /// <param name='search'> |
| | 1019 | | /// A free-text search expression to match for whether a particular |
| | 1020 | | /// event should be returned |
| | 1021 | | /// </param> |
| | 1022 | | /// <param name='orderby'> |
| | 1023 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1024 | | /// \"desc\" to control the order of returned events |
| | 1025 | | /// </param> |
| | 1026 | | /// <param name='select'> |
| | 1027 | | /// Limits the properties to just those requested on each returned |
| | 1028 | | /// event |
| | 1029 | | /// </param> |
| | 1030 | | /// <param name='skip'> |
| | 1031 | | /// The number of items to skip over before returning events |
| | 1032 | | /// </param> |
| | 1033 | | /// <param name='top'> |
| | 1034 | | /// The number of events to return |
| | 1035 | | /// </param> |
| | 1036 | | /// <param name='format'> |
| | 1037 | | /// Format for the returned events |
| | 1038 | | /// </param> |
| | 1039 | | /// <param name='count'> |
| | 1040 | | /// Request a count of matching items included with the returned events |
| | 1041 | | /// </param> |
| | 1042 | | /// <param name='apply'> |
| | 1043 | | /// An expression used for aggregation over returned events |
| | 1044 | | /// </param> |
| | 1045 | | /// <param name='cancellationToken'> |
| | 1046 | | /// The cancellation token. |
| | 1047 | | /// </param> |
| | 1048 | | public static async Task<EventsResults<EventsDependencyResult>> GetDependencyEventsAsync( |
| | 1049 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1050 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1051 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1052 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 1053 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1054 | | { |
| 2 | 1055 | | using (var result = await operations.GetDependencyEventsWithHttpMessagesAsync(appId, timespan, filter, searc |
| 2 | 1056 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 1057 | | { |
| 2 | 1058 | | return result.Body; |
| | 1059 | | } |
| 2 | 1060 | | } |
| | 1061 | |
|
| | 1062 | | /// <summary> |
| | 1063 | | /// Get a dependency event |
| | 1064 | | /// </summary> |
| | 1065 | | /// <remarks> |
| | 1066 | | /// Gets the data for a single dependency event |
| | 1067 | | /// </remarks> |
| | 1068 | | /// <param name='operations'> |
| | 1069 | | /// The operations group for this extension method. |
| | 1070 | | /// </param> |
| | 1071 | | /// <param name='appId'> |
| | 1072 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1073 | | /// blade in the Azure portal. |
| | 1074 | | /// </param> |
| | 1075 | | /// <param name='eventId'> |
| | 1076 | | /// ID of event. |
| | 1077 | | /// </param> |
| | 1078 | | /// <param name='timespan'> |
| | 1079 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1080 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1081 | | /// any that are specified in the Odata expression. |
| | 1082 | | /// </param> |
| | 1083 | | public static EventsResults<EventsDependencyResult> GetDependencyEvent( |
| | 1084 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 1085 | | { |
| 1 | 1086 | | return operations.GetDependencyEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 1087 | | } |
| | 1088 | |
|
| | 1089 | | /// <summary> |
| | 1090 | | /// Get a dependency event |
| | 1091 | | /// </summary> |
| | 1092 | | /// <remarks> |
| | 1093 | | /// Gets the data for a single dependency event |
| | 1094 | | /// </remarks> |
| | 1095 | | /// <param name='operations'> |
| | 1096 | | /// The operations group for this extension method. |
| | 1097 | | /// </param> |
| | 1098 | | /// <param name='appId'> |
| | 1099 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1100 | | /// blade in the Azure portal. |
| | 1101 | | /// </param> |
| | 1102 | | /// <param name='eventId'> |
| | 1103 | | /// ID of event. |
| | 1104 | | /// </param> |
| | 1105 | | /// <param name='timespan'> |
| | 1106 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1107 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1108 | | /// any that are specified in the Odata expression. |
| | 1109 | | /// </param> |
| | 1110 | | /// <param name='cancellationToken'> |
| | 1111 | | /// The cancellation token. |
| | 1112 | | /// </param> |
| | 1113 | | public static async Task<EventsResults<EventsDependencyResult>> GetDependencyEventAsync( |
| | 1114 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 1115 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1116 | | { |
| 2 | 1117 | | using (var result = await operations.GetDependencyEventWithHttpMessagesAsync(appId, eventId, timespan, null, |
| | 1118 | | { |
| 2 | 1119 | | return result.Body; |
| | 1120 | | } |
| 2 | 1121 | | } |
| | 1122 | |
|
| | 1123 | | /// <summary> |
| | 1124 | | /// Execute OData query for exception events |
| | 1125 | | /// </summary> |
| | 1126 | | /// <remarks> |
| | 1127 | | /// Executes an OData query for exception events |
| | 1128 | | /// </remarks> |
| | 1129 | | /// <param name='operations'> |
| | 1130 | | /// The operations group for this extension method. |
| | 1131 | | /// </param> |
| | 1132 | | /// <param name='appId'> |
| | 1133 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1134 | | /// blade in the Azure portal. |
| | 1135 | | /// </param> |
| | 1136 | | /// <param name='timespan'> |
| | 1137 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1138 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1139 | | /// any that are specified in the Odata expression. |
| | 1140 | | /// </param> |
| | 1141 | | /// <param name='filter'> |
| | 1142 | | /// An expression used to filter the returned events |
| | 1143 | | /// </param> |
| | 1144 | | /// <param name='search'> |
| | 1145 | | /// A free-text search expression to match for whether a particular |
| | 1146 | | /// event should be returned |
| | 1147 | | /// </param> |
| | 1148 | | /// <param name='orderby'> |
| | 1149 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1150 | | /// \"desc\" to control the order of returned events |
| | 1151 | | /// </param> |
| | 1152 | | /// <param name='select'> |
| | 1153 | | /// Limits the properties to just those requested on each returned |
| | 1154 | | /// event |
| | 1155 | | /// </param> |
| | 1156 | | /// <param name='skip'> |
| | 1157 | | /// The number of items to skip over before returning events |
| | 1158 | | /// </param> |
| | 1159 | | /// <param name='top'> |
| | 1160 | | /// The number of events to return |
| | 1161 | | /// </param> |
| | 1162 | | /// <param name='format'> |
| | 1163 | | /// Format for the returned events |
| | 1164 | | /// </param> |
| | 1165 | | /// <param name='count'> |
| | 1166 | | /// Request a count of matching items included with the returned events |
| | 1167 | | /// </param> |
| | 1168 | | /// <param name='apply'> |
| | 1169 | | /// An expression used for aggregation over returned events |
| | 1170 | | /// </param> |
| | 1171 | | public static EventsResults<EventsExceptionResult> GetExceptionEvents( |
| | 1172 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1173 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1174 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1175 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 1176 | | { |
| 1 | 1177 | | return operations |
| 1 | 1178 | | .GetExceptionEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, app |
| 1 | 1179 | | .GetAwaiter().GetResult(); |
| | 1180 | | } |
| | 1181 | |
|
| | 1182 | | /// <summary> |
| | 1183 | | /// Execute OData query for exception events |
| | 1184 | | /// </summary> |
| | 1185 | | /// <remarks> |
| | 1186 | | /// Executes an OData query for exception events |
| | 1187 | | /// </remarks> |
| | 1188 | | /// <param name='operations'> |
| | 1189 | | /// The operations group for this extension method. |
| | 1190 | | /// </param> |
| | 1191 | | /// <param name='appId'> |
| | 1192 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1193 | | /// blade in the Azure portal. |
| | 1194 | | /// </param> |
| | 1195 | | /// <param name='timespan'> |
| | 1196 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1197 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1198 | | /// any that are specified in the Odata expression. |
| | 1199 | | /// </param> |
| | 1200 | | /// <param name='filter'> |
| | 1201 | | /// An expression used to filter the returned events |
| | 1202 | | /// </param> |
| | 1203 | | /// <param name='search'> |
| | 1204 | | /// A free-text search expression to match for whether a particular |
| | 1205 | | /// event should be returned |
| | 1206 | | /// </param> |
| | 1207 | | /// <param name='orderby'> |
| | 1208 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1209 | | /// \"desc\" to control the order of returned events |
| | 1210 | | /// </param> |
| | 1211 | | /// <param name='select'> |
| | 1212 | | /// Limits the properties to just those requested on each returned |
| | 1213 | | /// event |
| | 1214 | | /// </param> |
| | 1215 | | /// <param name='skip'> |
| | 1216 | | /// The number of items to skip over before returning events |
| | 1217 | | /// </param> |
| | 1218 | | /// <param name='top'> |
| | 1219 | | /// The number of events to return |
| | 1220 | | /// </param> |
| | 1221 | | /// <param name='format'> |
| | 1222 | | /// Format for the returned events |
| | 1223 | | /// </param> |
| | 1224 | | /// <param name='count'> |
| | 1225 | | /// Request a count of matching items included with the returned events |
| | 1226 | | /// </param> |
| | 1227 | | /// <param name='apply'> |
| | 1228 | | /// An expression used for aggregation over returned events |
| | 1229 | | /// </param> |
| | 1230 | | /// <param name='cancellationToken'> |
| | 1231 | | /// The cancellation token. |
| | 1232 | | /// </param> |
| | 1233 | | public static async Task<EventsResults<EventsExceptionResult>> GetExceptionEventsAsync( |
| | 1234 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1235 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1236 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1237 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 1238 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1239 | | { |
| 2 | 1240 | | using (var result = await operations.GetExceptionEventsWithHttpMessagesAsync(appId, timespan, filter, search |
| 2 | 1241 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 1242 | | { |
| 2 | 1243 | | return result.Body; |
| | 1244 | | } |
| 2 | 1245 | | } |
| | 1246 | |
|
| | 1247 | | /// <summary> |
| | 1248 | | /// Get an exception event |
| | 1249 | | /// </summary> |
| | 1250 | | /// <remarks> |
| | 1251 | | /// Gets the data for a single exception event |
| | 1252 | | /// </remarks> |
| | 1253 | | /// <param name='operations'> |
| | 1254 | | /// The operations group for this extension method. |
| | 1255 | | /// </param> |
| | 1256 | | /// <param name='appId'> |
| | 1257 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1258 | | /// blade in the Azure portal. |
| | 1259 | | /// </param> |
| | 1260 | | /// <param name='eventId'> |
| | 1261 | | /// ID of event. |
| | 1262 | | /// </param> |
| | 1263 | | /// <param name='timespan'> |
| | 1264 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1265 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1266 | | /// any that are specified in the Odata expression. |
| | 1267 | | /// </param> |
| | 1268 | | public static EventsResults<EventsExceptionResult> GetExceptionEvent( |
| | 1269 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 1270 | | { |
| 1 | 1271 | | return operations.GetExceptionEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 1272 | | } |
| | 1273 | |
|
| | 1274 | | /// <summary> |
| | 1275 | | /// Get an exception event |
| | 1276 | | /// </summary> |
| | 1277 | | /// <remarks> |
| | 1278 | | /// Gets the data for a single exception event |
| | 1279 | | /// </remarks> |
| | 1280 | | /// <param name='operations'> |
| | 1281 | | /// The operations group for this extension method. |
| | 1282 | | /// </param> |
| | 1283 | | /// <param name='appId'> |
| | 1284 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1285 | | /// blade in the Azure portal. |
| | 1286 | | /// </param> |
| | 1287 | | /// <param name='eventId'> |
| | 1288 | | /// ID of event. |
| | 1289 | | /// </param> |
| | 1290 | | /// <param name='timespan'> |
| | 1291 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1292 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1293 | | /// any that are specified in the Odata expression. |
| | 1294 | | /// </param> |
| | 1295 | | /// <param name='cancellationToken'> |
| | 1296 | | /// The cancellation token. |
| | 1297 | | /// </param> |
| | 1298 | | public static async Task<EventsResults<EventsExceptionResult>> GetExceptionEventAsync( |
| | 1299 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 1300 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1301 | | { |
| 2 | 1302 | | using (var result = await operations.GetExceptionEventWithHttpMessagesAsync(appId, eventId, timespan, null, |
| | 1303 | | { |
| 2 | 1304 | | return result.Body; |
| | 1305 | | } |
| 2 | 1306 | | } |
| | 1307 | |
|
| | 1308 | | /// <summary> |
| | 1309 | | /// Execute OData query for availability result events |
| | 1310 | | /// </summary> |
| | 1311 | | /// <remarks> |
| | 1312 | | /// Executes an OData query for availability result events |
| | 1313 | | /// </remarks> |
| | 1314 | | /// <param name='operations'> |
| | 1315 | | /// The operations group for this extension method. |
| | 1316 | | /// </param> |
| | 1317 | | /// <param name='appId'> |
| | 1318 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1319 | | /// blade in the Azure portal. |
| | 1320 | | /// </param> |
| | 1321 | | /// <param name='timespan'> |
| | 1322 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1323 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1324 | | /// any that are specified in the Odata expression. |
| | 1325 | | /// </param> |
| | 1326 | | /// <param name='filter'> |
| | 1327 | | /// An expression used to filter the returned events |
| | 1328 | | /// </param> |
| | 1329 | | /// <param name='search'> |
| | 1330 | | /// A free-text search expression to match for whether a particular |
| | 1331 | | /// event should be returned |
| | 1332 | | /// </param> |
| | 1333 | | /// <param name='orderby'> |
| | 1334 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1335 | | /// \"desc\" to control the order of returned events |
| | 1336 | | /// </param> |
| | 1337 | | /// <param name='select'> |
| | 1338 | | /// Limits the properties to just those requested on each returned |
| | 1339 | | /// event |
| | 1340 | | /// </param> |
| | 1341 | | /// <param name='skip'> |
| | 1342 | | /// The number of items to skip over before returning events |
| | 1343 | | /// </param> |
| | 1344 | | /// <param name='top'> |
| | 1345 | | /// The number of events to return |
| | 1346 | | /// </param> |
| | 1347 | | /// <param name='format'> |
| | 1348 | | /// Format for the returned events |
| | 1349 | | /// </param> |
| | 1350 | | /// <param name='count'> |
| | 1351 | | /// Request a count of matching items included with the returned events |
| | 1352 | | /// </param> |
| | 1353 | | /// <param name='apply'> |
| | 1354 | | /// An expression used for aggregation over returned events |
| | 1355 | | /// </param> |
| | 1356 | | public static EventsResults<EventsAvailabilityResultResult> GetAvailabilityResultEvents( |
| | 1357 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1358 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1359 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1360 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 1361 | | { |
| 1 | 1362 | | return operations |
| 1 | 1363 | | .GetAvailabilityResultEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, c |
| 1 | 1364 | | .GetAwaiter().GetResult(); |
| | 1365 | | } |
| | 1366 | |
|
| | 1367 | | /// <summary> |
| | 1368 | | /// Execute OData query for availability result events |
| | 1369 | | /// </summary> |
| | 1370 | | /// <remarks> |
| | 1371 | | /// Executes an OData query for availability result events |
| | 1372 | | /// </remarks> |
| | 1373 | | /// <param name='operations'> |
| | 1374 | | /// The operations group for this extension method. |
| | 1375 | | /// </param> |
| | 1376 | | /// <param name='appId'> |
| | 1377 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1378 | | /// blade in the Azure portal. |
| | 1379 | | /// </param> |
| | 1380 | | /// <param name='timespan'> |
| | 1381 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1382 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1383 | | /// any that are specified in the Odata expression. |
| | 1384 | | /// </param> |
| | 1385 | | /// <param name='filter'> |
| | 1386 | | /// An expression used to filter the returned events |
| | 1387 | | /// </param> |
| | 1388 | | /// <param name='search'> |
| | 1389 | | /// A free-text search expression to match for whether a particular |
| | 1390 | | /// event should be returned |
| | 1391 | | /// </param> |
| | 1392 | | /// <param name='orderby'> |
| | 1393 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1394 | | /// \"desc\" to control the order of returned events |
| | 1395 | | /// </param> |
| | 1396 | | /// <param name='select'> |
| | 1397 | | /// Limits the properties to just those requested on each returned |
| | 1398 | | /// event |
| | 1399 | | /// </param> |
| | 1400 | | /// <param name='skip'> |
| | 1401 | | /// The number of items to skip over before returning events |
| | 1402 | | /// </param> |
| | 1403 | | /// <param name='top'> |
| | 1404 | | /// The number of events to return |
| | 1405 | | /// </param> |
| | 1406 | | /// <param name='format'> |
| | 1407 | | /// Format for the returned events |
| | 1408 | | /// </param> |
| | 1409 | | /// <param name='count'> |
| | 1410 | | /// Request a count of matching items included with the returned events |
| | 1411 | | /// </param> |
| | 1412 | | /// <param name='apply'> |
| | 1413 | | /// An expression used for aggregation over returned events |
| | 1414 | | /// </param> |
| | 1415 | | /// <param name='cancellationToken'> |
| | 1416 | | /// The cancellation token. |
| | 1417 | | /// </param> |
| | 1418 | | public static async Task<EventsResults<EventsAvailabilityResultResult>> GetAvailabilityResultEventsAsync( |
| | 1419 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1420 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1421 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1422 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 1423 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1424 | | { |
| 2 | 1425 | | using (var result = await operations.GetAvailabilityResultEventsWithHttpMessagesAsync(appId, timespan, filte |
| 2 | 1426 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 1427 | | { |
| 2 | 1428 | | return result.Body; |
| | 1429 | | } |
| 2 | 1430 | | } |
| | 1431 | |
|
| | 1432 | | /// <summary> |
| | 1433 | | /// Get an availability result event |
| | 1434 | | /// </summary> |
| | 1435 | | /// <remarks> |
| | 1436 | | /// Gets the data for a single availability result event |
| | 1437 | | /// </remarks> |
| | 1438 | | /// <param name='operations'> |
| | 1439 | | /// The operations group for this extension method. |
| | 1440 | | /// </param> |
| | 1441 | | /// <param name='appId'> |
| | 1442 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1443 | | /// blade in the Azure portal. |
| | 1444 | | /// </param> |
| | 1445 | | /// <param name='eventId'> |
| | 1446 | | /// ID of event. |
| | 1447 | | /// </param> |
| | 1448 | | /// <param name='timespan'> |
| | 1449 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1450 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1451 | | /// any that are specified in the Odata expression. |
| | 1452 | | /// </param> |
| | 1453 | | public static EventsResults<EventsAvailabilityResultResult> GetAvailabilityResultEvent( |
| | 1454 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 1455 | | { |
| 1 | 1456 | | return operations.GetAvailabilityResultEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 1457 | | } |
| | 1458 | |
|
| | 1459 | | /// <summary> |
| | 1460 | | /// Get an availability result event |
| | 1461 | | /// </summary> |
| | 1462 | | /// <remarks> |
| | 1463 | | /// Gets the data for a single availability result event |
| | 1464 | | /// </remarks> |
| | 1465 | | /// <param name='operations'> |
| | 1466 | | /// The operations group for this extension method. |
| | 1467 | | /// </param> |
| | 1468 | | /// <param name='appId'> |
| | 1469 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1470 | | /// blade in the Azure portal. |
| | 1471 | | /// </param> |
| | 1472 | | /// <param name='eventId'> |
| | 1473 | | /// ID of event. |
| | 1474 | | /// </param> |
| | 1475 | | /// <param name='timespan'> |
| | 1476 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1477 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1478 | | /// any that are specified in the Odata expression. |
| | 1479 | | /// </param> |
| | 1480 | | /// <param name='cancellationToken'> |
| | 1481 | | /// The cancellation token. |
| | 1482 | | /// </param> |
| | 1483 | | public static async Task<EventsResults<EventsAvailabilityResultResult>> GetAvailabilityResultEventAsync( |
| | 1484 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 1485 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1486 | | { |
| 2 | 1487 | | using (var result = await operations.GetAvailabilityResultEventWithHttpMessagesAsync(appId, eventId, timespa |
| | 1488 | | { |
| 2 | 1489 | | return result.Body; |
| | 1490 | | } |
| 2 | 1491 | | } |
| | 1492 | |
|
| | 1493 | | /// <summary> |
| | 1494 | | /// Execute OData query for performance counter events |
| | 1495 | | /// </summary> |
| | 1496 | | /// <remarks> |
| | 1497 | | /// Executes an OData query for performance counter events |
| | 1498 | | /// </remarks> |
| | 1499 | | /// <param name='operations'> |
| | 1500 | | /// The operations group for this extension method. |
| | 1501 | | /// </param> |
| | 1502 | | /// <param name='appId'> |
| | 1503 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1504 | | /// blade in the Azure portal. |
| | 1505 | | /// </param> |
| | 1506 | | /// <param name='timespan'> |
| | 1507 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1508 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1509 | | /// any that are specified in the Odata expression. |
| | 1510 | | /// </param> |
| | 1511 | | /// <param name='filter'> |
| | 1512 | | /// An expression used to filter the returned events |
| | 1513 | | /// </param> |
| | 1514 | | /// <param name='search'> |
| | 1515 | | /// A free-text search expression to match for whether a particular |
| | 1516 | | /// event should be returned |
| | 1517 | | /// </param> |
| | 1518 | | /// <param name='orderby'> |
| | 1519 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1520 | | /// \"desc\" to control the order of returned events |
| | 1521 | | /// </param> |
| | 1522 | | /// <param name='select'> |
| | 1523 | | /// Limits the properties to just those requested on each returned |
| | 1524 | | /// event |
| | 1525 | | /// </param> |
| | 1526 | | /// <param name='skip'> |
| | 1527 | | /// The number of items to skip over before returning events |
| | 1528 | | /// </param> |
| | 1529 | | /// <param name='top'> |
| | 1530 | | /// The number of events to return |
| | 1531 | | /// </param> |
| | 1532 | | /// <param name='format'> |
| | 1533 | | /// Format for the returned events |
| | 1534 | | /// </param> |
| | 1535 | | /// <param name='count'> |
| | 1536 | | /// Request a count of matching items included with the returned events |
| | 1537 | | /// </param> |
| | 1538 | | /// <param name='apply'> |
| | 1539 | | /// An expression used for aggregation over returned events |
| | 1540 | | /// </param> |
| | 1541 | | public static EventsResults<EventsPerformanceCounterResult> GetPerformanceCounterEvents( |
| | 1542 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1543 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1544 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1545 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 1546 | | { |
| 1 | 1547 | | return operations |
| 1 | 1548 | | .GetPerformanceCounterEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, c |
| 1 | 1549 | | .GetAwaiter().GetResult(); |
| | 1550 | | } |
| | 1551 | |
|
| | 1552 | | /// <summary> |
| | 1553 | | /// Execute OData query for performance counter events |
| | 1554 | | /// </summary> |
| | 1555 | | /// <remarks> |
| | 1556 | | /// Executes an OData query for performance counter events |
| | 1557 | | /// </remarks> |
| | 1558 | | /// <param name='operations'> |
| | 1559 | | /// The operations group for this extension method. |
| | 1560 | | /// </param> |
| | 1561 | | /// <param name='appId'> |
| | 1562 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1563 | | /// blade in the Azure portal. |
| | 1564 | | /// </param> |
| | 1565 | | /// <param name='timespan'> |
| | 1566 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1567 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1568 | | /// any that are specified in the Odata expression. |
| | 1569 | | /// </param> |
| | 1570 | | /// <param name='filter'> |
| | 1571 | | /// An expression used to filter the returned events |
| | 1572 | | /// </param> |
| | 1573 | | /// <param name='search'> |
| | 1574 | | /// A free-text search expression to match for whether a particular |
| | 1575 | | /// event should be returned |
| | 1576 | | /// </param> |
| | 1577 | | /// <param name='orderby'> |
| | 1578 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1579 | | /// \"desc\" to control the order of returned events |
| | 1580 | | /// </param> |
| | 1581 | | /// <param name='select'> |
| | 1582 | | /// Limits the properties to just those requested on each returned |
| | 1583 | | /// event |
| | 1584 | | /// </param> |
| | 1585 | | /// <param name='skip'> |
| | 1586 | | /// The number of items to skip over before returning events |
| | 1587 | | /// </param> |
| | 1588 | | /// <param name='top'> |
| | 1589 | | /// The number of events to return |
| | 1590 | | /// </param> |
| | 1591 | | /// <param name='format'> |
| | 1592 | | /// Format for the returned events |
| | 1593 | | /// </param> |
| | 1594 | | /// <param name='count'> |
| | 1595 | | /// Request a count of matching items included with the returned events |
| | 1596 | | /// </param> |
| | 1597 | | /// <param name='apply'> |
| | 1598 | | /// An expression used for aggregation over returned events |
| | 1599 | | /// </param> |
| | 1600 | | /// <param name='cancellationToken'> |
| | 1601 | | /// The cancellation token. |
| | 1602 | | /// </param> |
| | 1603 | | public static async Task<EventsResults<EventsPerformanceCounterResult>> GetPerformanceCounterEventsAsync( |
| | 1604 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1605 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1606 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1607 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 1608 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1609 | | { |
| 2 | 1610 | | using (var result = await operations.GetPerformanceCounterEventsWithHttpMessagesAsync(appId, timespan, filte |
| 2 | 1611 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 1612 | | { |
| 2 | 1613 | | return result.Body; |
| | 1614 | | } |
| 2 | 1615 | | } |
| | 1616 | |
|
| | 1617 | | /// <summary> |
| | 1618 | | /// Get a performance counter event |
| | 1619 | | /// </summary> |
| | 1620 | | /// <remarks> |
| | 1621 | | /// Gets the data for a single performance counter event |
| | 1622 | | /// </remarks> |
| | 1623 | | /// <param name='operations'> |
| | 1624 | | /// The operations group for this extension method. |
| | 1625 | | /// </param> |
| | 1626 | | /// <param name='appId'> |
| | 1627 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1628 | | /// blade in the Azure portal. |
| | 1629 | | /// </param> |
| | 1630 | | /// <param name='eventId'> |
| | 1631 | | /// ID of event. |
| | 1632 | | /// </param> |
| | 1633 | | /// <param name='timespan'> |
| | 1634 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1635 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1636 | | /// any that are specified in the Odata expression. |
| | 1637 | | /// </param> |
| | 1638 | | public static EventsResults<EventsPerformanceCounterResult> GetPerformanceCounterEvent( |
| | 1639 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 1640 | | { |
| 1 | 1641 | | return operations.GetPerformanceCounterEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 1642 | | } |
| | 1643 | |
|
| | 1644 | | /// <summary> |
| | 1645 | | /// Get a performance counter event |
| | 1646 | | /// </summary> |
| | 1647 | | /// <remarks> |
| | 1648 | | /// Gets the data for a single performance counter event |
| | 1649 | | /// </remarks> |
| | 1650 | | /// <param name='operations'> |
| | 1651 | | /// The operations group for this extension method. |
| | 1652 | | /// </param> |
| | 1653 | | /// <param name='appId'> |
| | 1654 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1655 | | /// blade in the Azure portal. |
| | 1656 | | /// </param> |
| | 1657 | | /// <param name='eventId'> |
| | 1658 | | /// ID of event. |
| | 1659 | | /// </param> |
| | 1660 | | /// <param name='timespan'> |
| | 1661 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1662 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1663 | | /// any that are specified in the Odata expression. |
| | 1664 | | /// </param> |
| | 1665 | | /// <param name='cancellationToken'> |
| | 1666 | | /// The cancellation token. |
| | 1667 | | /// </param> |
| | 1668 | | public static async Task<EventsResults<EventsPerformanceCounterResult>> GetPerformanceCounterEventAsync( |
| | 1669 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 1670 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1671 | | { |
| 2 | 1672 | | using (var result = await operations.GetPerformanceCounterEventWithHttpMessagesAsync(appId, eventId, timespa |
| | 1673 | | { |
| 2 | 1674 | | return result.Body; |
| | 1675 | | } |
| 2 | 1676 | | } |
| | 1677 | |
|
| | 1678 | | /// <summary> |
| | 1679 | | /// Execute OData query for custom metric events |
| | 1680 | | /// </summary> |
| | 1681 | | /// <remarks> |
| | 1682 | | /// Executes an OData query for custom metric events |
| | 1683 | | /// </remarks> |
| | 1684 | | /// <param name='operations'> |
| | 1685 | | /// The operations group for this extension method. |
| | 1686 | | /// </param> |
| | 1687 | | /// <param name='appId'> |
| | 1688 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1689 | | /// blade in the Azure portal. |
| | 1690 | | /// </param> |
| | 1691 | | /// <param name='timespan'> |
| | 1692 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1693 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1694 | | /// any that are specified in the Odata expression. |
| | 1695 | | /// </param> |
| | 1696 | | /// <param name='filter'> |
| | 1697 | | /// An expression used to filter the returned events |
| | 1698 | | /// </param> |
| | 1699 | | /// <param name='search'> |
| | 1700 | | /// A free-text search expression to match for whether a particular |
| | 1701 | | /// event should be returned |
| | 1702 | | /// </param> |
| | 1703 | | /// <param name='orderby'> |
| | 1704 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1705 | | /// \"desc\" to control the order of returned events |
| | 1706 | | /// </param> |
| | 1707 | | /// <param name='select'> |
| | 1708 | | /// Limits the properties to just those requested on each returned |
| | 1709 | | /// event |
| | 1710 | | /// </param> |
| | 1711 | | /// <param name='skip'> |
| | 1712 | | /// The number of items to skip over before returning events |
| | 1713 | | /// </param> |
| | 1714 | | /// <param name='top'> |
| | 1715 | | /// The number of events to return |
| | 1716 | | /// </param> |
| | 1717 | | /// <param name='format'> |
| | 1718 | | /// Format for the returned events |
| | 1719 | | /// </param> |
| | 1720 | | /// <param name='count'> |
| | 1721 | | /// Request a count of matching items included with the returned events |
| | 1722 | | /// </param> |
| | 1723 | | /// <param name='apply'> |
| | 1724 | | /// An expression used for aggregation over returned events |
| | 1725 | | /// </param> |
| | 1726 | | public static EventsResults<EventsCustomMetricResult> GetCustomMetricEvents( |
| | 1727 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1728 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1729 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1730 | | string format = default(string), bool? count = default(bool?), string apply = default(string)) |
| | 1731 | | { |
| 1 | 1732 | | return operations |
| 1 | 1733 | | .GetCustomMetricEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, |
| 1 | 1734 | | .GetAwaiter().GetResult(); |
| | 1735 | | } |
| | 1736 | |
|
| | 1737 | | /// <summary> |
| | 1738 | | /// Execute OData query for custom metric events |
| | 1739 | | /// </summary> |
| | 1740 | | /// <remarks> |
| | 1741 | | /// Executes an OData query for custom metric events |
| | 1742 | | /// </remarks> |
| | 1743 | | /// <param name='operations'> |
| | 1744 | | /// The operations group for this extension method. |
| | 1745 | | /// </param> |
| | 1746 | | /// <param name='appId'> |
| | 1747 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1748 | | /// blade in the Azure portal. |
| | 1749 | | /// </param> |
| | 1750 | | /// <param name='timespan'> |
| | 1751 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1752 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1753 | | /// any that are specified in the Odata expression. |
| | 1754 | | /// </param> |
| | 1755 | | /// <param name='filter'> |
| | 1756 | | /// An expression used to filter the returned events |
| | 1757 | | /// </param> |
| | 1758 | | /// <param name='search'> |
| | 1759 | | /// A free-text search expression to match for whether a particular |
| | 1760 | | /// event should be returned |
| | 1761 | | /// </param> |
| | 1762 | | /// <param name='orderby'> |
| | 1763 | | /// A comma-separated list of properties with \"asc\" (the default) or |
| | 1764 | | /// \"desc\" to control the order of returned events |
| | 1765 | | /// </param> |
| | 1766 | | /// <param name='select'> |
| | 1767 | | /// Limits the properties to just those requested on each returned |
| | 1768 | | /// event |
| | 1769 | | /// </param> |
| | 1770 | | /// <param name='skip'> |
| | 1771 | | /// The number of items to skip over before returning events |
| | 1772 | | /// </param> |
| | 1773 | | /// <param name='top'> |
| | 1774 | | /// The number of events to return |
| | 1775 | | /// </param> |
| | 1776 | | /// <param name='format'> |
| | 1777 | | /// Format for the returned events |
| | 1778 | | /// </param> |
| | 1779 | | /// <param name='count'> |
| | 1780 | | /// Request a count of matching items included with the returned events |
| | 1781 | | /// </param> |
| | 1782 | | /// <param name='apply'> |
| | 1783 | | /// An expression used for aggregation over returned events |
| | 1784 | | /// </param> |
| | 1785 | | /// <param name='cancellationToken'> |
| | 1786 | | /// The cancellation token. |
| | 1787 | | /// </param> |
| | 1788 | | public static async Task<EventsResults<EventsCustomMetricResult>> GetCustomMetricEventsAsync( |
| | 1789 | | this IEvents operations, string appId, string timespan = default(string), |
| | 1790 | | string filter = default(string), string search = default(string), string orderby = default(string), |
| | 1791 | | string select = default(string), int? skip = default(int?), int? top = default(int?), |
| | 1792 | | string format = default(string), bool? count = default(bool?), string apply = default(string), |
| | 1793 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1794 | | { |
| 2 | 1795 | | using (var result = await operations.GetCustomMetricEventsWithHttpMessagesAsync(appId, timespan, filter, sea |
| 2 | 1796 | | select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) |
| | 1797 | | { |
| 2 | 1798 | | return result.Body; |
| | 1799 | | } |
| 2 | 1800 | | } |
| | 1801 | |
|
| | 1802 | | /// <summary> |
| | 1803 | | /// Get a custom metricevent |
| | 1804 | | /// </summary> |
| | 1805 | | /// <remarks> |
| | 1806 | | /// Gets the data for a single custom metric event |
| | 1807 | | /// </remarks> |
| | 1808 | | /// <param name='operations'> |
| | 1809 | | /// The operations group for this extension method. |
| | 1810 | | /// </param> |
| | 1811 | | /// <param name='appId'> |
| | 1812 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1813 | | /// blade in the Azure portal. |
| | 1814 | | /// </param> |
| | 1815 | | /// <param name='eventId'> |
| | 1816 | | /// ID of event. |
| | 1817 | | /// </param> |
| | 1818 | | /// <param name='timespan'> |
| | 1819 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1820 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1821 | | /// any that are specified in the Odata expression. |
| | 1822 | | /// </param> |
| | 1823 | | public static EventsResults<EventsCustomMetricResult> GetCustomMetricEvent( |
| | 1824 | | this IEvents operations, string appId, string eventId, string timespan = default(string)) |
| | 1825 | | { |
| 1 | 1826 | | return operations.GetCustomMetricEventAsync(appId, eventId, timespan).GetAwaiter().GetResult(); |
| | 1827 | | } |
| | 1828 | |
|
| | 1829 | | /// <summary> |
| | 1830 | | /// Get a custom metricevent |
| | 1831 | | /// </summary> |
| | 1832 | | /// <remarks> |
| | 1833 | | /// Gets the data for a single custom metric event |
| | 1834 | | /// </remarks> |
| | 1835 | | /// <param name='operations'> |
| | 1836 | | /// The operations group for this extension method. |
| | 1837 | | /// </param> |
| | 1838 | | /// <param name='appId'> |
| | 1839 | | /// ID of the application. This is Application ID from the API Access settings |
| | 1840 | | /// blade in the Azure portal. |
| | 1841 | | /// </param> |
| | 1842 | | /// <param name='eventId'> |
| | 1843 | | /// ID of event. |
| | 1844 | | /// </param> |
| | 1845 | | /// <param name='timespan'> |
| | 1846 | | /// Optional. The timespan over which to retrieve events. This is an |
| | 1847 | | /// ISO8601 time period value. This timespan is applied in addition to |
| | 1848 | | /// any that are specified in the Odata expression. |
| | 1849 | | /// </param> |
| | 1850 | | /// <param name='cancellationToken'> |
| | 1851 | | /// The cancellation token. |
| | 1852 | | /// </param> |
| | 1853 | | public static async Task<EventsResults<EventsCustomMetricResult>> GetCustomMetricEventAsync( |
| | 1854 | | this IEvents operations, string appId, string eventId, string timespan = default(string), |
| | 1855 | | CancellationToken cancellationToken = default(CancellationToken)) |
| | 1856 | | { |
| 2 | 1857 | | using (var result = await operations.GetCustomMetricEventWithHttpMessagesAsync(appId, eventId, timespan, nul |
| | 1858 | | { |
| 2 | 1859 | | return result.Body; |
| | 1860 | | } |
| 2 | 1861 | | } |
| | 1862 | |
|
| | 1863 | | #endregion |
| | 1864 | | } |
| | 1865 | | } |