< Summary

Class:Microsoft.Azure.Search.Models.ServiceCounters
Assembly:Microsoft.Azure.Search.Service
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\ServiceCounters.cs
Covered lines:8
Uncovered lines:8
Coverable lines:16
Total lines:96
Line coverage:50% (8 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_DocumentCounter()-100%100%
get_IndexCounter()-100%100%
get_IndexerCounter()-100%100%
get_DataSourceCounter()-100%100%
get_StorageSizeCounter()-100%100%
get_SynonymMapCounter()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Service\src\Generated\Models\ServiceCounters.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.Search.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Represents service-level resource counters and quotas.
 18    /// </summary>
 19    public partial class ServiceCounters
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the ServiceCounters class.
 23        /// </summary>
 424        public ServiceCounters()
 25        {
 26            CustomInit();
 427        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the ServiceCounters class.
 31        /// </summary>
 32        /// <param name="documentCounter">Total number of documents across all
 33        /// indexes in the service.</param>
 34        /// <param name="indexCounter">Total number of indexes.</param>
 35        /// <param name="indexerCounter">Total number of indexers.</param>
 36        /// <param name="dataSourceCounter">Total number of data
 37        /// sources.</param>
 38        /// <param name="storageSizeCounter">Total size of used storage in
 39        /// bytes.</param>
 40        /// <param name="synonymMapCounter">Total number of synonym
 41        /// maps.</param>
 042        public ServiceCounters(ResourceCounter documentCounter = default(ResourceCounter), ResourceCounter indexCounter 
 43        {
 044            DocumentCounter = documentCounter;
 045            IndexCounter = indexCounter;
 046            IndexerCounter = indexerCounter;
 047            DataSourceCounter = dataSourceCounter;
 048            StorageSizeCounter = storageSizeCounter;
 049            SynonymMapCounter = synonymMapCounter;
 50            CustomInit();
 051        }
 52
 53        /// <summary>
 54        /// An initialization method that performs custom operations like setting defaults
 55        /// </summary>
 56        partial void CustomInit();
 57
 58        /// <summary>
 59        /// Gets or sets total number of documents across all indexes in the
 60        /// service.
 61        /// </summary>
 62        [JsonProperty(PropertyName = "documentCount")]
 1063        public ResourceCounter DocumentCounter { get; set; }
 64
 65        /// <summary>
 66        /// Gets or sets total number of indexes.
 67        /// </summary>
 68        [JsonProperty(PropertyName = "indexesCount")]
 1069        public ResourceCounter IndexCounter { get; set; }
 70
 71        /// <summary>
 72        /// Gets or sets total number of indexers.
 73        /// </summary>
 74        [JsonProperty(PropertyName = "indexersCount")]
 1075        public ResourceCounter IndexerCounter { get; set; }
 76
 77        /// <summary>
 78        /// Gets or sets total number of data sources.
 79        /// </summary>
 80        [JsonProperty(PropertyName = "dataSourcesCount")]
 1081        public ResourceCounter DataSourceCounter { get; set; }
 82
 83        /// <summary>
 84        /// Gets or sets total size of used storage in bytes.
 85        /// </summary>
 86        [JsonProperty(PropertyName = "storageSize")]
 1087        public ResourceCounter StorageSizeCounter { get; set; }
 88
 89        /// <summary>
 90        /// Gets or sets total number of synonym maps.
 91        /// </summary>
 92        [JsonProperty(PropertyName = "synonymMaps")]
 1093        public ResourceCounter SynonymMapCounter { get; set; }
 94
 95    }
 96}