< Summary

Class:Azure.ResourceManager.Network.Models.AzureReachabilityReportLatencyInfo
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportLatencyInfo.cs
C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportLatencyInfo.Serialization.cs
Covered lines:0
Uncovered lines:19
Coverable lines:19
Total lines:78
Line coverage:0% (0 of 19)
Covered branches:0
Total branches:10
Branch coverage:0% (0 of 10)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-0%100%
.ctor(...)-0%100%
get_TimeStamp()-0%100%
get_Score()-0%100%
DeserializeAzureReachabilityReportLatencyInfo(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportLatencyInfo.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9
 10namespace Azure.ResourceManager.Network.Models
 11{
 12    /// <summary> Details on latency for a time series. </summary>
 13    public partial class AzureReachabilityReportLatencyInfo
 14    {
 15        /// <summary> Initializes a new instance of AzureReachabilityReportLatencyInfo. </summary>
 016        internal AzureReachabilityReportLatencyInfo()
 17        {
 018        }
 19
 20        /// <summary> Initializes a new instance of AzureReachabilityReportLatencyInfo. </summary>
 21        /// <param name="timeStamp"> The time stamp. </param>
 22        /// <param name="score"> The relative latency score between 1 and 100, higher values indicating a faster connect
 023        internal AzureReachabilityReportLatencyInfo(DateTimeOffset? timeStamp, int? score)
 24        {
 025            TimeStamp = timeStamp;
 026            Score = score;
 027        }
 28
 29        /// <summary> The time stamp. </summary>
 030        public DateTimeOffset? TimeStamp { get; }
 31        /// <summary> The relative latency score between 1 and 100, higher values indicating a faster connection. </summ
 032        public int? Score { get; }
 33    }
 34}

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\AzureReachabilityReportLatencyInfo.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Text.Json;
 10using Azure.Core;
 11
 12namespace Azure.ResourceManager.Network.Models
 13{
 14    public partial class AzureReachabilityReportLatencyInfo
 15    {
 16        internal static AzureReachabilityReportLatencyInfo DeserializeAzureReachabilityReportLatencyInfo(JsonElement ele
 17        {
 018            DateTimeOffset? timeStamp = default;
 019            int? score = default;
 020            foreach (var property in element.EnumerateObject())
 21            {
 022                if (property.NameEquals("timeStamp"))
 23                {
 024                    if (property.Value.ValueKind == JsonValueKind.Null)
 25                    {
 26                        continue;
 27                    }
 028                    timeStamp = property.Value.GetDateTimeOffset("O");
 029                    continue;
 30                }
 031                if (property.NameEquals("score"))
 32                {
 033                    if (property.Value.ValueKind == JsonValueKind.Null)
 34                    {
 35                        continue;
 36                    }
 037                    score = property.Value.GetInt32();
 38                    continue;
 39                }
 40            }
 041            return new AzureReachabilityReportLatencyInfo(timeStamp, score);
 42        }
 43    }
 44}