diff --git a/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs b/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs index 29ce562e92e3..c08a422c8405 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs @@ -99,7 +99,7 @@ protected LogsQueryClient() /// /// The workspace id to include in the query (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). /// The query text to execute. - /// The timespan over which to query data. Logs would be filtered to include entries produced starting at Now - timeSpan. + /// The timespan over which to query data. Logs will be filtered to include entries produced starting at Now - timeSpan. /// The to configure the query. /// The to use. /// Query results mapped to a type . @@ -131,7 +131,7 @@ public virtual Response> Query(string workspaceId, string qu /// /// The workspace id to include in the query (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). /// The query text to execute. - /// The timespan over which to query data. Logs would be filtered to include entries produced starting at Now - timeSpan. + /// The timespan over which to query data. Logs will be filtered to include entries produced starting at Now - timeSpan. /// The to configure the query. /// The to use. /// Query results mapped to a type . @@ -147,7 +147,7 @@ public virtual async Task>> QueryAsync(string works /// /// The workspace id to include in the query (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). /// The query text to execute. - /// The timespan over which to query data. Logs would be filtered to include entries produced starting at Now - timeSpan. + /// The timespan over which to query data. Logs will be filtered to include entries produced starting at Now - timeSpan. /// The to configure the query. /// The to use. /// The containing the query results. @@ -171,7 +171,7 @@ public virtual Response Query(string workspaceId, string query, /// /// The workspace id to include in the query (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). /// The query text to execute. - /// The timespan over which to query data. Logs would be filtered to include entries produced starting at Now - timeSpan. + /// The timespan over which to query data. Logs will be filtered to include entries produced starting at Now - timeSpan. /// The to configure the query. /// The to use. /// The with the query results. @@ -299,7 +299,7 @@ public virtual async Task> QueryBatchAsync(LogsB } /// - /// Create a Kusto query from an interpolated string. The interpolated values will be quoted and escaped as necessary. + /// Create a Kusto query from an interpolated string. The interpolated values will be quoted and escaped as necessary. /// /// An interpolated query string. /// A valid Kusto query. @@ -314,8 +314,8 @@ public static string CreateQuery(FormattableString filter) { // Null null => throw new ArgumentException( - $"Unable to convert argument {i} to an Kusto literal. " + - $"Unable to format an untyped null value, please use typed-null expression " + + $"Unable to convert argument {i} to a Kusto literal. " + + $"Unable to format an untyped null value. Please use typed-null expression " + $"(bool(null), datetime(null), dynamic(null), guid(null), int(null), long(null), real(null), double(null), time(null))"), // Boolean @@ -353,7 +353,7 @@ public static string CreateQuery(FormattableString filter) // Everything else object x => throw new ArgumentException( - $"Unable to convert argument {i} from type {x.GetType()} to an Kusto literal.") + $"Unable to convert argument {i} from type {x.GetType()} to a Kusto literal.") }; } diff --git a/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClientOptions.cs b/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClientOptions.cs index 1d875e405265..906d9c6aa06a 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClientOptions.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/LogsQueryClientOptions.cs @@ -45,7 +45,7 @@ public enum ServiceVersion } /// - /// Gets or sets the authentication scope to use for authentication with Azure Active Directory. The default scope would be used if the property is null. + /// Gets or sets the authentication scope to use for authentication with Azure Active Directory. The default scope will be used if the property is null. /// public string AuthenticationScope { get; set; } @@ -58,4 +58,4 @@ internal string GetVersionString() }; } } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs index 4733317509ae..5d20aaa8e93e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClient.cs @@ -12,7 +12,7 @@ namespace Azure.Monitor.Query { /// - /// The allows to query the Azure Monitor Metrics service. + /// The allows you to query the Azure Monitor Metrics service. /// public class MetricsQueryClient { diff --git a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClientOptions.cs b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClientOptions.cs index 007936248893..5f25d9c09856 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClientOptions.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryClientOptions.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Collections; using Azure.Core; namespace Azure.Monitor.Query @@ -44,4 +43,4 @@ public enum ServiceVersion #pragma warning restore CA1707 // Identifiers should not contain underscores } } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryOptions.cs b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryOptions.cs index 2e42910dc599..3f4621aa6511 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryOptions.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/MetricsQueryOptions.cs @@ -14,12 +14,12 @@ namespace Azure.Monitor.Query public class MetricsQueryOptions { /// - /// Gets or sets the time span over which the metric would be queried. + /// Gets or sets the timespan over which the metric will be queried. /// public DateTimeRange? TimeSpan { get; set; } /// - /// Gets ot sets the interval to sample metrics at. + /// Gets or sets the interval at which to sample metrics. /// public TimeSpan? Interval { get; set; } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQuery.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQuery.cs index bb9d616c6110..5d51248f510c 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQuery.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQuery.cs @@ -9,7 +9,7 @@ namespace Azure.Monitor.Query { /// - /// Represents a batch that consists out of multiple log queries. + /// Represents a batch that consists of multiple log queries. /// public class LogsBatchQuery { diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQueryResults.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQueryResults.cs index 7ebeda06b724..5041fdcc4c94 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQueryResults.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsBatchQueryResults.cs @@ -41,7 +41,7 @@ public partial class LogsBatchQueryResults /// The query identifier returned from the . /// The with the query results. /// When the query with was not part of the batch. - /// When the query failed. + /// When the query failed. public LogsQueryResult GetResult(string queryId) { BatchQueryResponse result = Responses.SingleOrDefault(r => r.Id == queryId); diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsColumnType.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsColumnType.cs index 49201cf2a208..e070866222ae 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsColumnType.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsColumnType.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Azure.Core; - namespace Azure.Monitor.Query.Models { public partial struct LogsColumnType @@ -19,4 +17,4 @@ public partial struct LogsColumnType internal const string BoolTypeValue = "bool"; internal const string DynamicValueTypeValue = "dynamic"; } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResultRow.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResultRow.cs index 76d563235d85..97b0aaad6546 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResultRow.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResultRow.cs @@ -101,10 +101,10 @@ internal LogsQueryResultRow(Dictionary columnMap, IReadOnlyList new BinaryData(_row[index].GetString()); /// - /// Returns true if the value of the column at the specified index is null, otherwise false. + /// Returns true if the value of the column at the specified index is null, otherwise false. /// /// The column index. - /// True if the value is null, otherwise false. + /// true if the value is null, otherwise false. public bool IsNull(int index) => _row[index].ValueKind == JsonValueKind.Null; /// @@ -181,7 +181,7 @@ internal LogsQueryResultRow(Dictionary columnMap, IReadOnlyList /// The column name. - /// True if the value is null, otherwise false. + /// true if the value is null, otherwise false. public bool IsNull(string name) => IsNull(_columnMap[name]); /// @@ -278,4 +278,4 @@ public override string ToString() return _row.ToString(); } } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResults.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResults.cs index f5fce17dd131..08d6de9dc141 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResults.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/LogsQueryResults.cs @@ -27,18 +27,18 @@ public partial class LogsQueryResult public LogsQueryResultTable PrimaryTable => Tables.Single(t => t.Name == "PrimaryResult"); /// - /// Returns the query statistics if the is set to true. Null otherwise. + /// Returns the query statistics if the is set to true. null otherwise. /// public BinaryData GetStatistics() => _statistics.ValueKind == JsonValueKind.Undefined ? null : new BinaryData(_statistics.ToString()); /// - /// Returns the query visualization if the is set to true. Null otherwise. + /// Returns the query visualization if the is set to true. null otherwise. /// public BinaryData GetVisualization() => _visualization.ValueKind == JsonValueKind.Undefined ? null : new BinaryData(_visualization.ToString()); /// - /// Get's the error that occured during query processing. The value would be null if the query succeeds. + /// Gets the error that occurred during query processing. The value is null if the query succeeds. /// public ResponseError Error => _error.ValueKind == JsonValueKind.Undefined ? null : JsonSerializer.Deserialize(_error.GetRawText()); } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/Metric.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/Metric.cs index 921391865cd0..5037746176c6 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/Metric.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/Metric.cs @@ -21,13 +21,13 @@ public partial class Metric /// The name of the metric. public string Name => LocalizedName.Value; - /// the time series returned when a data query is performed. + /// The time series returned when a data query is performed. [CodeGenMember("Timeseries")] public IReadOnlyList TimeSeries { get; } /// - /// Gets the error that occured while querying the metric. + /// Gets the error that occurred while querying the metric. /// public ResponseError Error => ErrorCode == SuccessErrorCode ? null : new ResponseError(ErrorCode, ErrorMessage, null, null, null); } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/MetricAggregationType.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/MetricAggregationType.cs index 816a81a63b2b..67818cdde5ff 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/MetricAggregationType.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/MetricAggregationType.cs @@ -5,7 +5,7 @@ namespace Azure.Monitor.Query.Models { - /// the aggregation type of the metric. + /// The aggregation type of the metric. [CodeGenModel("AggregationType")] public enum MetricAggregationType { @@ -22,4 +22,4 @@ public enum MetricAggregationType /// Total. Total } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/MetricQueryResult.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/MetricQueryResult.cs index 1eeecdf15951..11536c4fa7a5 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/MetricQueryResult.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/MetricQueryResult.cs @@ -22,8 +22,8 @@ public partial class MetricQueryResult /// public DateTimeRange TimeSpan => DateTimeRange.Parse(_timespan); - /// The region of the resource been queried for metrics. + /// The region of the resource being queried for metrics. [CodeGenMember("Resourceregion")] public string ResourceRegion { get; } } -} \ No newline at end of file +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/MetricUnit.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/MetricUnit.cs index f5b056c78ac1..766a6b8ae1ff 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/MetricUnit.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/MetricUnit.cs @@ -5,9 +5,9 @@ namespace Azure.Monitor.Query.Models { - /// the unit of the metric. + /// The unit of the metric. [CodeGenModel("Unit")] public partial struct MetricUnit { } -} \ No newline at end of file +}