LogsBatchQueryResultCollection.GetResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetResult(String) |
Gets the result for the query that was a part of the batch. |
GetResult<T>(String) |
Gets the result for the query that was a part of the batch. |
GetResult(String)
Gets the result for the query that was a part of the batch.
public Azure.Monitor.Query.Models.LogsBatchQueryResult GetResult (string queryId);
member this.GetResult : string -> Azure.Monitor.Query.Models.LogsBatchQueryResult
Public Function GetResult (queryId As String) As LogsBatchQueryResult
Parameters
- queryId
- String
The query identifier returned from the AddWorkspaceQuery(String, String, QueryTimeRange, LogsQueryOptions).
Returns
The LogsBatchQueryResultCollection with the query results.
Exceptions
When the query with queryId
was not part of the batch.
When the query queryId
failed.
Applies to
GetResult<T>(String)
Gets the result for the query that was a part of the batch.
public System.Collections.Generic.IReadOnlyList<T> GetResult<T> (string queryId);
member this.GetResult : string -> System.Collections.Generic.IReadOnlyList<'T>
Public Function GetResult(Of T) (queryId As String) As IReadOnlyList(Of T)
Type Parameters
- T
Parameters
- queryId
- String
The query identifier returned from the AddWorkspaceQuery(String, String, QueryTimeRange, LogsQueryOptions).
Returns
Query results mapped to a type T
.
Exceptions
When the query with queryId
was not part of the batch.
When the query queryId
failed.
Applies to
Azure SDK for .NET