< Summary

Class:Microsoft.Azure.ApplicationInsights.Query.Models.MetricsResultInfo
Assembly:Microsoft.Azure.ApplicationInsights.Query
File(s):C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Customized\Models\MetricsResultInfo.cs
C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\MetricsResultInfo.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:102
Line coverage:0% (0 of 15)
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_Interval()-0%100%
get_Segments()-0%100%

File(s)

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

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

C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\MetricsResultInfo.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 result data.
 20    /// </summary>
 21    public partial class MetricsResultInfo
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the MetricsResultInfo class.
 25        /// </summary>
 026        public MetricsResultInfo()
 27        {
 28            CustomInit();
 029        }
 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>
 042        public MetricsResultInfo(IDictionary<string, object> additionalProperties = default(IDictionary<string, object>)
 43        {
 044            AdditionalProperties = additionalProperties;
 045            Start = start;
 046            End = end;
 047            Interval = interval;
 048            Segments = segments;
 49            CustomInit();
 050        }
 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]
 062        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")]
 068        public System.DateTime? Start { get; set; }
 69
 70        /// <summary>
 71        /// Gets or sets start time of the metric.
 72        /// </summary>
 73        [JsonProperty(PropertyName = "end")]
 074        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")]
 080        public System.TimeSpan? Interval { get; set; }
 81
 82        /// <summary>
 83        /// Gets or sets segmented metric data (if segmented).
 84        /// </summary>
 85        [JsonProperty(PropertyName = "segments")]
 086        public IList<MetricsSegmentInfo> Segments { get; set; }
 87
 88    }
 89}