< Summary

Class:Azure.ResourceManager.Compute.Models.ThrottledRequestsInput
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ThrottledRequestsInput.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ThrottledRequestsInput.Serialization.cs
Covered lines:0
Uncovered lines:24
Coverable lines:24
Total lines:80
Line coverage:0% (0 of 24)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
.ctor(...)-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ThrottledRequestsInput.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.Compute.Models
 11{
 12    /// <summary> Api request input for LogAnalytics getThrottledRequests Api. </summary>
 13    public partial class ThrottledRequestsInput : LogAnalyticsInputBase
 14    {
 15        /// <summary> Initializes a new instance of ThrottledRequestsInput. </summary>
 16        /// <param name="blobContainerSasUri"> SAS Uri of the logging blob container to which LogAnalytics Api writes ou
 17        /// <param name="fromTime"> From time of the query. </param>
 18        /// <param name="toTime"> To time of the query. </param>
 019        public ThrottledRequestsInput(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime) : base
 20        {
 021            if (blobContainerSasUri == null)
 22            {
 023                throw new ArgumentNullException(nameof(blobContainerSasUri));
 24            }
 025        }
 26
 27        /// <summary> Initializes a new instance of ThrottledRequestsInput. </summary>
 28        /// <param name="blobContainerSasUri"> SAS Uri of the logging blob container to which LogAnalytics Api writes ou
 29        /// <param name="fromTime"> From time of the query. </param>
 30        /// <param name="toTime"> To time of the query. </param>
 31        /// <param name="groupByThrottlePolicy"> Group query result by Throttle Policy applied. </param>
 32        /// <param name="groupByOperationName"> Group query result by Operation Name. </param>
 33        /// <param name="groupByResourceName"> Group query result by Resource Name. </param>
 034        internal ThrottledRequestsInput(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime, bool
 35        {
 036        }
 37    }
 38}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\ThrottledRequestsInput.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.Text.Json;
 9using Azure.Core;
 10
 11namespace Azure.ResourceManager.Compute.Models
 12{
 13    public partial class ThrottledRequestsInput : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("blobContainerSasUri");
 019            writer.WriteStringValue(BlobContainerSasUri);
 020            writer.WritePropertyName("fromTime");
 021            writer.WriteStringValue(FromTime, "O");
 022            writer.WritePropertyName("toTime");
 023            writer.WriteStringValue(ToTime, "O");
 024            if (GroupByThrottlePolicy != null)
 25            {
 026                writer.WritePropertyName("groupByThrottlePolicy");
 027                writer.WriteBooleanValue(GroupByThrottlePolicy.Value);
 28            }
 029            if (GroupByOperationName != null)
 30            {
 031                writer.WritePropertyName("groupByOperationName");
 032                writer.WriteBooleanValue(GroupByOperationName.Value);
 33            }
 034            if (GroupByResourceName != null)
 35            {
 036                writer.WritePropertyName("groupByResourceName");
 037                writer.WriteBooleanValue(GroupByResourceName.Value);
 38            }
 039            writer.WriteEndObject();
 040        }
 41    }
 42}