LogsQueryOptions Class
- java.
lang. Object - com.
azure. monitor. query. models. LogsQueryOptions
- com.
public final class LogsQueryOptions
The options type to configure the logs query
Constructor Summary
Constructor | Description | |
---|---|---|
LogsQueryOptions() |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
getAdditionalWorkspaces()
Returns the list of additional workspaces on which this query is executed. |
Duration |
getServerTimeout()
Returns the server timeout for this query. |
boolean |
isAllowPartialErrors()
If a query has partial errors, the result is returned instead of throwing an exception if this is set to true. |
boolean |
isIncludeStatistics()
Returns the flag that indicates if the query should include statistics. |
boolean |
isIncludeVisualization()
Returns the flag that indicates if the query should return visualization details. |
Logs |
setAdditionalWorkspaces(String[] additionalWorkspaces)
Sets the list of additional workspaces on which this query is executed. |
Logs |
setAdditionalWorkspaces(List<String> additionalWorkspaces)
Sets the list of additional workspaces on which this query is executed. |
Logs |
setAllowPartialErrors(boolean allowPartialErrors)
If set to |
Logs |
setIncludeStatistics(boolean includeStatistics)
Sets the flag that indicates if the query should include statistics. |
Logs |
setIncludeVisualization(boolean includeVisualization)
Sets the flag that indicates if the query should return visualization details. |
Logs |
setServerTimeout(Duration serverTimeout)
Sets the server timeout for this query. |
Methods inherited from java.lang.Object
Constructor Details
LogsQueryOptions
public LogsQueryOptions()
Method Details
getAdditionalWorkspaces
public List
Returns the list of additional workspaces on which this query is executed. The list can contain any of the following workspace identifiers:
- Workspace Name - human-readable string `` of the OMS workspace
- Qualified Name - string with format
//
- Workspace ID - GUID string
- Azure Resource ID - string with format
/subscriptions//resourceGroups//providers/microsoft .operationalinsights/workspaces/
Returns:
getServerTimeout
public Duration getServerTimeout()
Returns the server timeout for this query.
Returns:
isAllowPartialErrors
public boolean isAllowPartialErrors()
If a query has partial errors, the result is returned instead of throwing an exception if this is set to true. The partial error information is available as part of the query result.
Returns:
isIncludeStatistics
public boolean isIncludeStatistics()
Returns the flag that indicates if the query should include statistics.
Returns:
isIncludeVisualization
public boolean isIncludeVisualization()
Returns the flag that indicates if the query should return visualization details.
Returns:
setAdditionalWorkspaces
public LogsQueryOptions setAdditionalWorkspaces(String[] additionalWorkspaces)
Sets the list of additional workspaces on which this query is executed. The list can contain any of the following workspace identifiers:
- Workspace Name - human-readable string `` of the OMS workspace
- Qualified Name - string with format
//
- Workspace ID - GUID string
- Azure Resource ID - string with format
/subscriptions//resourceGroups//providers/microsoft .operationalinsights/workspaces/
Parameters:
Returns:
setAdditionalWorkspaces
public LogsQueryOptions setAdditionalWorkspaces(List
Sets the list of additional workspaces on which this query is executed. The list can contain any of the following workspace identifiers:
- Workspace Name - human-readable string `` of the OMS workspace
- Qualified Name - string with format
//
- Workspace ID - GUID string
- Azure Resource ID - string with format
/subscriptions//resourceGroups//providers/microsoft .operationalinsights/workspaces/
Parameters:
Returns:
setAllowPartialErrors
public LogsQueryOptions setAllowPartialErrors(boolean allowPartialErrors)
If set to true
, exception is not thrown if query returns partial errors. The partial error information is available as part of the query result.
Parameters:
true
to not throw exception if a query returns partial errors.
Returns:
setIncludeStatistics
public LogsQueryOptions setIncludeStatistics(boolean includeStatistics)
Sets the flag that indicates if the query should include statistics.
Parameters:
Returns:
setIncludeVisualization
public LogsQueryOptions setIncludeVisualization(boolean includeVisualization)
Sets the flag that indicates if the query should return visualization details.
Parameters:
Returns:
setServerTimeout
public LogsQueryOptions setServerTimeout(Duration serverTimeout)
Sets the server timeout for this query.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for