| | | 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 segment |
| | | 20 | | /// </summary> |
| | | 21 | | public partial class MetricsSegmentInfo |
| | | 22 | | { |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the MetricsSegmentInfo class. |
| | | 25 | | /// </summary> |
| | 0 | 26 | | public MetricsSegmentInfo() |
| | | 27 | | { |
| | | 28 | | CustomInit(); |
| | 0 | 29 | | } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Initializes a new instance of the MetricsSegmentInfo 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 segment (only when an |
| | | 37 | | /// interval was specified).</param> |
| | | 38 | | /// <param name="end">Start time of the metric segment (only when an |
| | | 39 | | /// interval was specified).</param> |
| | | 40 | | /// <param name="segments">Segmented metric data (if further |
| | | 41 | | /// segmented).</param> |
| | 0 | 42 | | public MetricsSegmentInfo(IDictionary<string, object> additionalProperties = default(IDictionary<string, object> |
| | | 43 | | { |
| | 0 | 44 | | AdditionalProperties = additionalProperties; |
| | 0 | 45 | | Start = start; |
| | 0 | 46 | | End = end; |
| | 0 | 47 | | Segments = segments; |
| | | 48 | | CustomInit(); |
| | 0 | 49 | | } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// An initialization method that performs custom operations like setting defaults |
| | | 53 | | /// </summary> |
| | | 54 | | partial void CustomInit(); |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// Gets or sets unmatched properties from the message are deserialized |
| | | 58 | | /// this collection |
| | | 59 | | /// </summary> |
| | | 60 | | [JsonExtensionData] |
| | 0 | 61 | | public IDictionary<string, object> AdditionalProperties { get; set; } |
| | | 62 | | |
| | | 63 | | /// <summary> |
| | | 64 | | /// Gets or sets start time of the metric segment (only when an |
| | | 65 | | /// interval was specified). |
| | | 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 segment (only when an |
| | | 72 | | /// interval was specified). |
| | | 73 | | /// </summary> |
| | | 74 | | [JsonProperty(PropertyName = "end")] |
| | 0 | 75 | | public System.DateTime? End { get; set; } |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Gets or sets segmented metric data (if further segmented). |
| | | 79 | | /// </summary> |
| | | 80 | | [JsonProperty(PropertyName = "segments")] |
| | 0 | 81 | | public IList<MetricsSegmentInfo> Segments { get; set; } |
| | | 82 | | |
| | | 83 | | } |
| | | 84 | | } |