< Summary

Class:Azure.ResourceManager.Compute.Models.LogAnalyticsInputBase
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\LogAnalyticsInputBase.cs
C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\LogAnalyticsInputBase.Serialization.cs
Covered lines:0
Uncovered lines:39
Coverable lines:39
Total lines:103
Line coverage:0% (0 of 39)
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_BlobContainerSasUri()-0%100%
get_FromTime()-0%100%
get_ToTime()-0%100%
get_GroupByThrottlePolicy()-0%100%
get_GroupByOperationName()-0%100%
get_GroupByResourceName()-0%100%
Azure.Core.IUtf8JsonSerializable.Write(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\LogAnalyticsInputBase.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 input base class for LogAnalytics Api. </summary>
 13    public partial class LogAnalyticsInputBase
 14    {
 15        /// <summary> Initializes a new instance of LogAnalyticsInputBase. </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 LogAnalyticsInputBase(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime)
 20        {
 021            if (blobContainerSasUri == null)
 22            {
 023                throw new ArgumentNullException(nameof(blobContainerSasUri));
 24            }
 25
 026            BlobContainerSasUri = blobContainerSasUri;
 027            FromTime = fromTime;
 028            ToTime = toTime;
 029        }
 30
 31        /// <summary> Initializes a new instance of LogAnalyticsInputBase. </summary>
 32        /// <param name="blobContainerSasUri"> SAS Uri of the logging blob container to which LogAnalytics Api writes ou
 33        /// <param name="fromTime"> From time of the query. </param>
 34        /// <param name="toTime"> To time of the query. </param>
 35        /// <param name="groupByThrottlePolicy"> Group query result by Throttle Policy applied. </param>
 36        /// <param name="groupByOperationName"> Group query result by Operation Name. </param>
 37        /// <param name="groupByResourceName"> Group query result by Resource Name. </param>
 038        internal LogAnalyticsInputBase(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime, bool?
 39        {
 040            BlobContainerSasUri = blobContainerSasUri;
 041            FromTime = fromTime;
 042            ToTime = toTime;
 043            GroupByThrottlePolicy = groupByThrottlePolicy;
 044            GroupByOperationName = groupByOperationName;
 045            GroupByResourceName = groupByResourceName;
 046        }
 47
 48        /// <summary> SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. </summary>
 049        public string BlobContainerSasUri { get; }
 50        /// <summary> From time of the query. </summary>
 051        public DateTimeOffset FromTime { get; }
 52        /// <summary> To time of the query. </summary>
 053        public DateTimeOffset ToTime { get; }
 54        /// <summary> Group query result by Throttle Policy applied. </summary>
 055        public bool? GroupByThrottlePolicy { get; set; }
 56        /// <summary> Group query result by Operation Name. </summary>
 057        public bool? GroupByOperationName { get; set; }
 58        /// <summary> Group query result by Resource Name. </summary>
 059        public bool? GroupByResourceName { get; set; }
 60    }
 61}

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\LogAnalyticsInputBase.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 LogAnalyticsInputBase : 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}