Class QueryBuilderConfig
Defines a structured query configuration that can be used instead of writing raw SQL. This configuration represents the components of a SQL query (FROM, SELECT, WHERE, ORDER BY, LIMIT) and is typically converted into an executable query (e.g., BigQuery SQL) by the backend service to retrieve data for analysis or visualization.
Implements
Inherited Members
Namespace: Google.Apis.Logging.v2.Data
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class QueryBuilderConfig : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FieldSources
Defines the items to include in the query result, analogous to a SQL SELECT clause.
Declaration
[JsonProperty("fieldSources")]
public virtual IList<FieldSource> FieldSources { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<FieldSource> |
Filter
The filter to use for the query. This equates to the WHERE clause in SQL.
Declaration
[JsonProperty("filter")]
public virtual FilterPredicate Filter { get; set; }
Property Value
| Type | Description |
|---|---|
| FilterPredicate |
Limit
The limit to use for the query. This equates to the LIMIT clause in SQL. A limit of 0 will be treated as not enabled.
Declaration
[JsonProperty("limit")]
public virtual long? Limit { get; set; }
Property Value
| Type | Description |
|---|---|
| long? |
OrderBys
The sort orders to use for the query. This equates to the ORDER BY clause in SQL.
Declaration
[JsonProperty("orderBys")]
public virtual IList<SortOrderParameter> OrderBys { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<SortOrderParameter> |
ResourceNames
Required. The view/resource to query. For now only a single view/resource will be sent, but there are plans to allow multiple views in the future. Marking as repeated for that purpose. Example: - "projects/123/locations/global/buckets/456/views/_Default" - "projects/123/locations/global/metricBuckets/456/views/_Default"
Declaration
[JsonProperty("resourceNames")]
public virtual IList<string> ResourceNames { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
SearchTerm
The plain text search to use for the query. There is no support for multiple search terms. This uses the SEARCH functionality in BigQuery. For example, a search_term = 'ERROR' would result in the following SQL:SELECT * FROM resource WHERE SEARCH(resource, 'ERROR') LIMIT 100
Declaration
[JsonProperty("searchTerm")]
public virtual string SearchTerm { get; set; }
Property Value
| Type | Description |
|---|---|
| string |