-
Notifications
You must be signed in to change notification settings - Fork 17
/
QueryStringProps.go
58 lines (55 loc) · 2.66 KB
/
QueryStringProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package awslogs
// Properties for a QueryString.
//
// Example:
// logs.NewQueryDefinition(this, jsii.String("QueryDefinition"), &QueryDefinitionProps{
// QueryDefinitionName: jsii.String("MyQuery"),
// QueryString: logs.NewQueryString(&QueryStringProps{
// Fields: []*string{
// jsii.String("@timestamp"),
// jsii.String("@message"),
// },
// ParseStatements: []*string{
// jsii.String("@message \"[*] *\" as loggingType, loggingMessage"),
// jsii.String("@message \"<*>: *\" as differentLoggingType, differentLoggingMessage"),
// },
// FilterStatements: []*string{
// jsii.String("loggingType = \"ERROR\""),
// jsii.String("loggingMessage = \"A very strange error occurred!\""),
// },
// Sort: jsii.String("@timestamp desc"),
// Limit: jsii.Number(20),
// }),
// })
//
type QueryStringProps struct {
// Specifies which fields to display in the query results.
Display *string `field:"optional" json:"display" yaml:"display"`
// Retrieves the specified fields from log events for display.
Fields *[]*string `field:"optional" json:"fields" yaml:"fields"`
// A single statement for filtering the results of a query based on a boolean expression.
// Deprecated: Use `filterStatements` instead.
Filter *string `field:"optional" json:"filter" yaml:"filter"`
// 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.
FilterStatements *[]*string `field:"optional" json:"filterStatements" yaml:"filterStatements"`
// Specifies the number of log events returned by the query.
Limit *float64 `field:"optional" json:"limit" yaml:"limit"`
// A single statement for parsing data from a log field and creating ephemeral fields that can be processed further in the query.
// Deprecated: Use `parseStatements` instead.
Parse *string `field:"optional" json:"parse" yaml:"parse"`
// 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.
ParseStatements *[]*string `field:"optional" json:"parseStatements" yaml:"parseStatements"`
// Sorts the retrieved log events.
Sort *string `field:"optional" json:"sort" yaml:"sort"`
// Uses log field values to calculate aggregate statistics.
Stats *string `field:"optional" json:"stats" yaml:"stats"`
}