< Summary

Class:Azure.ResourceManager.Compute.Models.RequestRateByIntervalInput
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RequestRateByIntervalInput.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RequestRateByIntervalInput.Serialization.cs
Covered lines:0
Uncovered lines:29
Coverable lines:29
Total lines:90
Line coverage:0% (0 of 29)
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%
get_IntervalLength()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RequestRateByIntervalInput.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 getRequestRateByInterval Api. </summary>
 13    public partial class RequestRateByIntervalInput : LogAnalyticsInputBase
 14    {
 15        /// <summary> Initializes a new instance of RequestRateByIntervalInput. </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>
 19        /// <param name="intervalLength"> Interval value in minutes used to create LogAnalytics call rate logs. </param>
 020        public RequestRateByIntervalInput(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime, In
 21        {
 022            if (blobContainerSasUri == null)
 23            {
 024                throw new ArgumentNullException(nameof(blobContainerSasUri));
 25            }
 26
 027            IntervalLength = intervalLength;
 028        }
 29
 30        /// <summary> Initializes a new instance of RequestRateByIntervalInput. </summary>
 31        /// <param name="blobContainerSasUri"> SAS Uri of the logging blob container to which LogAnalytics Api writes ou
 32        /// <param name="fromTime"> From time of the query. </param>
 33        /// <param name="toTime"> To time of the query. </param>
 34        /// <param name="groupByThrottlePolicy"> Group query result by Throttle Policy applied. </param>
 35        /// <param name="groupByOperationName"> Group query result by Operation Name. </param>
 36        /// <param name="groupByResourceName"> Group query result by Resource Name. </param>
 37        /// <param name="intervalLength"> Interval value in minutes used to create LogAnalytics call rate logs. </param>
 038        internal RequestRateByIntervalInput(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime, 
 39        {
 040            IntervalLength = intervalLength;
 041        }
 42
 43        /// <summary> Interval value in minutes used to create LogAnalytics call rate logs. </summary>
 044        public IntervalInMins IntervalLength { get; }
 45    }
 46}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\RequestRateByIntervalInput.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 RequestRateByIntervalInput : IUtf8JsonSerializable
 14    {
 15        void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 16        {
 017            writer.WriteStartObject();
 018            writer.WritePropertyName("intervalLength");
 019            writer.WriteStringValue(IntervalLength.ToSerialString());
 020            writer.WritePropertyName("blobContainerSasUri");
 021            writer.WriteStringValue(BlobContainerSasUri);
 022            writer.WritePropertyName("fromTime");
 023            writer.WriteStringValue(FromTime, "O");
 024            writer.WritePropertyName("toTime");
 025            writer.WriteStringValue(ToTime, "O");
 026            if (GroupByThrottlePolicy != null)
 27            {
 028                writer.WritePropertyName("groupByThrottlePolicy");
 029                writer.WriteBooleanValue(GroupByThrottlePolicy.Value);
 30            }
 031            if (GroupByOperationName != null)
 32            {
 033                writer.WritePropertyName("groupByOperationName");
 034                writer.WriteBooleanValue(GroupByOperationName.Value);
 35            }
 036            if (GroupByResourceName != null)
 37            {
 038                writer.WritePropertyName("groupByResourceName");
 039                writer.WriteBooleanValue(GroupByResourceName.Value);
 40            }
 041            writer.WriteEndObject();
 042        }
 43    }
 44}