< Summary

Class:Microsoft.Azure.ApplicationInsights.Query.Models.MetricsSegmentInfo
Assembly:Microsoft.Azure.ApplicationInsights.Query
File(s):C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Customized\Models\MetricsSegmentInfo.cs
C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\MetricsSegmentInfo.cs
Covered lines:0
Uncovered lines:13
Coverable lines:13
Total lines:96
Line coverage:0% (0 of 13)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
GetAdditionalProperties()-0%100%
.ctor()-0%100%
.ctor(...)-0%100%
get_AdditionalProperties()-0%100%
get_Start()-0%100%
get_End()-0%100%
get_Segments()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Customized\Models\MetricsSegmentInfo.cs

#LineLine coverage
 1using System.Collections.Generic;
 2
 3namespace Microsoft.Azure.ApplicationInsights.Query.Models
 4{
 5    public partial class MetricsSegmentInfo : BaseSegmentInfo
 6    {
 7        internal override IDictionary<string, object> GetAdditionalProperties()
 8        {
 09            return AdditionalProperties;
 10        }
 11    }
 12}

C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\MetricsSegmentInfo.cs

#LineLine coverage
 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
 11namespace 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>
 026        public MetricsSegmentInfo()
 27        {
 28            CustomInit();
 029        }
 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>
 042        public MetricsSegmentInfo(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>
 43        {
 044            AdditionalProperties = additionalProperties;
 045            Start = start;
 046            End = end;
 047            Segments = segments;
 48            CustomInit();
 049        }
 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]
 061        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")]
 068        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")]
 075        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")]
 081        public IList<MetricsSegmentInfo> Segments { get; set; }
 82
 83    }
 84}