Interface QueryStringProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
QueryStringProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:12.524Z")
@Stability(Stable)
public interface QueryStringProps
extends software.amazon.jsii.JsiiSerializable
Properties for a QueryString.
Example:
QueryDefinition.Builder.create(this, "QueryDefinition") .queryDefinitionName("MyQuery") .queryString(QueryString.Builder.create() .fields(List.of("@timestamp", "@message")) .parseStatements(List.of("@message \"[*] *\" as loggingType, loggingMessage", "@message \"<*>: *\" as differentLoggingType, differentLoggingMessage")) .filterStatements(List.of("loggingType = \"ERROR\"", "loggingMessage = \"A very strange error occurred!\"")) .sort("@timestamp desc") .limit(20) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forQueryStringProps
static final class
An implementation forQueryStringProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryStringProps.Builder
builder()
default String
Specifies which fields to display in the query results.Retrieves the specified fields from log events for display.default String
Deprecated.An array of one or more statements for filtering the results of a query based on a boolean expression.default Number
getLimit()
Specifies the number of log events returned by the query.default String
getParse()
Deprecated.UseparseStatements
insteadAn array of one or more statements for parsing data from a log field and creating ephemeral fields that can be processed further in the query.default String
getSort()
Sorts the retrieved log events.default String
getStats()
Uses log field values to calculate aggregate statistics.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDisplay
Specifies which fields to display in the query results.Default: - no display in QueryString
-
getFields
Retrieves the specified fields from log events for display.Default: - no fields in QueryString
-
getFilter
Deprecated.UsefilterStatements
instead(deprecated) A single statement for filtering the results of a query based on a boolean expression.Default: - no filter in QueryString
-
getFilterStatements
An array of one or more statements for filtering the results of a query based on a boolean expression.Each provided statement generates a separate filter line in the query string.
Note: If provided, this property overrides any value provided for the
filter
property.Default: - no filter in QueryString
-
getLimit
Specifies the number of log events returned by the query.Default: - no limit in QueryString
-
getParse
Deprecated.UseparseStatements
instead(deprecated) A single statement for parsing data from a log field and creating ephemeral fields that can be processed further in the query.Default: - no parse in QueryString
-
getParseStatements
An array of one or more statements for parsing data from a log field and creating ephemeral fields that can be processed further in the query.Each provided statement generates a separate parse line in the query string.
Note: If provided, this property overrides any value provided for the
parse
property.Default: - no parse in QueryString
-
getSort
Sorts the retrieved log events.Default: - no sort in QueryString
-
getStats
Uses log field values to calculate aggregate statistics.Default: - no stats in QueryString
-
builder
- Returns:
- a
QueryStringProps.Builder
ofQueryStringProps
-
filterStatements
instead