| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.ApplicationInsights.Query.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The request info |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class EventsRequestInfo |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the EventsRequestInfo class. |
| | | 23 | | /// </summary> |
| | 13 | 24 | | public EventsRequestInfo() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 13 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the EventsRequestInfo class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="name">The name of the request</param> |
| | | 33 | | /// <param name="url">The URL of the request</param> |
| | | 34 | | /// <param name="success">Indicates if the request was |
| | | 35 | | /// successful</param> |
| | | 36 | | /// <param name="duration">The duration of the request</param> |
| | | 37 | | /// <param name="performanceBucket">The performance bucket of the |
| | | 38 | | /// request</param> |
| | | 39 | | /// <param name="resultCode">The result code of the request</param> |
| | | 40 | | /// <param name="source">The source of the request</param> |
| | | 41 | | /// <param name="id">The ID of the request</param> |
| | 0 | 42 | | public EventsRequestInfo(string name = default(string), string url = default(string), string success = default(s |
| | | 43 | | { |
| | 0 | 44 | | Name = name; |
| | 0 | 45 | | Url = url; |
| | 0 | 46 | | Success = success; |
| | 0 | 47 | | Duration = duration; |
| | 0 | 48 | | PerformanceBucket = performanceBucket; |
| | 0 | 49 | | ResultCode = resultCode; |
| | 0 | 50 | | Source = source; |
| | 0 | 51 | | Id = id; |
| | | 52 | | CustomInit(); |
| | 0 | 53 | | } |
| | | 54 | | |
| | | 55 | | /// <summary> |
| | | 56 | | /// An initialization method that performs custom operations like setting defaults |
| | | 57 | | /// </summary> |
| | | 58 | | partial void CustomInit(); |
| | | 59 | | |
| | | 60 | | /// <summary> |
| | | 61 | | /// Gets or sets the name of the request |
| | | 62 | | /// </summary> |
| | | 63 | | [JsonProperty(PropertyName = "name")] |
| | 28 | 64 | | public string Name { get; set; } |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// Gets or sets the URL of the request |
| | | 68 | | /// </summary> |
| | | 69 | | [JsonProperty(PropertyName = "url")] |
| | 28 | 70 | | public string Url { get; set; } |
| | | 71 | | |
| | | 72 | | /// <summary> |
| | | 73 | | /// Gets or sets indicates if the request was successful |
| | | 74 | | /// </summary> |
| | | 75 | | [JsonProperty(PropertyName = "success")] |
| | 28 | 76 | | public string Success { get; set; } |
| | | 77 | | |
| | | 78 | | /// <summary> |
| | | 79 | | /// Gets or sets the duration of the request |
| | | 80 | | /// </summary> |
| | | 81 | | [JsonProperty(PropertyName = "duration")] |
| | 28 | 82 | | public double? Duration { get; set; } |
| | | 83 | | |
| | | 84 | | /// <summary> |
| | | 85 | | /// Gets or sets the performance bucket of the request |
| | | 86 | | /// </summary> |
| | | 87 | | [JsonProperty(PropertyName = "performanceBucket")] |
| | 28 | 88 | | public string PerformanceBucket { get; set; } |
| | | 89 | | |
| | | 90 | | /// <summary> |
| | | 91 | | /// Gets or sets the result code of the request |
| | | 92 | | /// </summary> |
| | | 93 | | [JsonProperty(PropertyName = "resultCode")] |
| | 28 | 94 | | public string ResultCode { get; set; } |
| | | 95 | | |
| | | 96 | | /// <summary> |
| | | 97 | | /// Gets or sets the source of the request |
| | | 98 | | /// </summary> |
| | | 99 | | [JsonProperty(PropertyName = "source")] |
| | 17 | 100 | | public string Source { get; set; } |
| | | 101 | | |
| | | 102 | | /// <summary> |
| | | 103 | | /// Gets or sets the ID of the request |
| | | 104 | | /// </summary> |
| | | 105 | | [JsonProperty(PropertyName = "id")] |
| | 28 | 106 | | public string Id { get; set; } |
| | | 107 | | |
| | | 108 | | } |
| | | 109 | | } |