Share via


LogsBatchQueryResultCollection.GetResult Method

Definition

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)

Source:
LogsBatchQueryResultCollection.cs
Source:
LogsBatchQueryResultCollection.cs

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)

Source:
LogsBatchQueryResultCollection.cs
Source:
LogsBatchQueryResultCollection.cs

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