Interface IQueryStringProps
Properties for a QueryString.
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.AWS.Logs.dll
Syntax (csharp)
public interface IQueryStringProps
Syntax (vb)
Public Interface IQueryStringProps
Remarks
ExampleMetadata: infused
Examples
new QueryDefinition(this, "QueryDefinition", new QueryDefinitionProps {
QueryDefinitionName = "MyQuery",
QueryString = new QueryString(new QueryStringProps {
Fields = new [] { "@timestamp", "@message" },
Sort = "@timestamp desc",
Limit = 20
})
});
Synopsis
Properties
Display | Specifies which fields to display in the query results. |
Fields | Retrieves the specified fields from log events for display. |
Filter | Filters the results of a query that's based on one or more conditions. |
Limit | Specifies the number of log events returned by the query. |
Parse | Extracts data from a log field and creates one or more ephemeral fields that you can process further in the query. |
Sort | Sorts the retrieved log events. |
Stats | Uses log field values to calculate aggregate statistics. |
Properties
Display
Specifies which fields to display in the query results.
virtual string Display { get; }
Property Value
System.String
Remarks
Default: - no display in QueryString
Fields
Retrieves the specified fields from log events for display.
virtual string[] Fields { get; }
Property Value
System.String[]
Remarks
Default: - no fields in QueryString
Filter
Filters the results of a query that's based on one or more conditions.
virtual string Filter { get; }
Property Value
System.String
Remarks
Default: - no filter in QueryString
Limit
Specifies the number of log events returned by the query.
virtual Nullable<double> Limit { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - no limit in QueryString
Parse
Extracts data from a log field and creates one or more ephemeral fields that you can process further in the query.
virtual string Parse { get; }
Property Value
System.String
Remarks
Default: - no parse in QueryString
Sort
Sorts the retrieved log events.
virtual string Sort { get; }
Property Value
System.String
Remarks
Default: - no sort in QueryString
Stats
Uses log field values to calculate aggregate statistics.
virtual string Stats { get; }
Property Value
System.String
Remarks
Default: - no stats in QueryString