< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Name()-100%100%
get_Value()-100%100%
get_ValueSum()-100%100%
get_ValueCount()-100%100%
get_ValueMin()-100%100%
get_ValueMax()-100%100%
get_ValueStdDev()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\EventsCustomMetricInfo.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.Linq;
 15
 16    /// <summary>
 17    /// The custom metric info
 18    /// </summary>
 19    public partial class EventsCustomMetricInfo
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the EventsCustomMetricInfo class.
 23        /// </summary>
 1324        public EventsCustomMetricInfo()
 25        {
 26            CustomInit();
 1327        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the EventsCustomMetricInfo class.
 31        /// </summary>
 32        /// <param name="name">The name of the custom metric</param>
 33        /// <param name="value">The value of the custom metric</param>
 34        /// <param name="valueSum">The sum of the custom metric</param>
 35        /// <param name="valueCount">The count of the custom metric</param>
 36        /// <param name="valueMin">The minimum value of the custom
 37        /// metric</param>
 38        /// <param name="valueMax">The maximum value of the custom
 39        /// metric</param>
 40        /// <param name="valueStdDev">The standard deviation of the custom
 41        /// metric</param>
 042        public EventsCustomMetricInfo(string name = default(string), double? value = default(double?), double? valueSum 
 43        {
 044            Name = name;
 045            Value = value;
 046            ValueSum = valueSum;
 047            ValueCount = valueCount;
 048            ValueMin = valueMin;
 049            ValueMax = valueMax;
 050            ValueStdDev = valueStdDev;
 51            CustomInit();
 052        }
 53
 54        /// <summary>
 55        /// An initialization method that performs custom operations like setting defaults
 56        /// </summary>
 57        partial void CustomInit();
 58
 59        /// <summary>
 60        /// Gets or sets the name of the custom metric
 61        /// </summary>
 62        [JsonProperty(PropertyName = "name")]
 2863        public string Name { get; set; }
 64
 65        /// <summary>
 66        /// Gets or sets the value of the custom metric
 67        /// </summary>
 68        [JsonProperty(PropertyName = "value")]
 1769        public double? Value { get; set; }
 70
 71        /// <summary>
 72        /// Gets or sets the sum of the custom metric
 73        /// </summary>
 74        [JsonProperty(PropertyName = "valueSum")]
 1775        public double? ValueSum { get; set; }
 76
 77        /// <summary>
 78        /// Gets or sets the count of the custom metric
 79        /// </summary>
 80        [JsonProperty(PropertyName = "valueCount")]
 1781        public int? ValueCount { get; set; }
 82
 83        /// <summary>
 84        /// Gets or sets the minimum value of the custom metric
 85        /// </summary>
 86        [JsonProperty(PropertyName = "valueMin")]
 1787        public double? ValueMin { get; set; }
 88
 89        /// <summary>
 90        /// Gets or sets the maximum value of the custom metric
 91        /// </summary>
 92        [JsonProperty(PropertyName = "valueMax")]
 1793        public double? ValueMax { get; set; }
 94
 95        /// <summary>
 96        /// Gets or sets the standard deviation of the custom metric
 97        /// </summary>
 98        [JsonProperty(PropertyName = "valueStdDev")]
 1799        public double? ValueStdDev { get; set; }
 100
 101    }
 102}