< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_Value()-100%100%
get_Name()-100%100%
get_Category()-100%100%
get_Counter()-100%100%
get_InstanceName()-0%100%
get_Instance()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\applicationinsights\Microsoft.Azure.ApplicationInsights.Query\src\Generated\Models\EventsPerformanceCounterInfo.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 performance counter info
 18    /// </summary>
 19    public partial class EventsPerformanceCounterInfo
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the EventsPerformanceCounterInfo
 23        /// class.
 24        /// </summary>
 1325        public EventsPerformanceCounterInfo()
 26        {
 27            CustomInit();
 1328        }
 29
 30        /// <summary>
 31        /// Initializes a new instance of the EventsPerformanceCounterInfo
 32        /// class.
 33        /// </summary>
 34        /// <param name="value">The value of the performance counter</param>
 35        /// <param name="name">The name of the performance counter</param>
 36        /// <param name="category">The category of the performance
 37        /// counter</param>
 38        /// <param name="counter">The counter of the performance
 39        /// counter</param>
 40        /// <param name="instanceName">The instance name of the performance
 41        /// counter</param>
 42        /// <param name="instance">The instance of the performance
 43        /// counter</param>
 044        public EventsPerformanceCounterInfo(double? value = default(double?), string name = default(string), string cate
 45        {
 046            Value = value;
 047            Name = name;
 048            Category = category;
 049            Counter = counter;
 050            InstanceName = instanceName;
 051            Instance = instance;
 52            CustomInit();
 053        }
 54
 55        /// <summary>
 56        /// An initialization method that performs custom operations like setting defaults
 57        /// </summary>
 58        partial void CustomInit();
 59
 60        /// <summary>
 61        /// Gets or sets the value of the performance counter
 62        /// </summary>
 63        [JsonProperty(PropertyName = "value")]
 1764        public double? Value { get; set; }
 65
 66        /// <summary>
 67        /// Gets or sets the name of the performance counter
 68        /// </summary>
 69        [JsonProperty(PropertyName = "name")]
 2870        public string Name { get; set; }
 71
 72        /// <summary>
 73        /// Gets or sets the category of the performance counter
 74        /// </summary>
 75        [JsonProperty(PropertyName = "category")]
 2876        public string Category { get; set; }
 77
 78        /// <summary>
 79        /// Gets or sets the counter of the performance counter
 80        /// </summary>
 81        [JsonProperty(PropertyName = "counter")]
 2882        public string Counter { get; set; }
 83
 84        /// <summary>
 85        /// Gets or sets the instance name of the performance counter
 86        /// </summary>
 87        [JsonProperty(PropertyName = "instanceName")]
 088        public string InstanceName { get; set; }
 89
 90        /// <summary>
 91        /// Gets or sets the instance of the performance counter
 92        /// </summary>
 93        [JsonProperty(PropertyName = "instance")]
 2894        public string Instance { get; set; }
 95
 96    }
 97}