public static class QueryDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
QueryDetails.Builder |
asyncMode(JobMode asyncMode)
Execution mode for the query if running asynchronously i.e (shouldRunAsync is set to
true).
|
QueryDetails |
build() |
QueryDetails.Builder |
compartmentId(String compartmentId)
Compartment Identifier [OCID]
(https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
QueryDetails.Builder |
compartmentIdInSubtree(Boolean compartmentIdInSubtree)
Flag to search all child compartments of the compartment Id specified in the
compartmentId query parameter.
|
QueryDetails.Builder |
copy(QueryDetails model) |
QueryDetails.Builder |
maxTotalCount(Integer maxTotalCount)
Maximum number of results to count.
|
QueryDetails.Builder |
queryString(String queryString)
Query to perform.
|
QueryDetails.Builder |
queryTimeoutInSeconds(Integer queryTimeoutInSeconds)
Amount of time, in seconds, allowed for a query to execute.
|
QueryDetails.Builder |
savedSearchId(String savedSearchId)
Saved search OCID for this query if known.
|
QueryDetails.Builder |
scopeFilters(List<ScopeFilter> scopeFilters)
List of filters to be applied when the query executes.
|
QueryDetails.Builder |
shouldIncludeColumns(Boolean shouldIncludeColumns)
Include columns in response
|
QueryDetails.Builder |
shouldIncludeFields(Boolean shouldIncludeFields)
Include fields in response
|
QueryDetails.Builder |
shouldIncludeTotalCount(Boolean shouldIncludeTotalCount)
Include the total number of results from the query.
|
QueryDetails.Builder |
shouldRunAsync(Boolean shouldRunAsync)
Option to run the query asynchronously.
|
QueryDetails.Builder |
shouldUseAcceleration(Boolean shouldUseAcceleration)
Controls if query should ignore pre-calculated results if available and only use raw
data.
|
QueryDetails.Builder |
subSystem(SubSystemName subSystem)
Default subsystem to qualify fields with in the queryString if not specified.
|
QueryDetails.Builder |
timeFilter(TimeRange timeFilter) |
public QueryDetails.Builder compartmentId(String compartmentId)
Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
compartmentId
- the value to setpublic QueryDetails.Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree)
Flag to search all child compartments of the compartment Id specified in the compartmentId query parameter.
compartmentIdInSubtree
- the value to setpublic QueryDetails.Builder savedSearchId(String savedSearchId)
Saved search OCID for this query if known.
savedSearchId
- the value to setpublic QueryDetails.Builder queryString(String queryString)
Query to perform. Must conform to logging analytic querylanguage syntax. Syntax errors will be returned if present.
queryString
- the value to setpublic QueryDetails.Builder subSystem(SubSystemName subSystem)
Default subsystem to qualify fields with in the queryString if not specified.
subSystem
- the value to setpublic QueryDetails.Builder maxTotalCount(Integer maxTotalCount)
Maximum number of results to count. Note a maximum of 2001 will be enforced; that is, actualMaxTotalCountUsed = Math.min(maxTotalCount, 2001).
maxTotalCount
- the value to setpublic QueryDetails.Builder timeFilter(TimeRange timeFilter)
public QueryDetails.Builder scopeFilters(List<ScopeFilter> scopeFilters)
List of filters to be applied when the query executes. More than one filter per field is not permitted.
scopeFilters
- the value to setpublic QueryDetails.Builder queryTimeoutInSeconds(Integer queryTimeoutInSeconds)
Amount of time, in seconds, allowed for a query to execute. If this time expires before the query is complete, any partial results will be returned.
queryTimeoutInSeconds
- the value to setpublic QueryDetails.Builder shouldRunAsync(Boolean shouldRunAsync)
Option to run the query asynchronously. This will lead to a LogAnalyticsQueryJobWorkRequest being submitted and the {workRequestId} will be returned to use for fetching the results.
shouldRunAsync
- the value to setpublic QueryDetails.Builder asyncMode(JobMode asyncMode)
Execution mode for the query if running asynchronously i.e (shouldRunAsync is set to true).
asyncMode
- the value to setpublic QueryDetails.Builder shouldIncludeTotalCount(Boolean shouldIncludeTotalCount)
Include the total number of results from the query. Note, this value will always be equal to or less than maxTotalCount.
shouldIncludeTotalCount
- the value to setpublic QueryDetails.Builder shouldIncludeColumns(Boolean shouldIncludeColumns)
Include columns in response
shouldIncludeColumns
- the value to setpublic QueryDetails.Builder shouldIncludeFields(Boolean shouldIncludeFields)
Include fields in response
shouldIncludeFields
- the value to setpublic QueryDetails.Builder shouldUseAcceleration(Boolean shouldUseAcceleration)
Controls if query should ignore pre-calculated results if available and only use raw data. If set and no acceleration data is found it will fallback to raw data.
shouldUseAcceleration
- the value to setpublic QueryDetails build()
public QueryDetails.Builder copy(QueryDetails model)
Copyright © 2016–2024. All rights reserved.