You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/monitor/Azure.Monitor.Query/src/LogsQueryClient.cs
+38-17Lines changed: 38 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ public LogsQueryClient(Uri endpoint, TokenCredential credential, LogsQueryClient
79
79
}
80
80
81
81
/// <summary>
82
-
/// Initializes a new instance of <see cref="LogsQueryClient"/> for mocking.
82
+
/// Creates an instance of <see cref="LogsQueryClient"/> to support <see href="https://aka.ms/azsdk/net/mocking">mocking</see>.
83
83
/// </summary>
84
84
protectedLogsQueryClient()
85
85
{
@@ -113,12 +113,15 @@ protected LogsQueryClient()
113
113
/// </code>
114
114
/// </example>
115
115
/// </summary>
116
-
/// <param name="workspaceId">The workspace id to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
117
-
/// <param name="query">The Kusto query to execute.</param>
118
-
/// <param name="timeRange">The timespan over which to query data. Logs will be filtered to include entries produced starting at <c>Now - timeSpan</c>. </param>
116
+
/// <param name="workspaceId">The workspace ID to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
117
+
/// <param name="query">The Kusto query to fetch the logs.</param>
118
+
/// <param name="timeRange">The time period for which the logs should be looked up.</param>
119
119
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
120
120
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
121
121
/// <returns>Query results mapped to a type <typeparamref name="T"/>.</returns>
122
+
/// <remarks>
123
+
/// When the <paramref name="timeRange"/> argument is <see cref="QueryTimeRange.All"/> and the <paramref name="query"/> argument contains a time range filter, the underlying service uses the time range specified in <paramref name="query"/>.
@@ -149,12 +152,15 @@ public virtual Response<IReadOnlyList<T>> QueryWorkspace<T>(string workspaceId,
149
152
/// </code>
150
153
/// </example>
151
154
/// </summary>
152
-
/// <param name="workspaceId">The workspace id to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
153
-
/// <param name="query">The Kusto query to execute.</param>
154
-
/// <param name="timeRange">The timespan over which to query data. Logs will be filtered to include entries produced starting at <c>Now - timeSpan</c>. </param>
155
+
/// <param name="workspaceId">The workspace ID to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
156
+
/// <param name="query">The Kusto query to fetch the logs.</param>
157
+
/// <param name="timeRange">The time period for which the logs should be looked up.</param>
155
158
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
156
159
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
157
160
/// <returns>Query results mapped to a type <typeparamref name="T"/>.</returns>
161
+
/// <remarks>
162
+
/// When the <paramref name="timeRange"/> argument is <see cref="QueryTimeRange.All"/> and the <paramref name="query"/> argument contains a time range filter, the underlying service uses the time range specified in <paramref name="query"/>.
@@ -165,12 +171,15 @@ public virtual async Task<Response<IReadOnlyList<T>>> QueryWorkspaceAsync<T>(str
165
171
/// <summary>
166
172
/// Executes the logs query.
167
173
/// </summary>
168
-
/// <param name="workspaceId">The workspace id to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
169
-
/// <param name="query">The Kusto query to execute.</param>
170
-
/// <param name="timeRange">The timespan over which to query data. Logs will be filtered to include entries produced starting at <c>Now - timeSpan</c>. </param>
174
+
/// <param name="workspaceId">The workspace ID to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
175
+
/// <param name="query">The Kusto query to fetch the logs.</param>
176
+
/// <param name="timeRange">The time period for which the logs should be looked up.</param>
171
177
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
172
178
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
173
179
/// <returns>The <see cref="LogsQueryResult"/> containing the query results.</returns>
180
+
/// <remarks>
181
+
/// When the <paramref name="timeRange"/> argument is <see cref="QueryTimeRange.All"/> and the <paramref name="query"/> argument contains a time range filter, the underlying service uses the time range specified in <paramref name="query"/>.
@@ -189,12 +198,15 @@ public virtual Response<LogsQueryResult> QueryWorkspace(string workspaceId, stri
189
198
/// <summary>
190
199
/// Executes the logs query.
191
200
/// </summary>
192
-
/// <param name="workspaceId">The workspace id to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
193
-
/// <param name="query">The Kusto query to execute.</param>
194
-
/// <param name="timeRange">The timespan over which to query data. Logs will be filtered to include entries produced starting at <c>Now - timeSpan</c>. </param>
201
+
/// <param name="workspaceId">The workspace ID to include in the query (<c>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</c>).</param>
202
+
/// <param name="query">The Kusto query to fetch the logs.</param>
203
+
/// <param name="timeRange">The time period for which the logs should be looked up.</param>
195
204
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
196
205
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
197
206
/// <returns>The <see cref="LogsQueryResult"/> with the query results.</returns>
207
+
/// <remarks>
208
+
/// When the <paramref name="timeRange"/> argument is <see cref="QueryTimeRange.All"/> and the <paramref name="query"/> argument contains a time range filter, the underlying service uses the time range specified in <paramref name="query"/>.
@@ -344,7 +356,7 @@ public virtual async Task<Response<LogsBatchQueryResultCollection>> QueryBatchAs
344
356
/// </code>
345
357
/// </example>
346
358
/// </summary>
347
-
/// <param name="resourceId"> The resourceId where the query should be executed. </param>
359
+
/// <param name="resourceId"> The Azure resource ID where the query should be executed. </param>
348
360
/// <param name="query"> The Kusto query to fetch the logs. </param>
349
361
/// <param name="timeRange"> The time period for which the logs should be looked up. </param>
350
362
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
@@ -383,12 +395,15 @@ public virtual Response<IReadOnlyList<T>> QueryResource<T>(ResourceIdentifier re
383
395
/// </code>
384
396
/// </example>
385
397
/// </summary>
386
-
/// <param name="resourceId"> The resourceId where the query should be executed. </param>
398
+
/// <param name="resourceId"> The Azure resource ID where the query should be executed. </param>
387
399
/// <param name="query"> The Kusto query to fetch the logs. </param>
388
400
/// <param name="timeRange"> The time period for which the logs should be looked up. </param>
389
401
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
390
402
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
391
403
/// <returns>The logs matching the query.</returns>
404
+
/// <remarks>
405
+
/// When the <paramref name="timeRange"/> argument is <see cref="QueryTimeRange.All"/> and the <paramref name="query"/> argument contains a time range filter, the underlying service uses the time range specified in <paramref name="query"/>.
@@ -422,12 +437,15 @@ public virtual async Task<Response<IReadOnlyList<T>>> QueryResourceAsync<T>(Reso
422
437
/// </code>
423
438
/// </example>
424
439
/// </summary>
425
-
/// <param name="resourceId"> The resourceId where the query should be executed. </param>
440
+
/// <param name="resourceId"> The Azure resource ID where the query should be executed. </param>
426
441
/// <param name="query"> The Kusto query to fetch the logs. </param>
427
442
/// <param name="timeRange"> The time period for which the logs should be looked up. </param>
428
443
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
429
444
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
430
445
/// <returns>The logs matching the query.</returns>
446
+
/// <remarks>
447
+
/// When the <paramref name="timeRange"/> argument is <see cref="QueryTimeRange.All"/> and the <paramref name="query"/> argument contains a time range filter, the underlying service uses the time range specified in <paramref name="query"/>.
@@ -471,12 +489,15 @@ public virtual Response<LogsQueryResult> QueryResource(ResourceIdentifier resour
471
489
/// </code>
472
490
/// </example>
473
491
/// </summary>
474
-
/// <param name="resourceId"> The resourceId where the query should be executed. </param>
492
+
/// <param name="resourceId"> The Azure resource ID where the query should be executed. </param>
475
493
/// <param name="query"> The Kusto query to fetch the logs. </param>
476
494
/// <param name="timeRange"> The time period for which the logs should be looked up. </param>
477
495
/// <param name="options">The <see cref="LogsQueryOptions"/> to configure the query.</param>
478
496
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to use.</param>
479
497
/// <returns>The logs matching the query.</returns>
498
+
/// <remarks>
499
+
/// When the <paramref name="timeRange"/> argument is <see cref="QueryTimeRange.All"/> and the <paramref name="query"/> argument contains a time range filter, the underlying service uses the time range specified in <paramref name="query"/>.
Copy file name to clipboardExpand all lines: sdk/monitor/Azure.Monitor.Query/src/LogsQueryOptions.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ public class LogsQueryOptions
38
38
/// </para>
39
39
/// <para>
40
40
/// Although this collection cannot be set, it can be modified.
41
-
/// See <see href="https://docs.microsoft.com/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers#object-initializers-with-collection-read-only-property-initialization">Object initializers with collection read-only property initialization</see>.
41
+
/// See <see href="https://learn.microsoft.com/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers#object-initializers-with-collection-read-only-property-initialization">Object initializers with collection read-only property initialization</see>.
Copy file name to clipboardExpand all lines: sdk/monitor/Azure.Monitor.Query/src/Models/MonitorQueryModelFactory.cs
+21-12Lines changed: 21 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,14 +14,16 @@
14
14
namespaceAzure.Monitor.Query.Models
15
15
{
16
16
/// <summary>
17
-
/// Model factory that enables mocking for the MetricsQueryResult class.
17
+
/// Model factory that enables mocking for public model types.
18
18
/// </summary>
19
19
publicstaticpartialclassMonitorQueryModelFactory
20
20
{
21
-
/// <summary> Enables the user to create an instance of a <see cref="MetricsQueryResult"/>. </summary>
21
+
/// <summary>
22
+
/// Creates an instance of <see cref="MetricsQueryResult"/> to support <see href="https://aka.ms/azsdk/net/mocking">mocking</see>.
23
+
/// </summary>
22
24
/// <param name="cost"> The integer value representing the relative cost of the query. </param>
23
25
/// <param name="timespan"> The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. </param>
24
-
/// <param name="granularity"> The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. </param>
26
+
/// <param name="granularity"> The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. </param>
25
27
/// <param name="namespace"> The namespace of the metrics being queried. </param>
26
28
/// <param name="resourceRegion"> The region of the resource being queried for metrics. </param>
27
29
/// <param name="metrics"> The value of the collection. </param>
0 commit comments