| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace 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> |
| 0 | 19 | | public LogAnalyticsInputBase(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime) |
| | 20 | | { |
| 0 | 21 | | if (blobContainerSasUri == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(blobContainerSasUri)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | BlobContainerSasUri = blobContainerSasUri; |
| 0 | 27 | | FromTime = fromTime; |
| 0 | 28 | | ToTime = toTime; |
| 0 | 29 | | } |
| | 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> |
| 0 | 38 | | internal LogAnalyticsInputBase(string blobContainerSasUri, DateTimeOffset fromTime, DateTimeOffset toTime, bool? |
| | 39 | | { |
| 0 | 40 | | BlobContainerSasUri = blobContainerSasUri; |
| 0 | 41 | | FromTime = fromTime; |
| 0 | 42 | | ToTime = toTime; |
| 0 | 43 | | GroupByThrottlePolicy = groupByThrottlePolicy; |
| 0 | 44 | | GroupByOperationName = groupByOperationName; |
| 0 | 45 | | GroupByResourceName = groupByResourceName; |
| 0 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to. </summary> |
| 0 | 49 | | public string BlobContainerSasUri { get; } |
| | 50 | | /// <summary> From time of the query. </summary> |
| 0 | 51 | | public DateTimeOffset FromTime { get; } |
| | 52 | | /// <summary> To time of the query. </summary> |
| 0 | 53 | | public DateTimeOffset ToTime { get; } |
| | 54 | | /// <summary> Group query result by Throttle Policy applied. </summary> |
| 0 | 55 | | public bool? GroupByThrottlePolicy { get; set; } |
| | 56 | | /// <summary> Group query result by Operation Name. </summary> |
| 0 | 57 | | public bool? GroupByOperationName { get; set; } |
| | 58 | | /// <summary> Group query result by Resource Name. </summary> |
| 0 | 59 | | public bool? GroupByResourceName { get; set; } |
| | 60 | | } |
| | 61 | | } |