| | 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.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// A metric result data. |
| | 20 | | /// </summary> |
| | 21 | | public partial class MetricsResultInfo |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the MetricsResultInfo class. |
| | 25 | | /// </summary> |
| 0 | 26 | | public MetricsResultInfo() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 0 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the MetricsResultInfo class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="additionalProperties">Unmatched properties from the |
| | 35 | | /// message are deserialized this collection</param> |
| | 36 | | /// <param name="start">Start time of the metric.</param> |
| | 37 | | /// <param name="end">Start time of the metric.</param> |
| | 38 | | /// <param name="interval">The interval used to segment the metric |
| | 39 | | /// data.</param> |
| | 40 | | /// <param name="segments">Segmented metric data (if |
| | 41 | | /// segmented).</param> |
| 0 | 42 | | public MetricsResultInfo(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>) |
| | 43 | | { |
| 0 | 44 | | AdditionalProperties = additionalProperties; |
| 0 | 45 | | Start = start; |
| 0 | 46 | | End = end; |
| 0 | 47 | | Interval = interval; |
| 0 | 48 | | Segments = segments; |
| | 49 | | CustomInit(); |
| 0 | 50 | | } |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// An initialization method that performs custom operations like setting defaults |
| | 54 | | /// </summary> |
| | 55 | | partial void CustomInit(); |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// Gets or sets unmatched properties from the message are deserialized |
| | 59 | | /// this collection |
| | 60 | | /// </summary> |
| | 61 | | [JsonExtensionData] |
| 0 | 62 | | public IDictionary<string, object> AdditionalProperties { get; set; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Gets or sets start time of the metric. |
| | 66 | | /// </summary> |
| | 67 | | [JsonProperty(PropertyName = "start")] |
| 0 | 68 | | public System.DateTime? Start { get; set; } |
| | 69 | |
|
| | 70 | | /// <summary> |
| | 71 | | /// Gets or sets start time of the metric. |
| | 72 | | /// </summary> |
| | 73 | | [JsonProperty(PropertyName = "end")] |
| 0 | 74 | | public System.DateTime? End { get; set; } |
| | 75 | |
|
| | 76 | | /// <summary> |
| | 77 | | /// Gets or sets the interval used to segment the metric data. |
| | 78 | | /// </summary> |
| | 79 | | [JsonProperty(PropertyName = "interval")] |
| 0 | 80 | | public System.TimeSpan? Interval { get; set; } |
| | 81 | |
|
| | 82 | | /// <summary> |
| | 83 | | /// Gets or sets segmented metric data (if segmented). |
| | 84 | | /// </summary> |
| | 85 | | [JsonProperty(PropertyName = "segments")] |
| 0 | 86 | | public IList<MetricsSegmentInfo> Segments { get; set; } |
| | 87 | |
|
| | 88 | | } |
| | 89 | | } |