public static class EventsQueryOptions.EventsQueryOptionsBuilder extends Object
| Constructor and Description |
|---|
EventsQueryOptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
EventsQueryOptions.EventsQueryOptionsBuilder |
ascending(boolean ascending)
Defines the direction of the search time range and must be provided if the range end time is not specified.
|
EventsQueryOptions.EventsQueryOptionsBuilder |
attachment(String filterExpression)
Filter Expression for the
attachment field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
begin(Long time)
The beginning of the search time range in Linux epoch seconds.
|
EventsQueryOptions.EventsQueryOptionsBuilder |
begin(java.time.ZonedDateTime time)
The beginning of the search time range.
|
EventsQueryOptions.EventsQueryOptionsBuilder |
end(Long time)
The end of the search time range in Linux epoch seconds.
|
EventsQueryOptions.EventsQueryOptionsBuilder |
end(java.time.ZonedDateTime time)
The end of the search time range.
|
EventsQueryOptions.EventsQueryOptionsBuilder |
event(EventType event)
An event type.
|
EventsQueryOptions.EventsQueryOptionsBuilder |
eventFieldFilterExpression(String filterExpression)
Filter Expression for the
event field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
from(String filterExpression)
Filter Expression for the
from field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
messageId(String filterExpression)
Filter Expression for the
messageId field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
recipient(String filterExpression)
Filter Expression for the
recipient field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
recipients(String filterExpression)
Filter Expression for the
recipients field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
severity(Severity severity)
Used to filter events based on severity, if exists.
|
EventsQueryOptions.EventsQueryOptionsBuilder |
size(String filterExpression)
Filter Expression for the
size field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
subject(String filterExpression)
Filter Expression for the
subject field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
tags(String filterExpression)
Filter Expression for the
tags field. |
EventsQueryOptions.EventsQueryOptionsBuilder |
to(String filterExpression)
Filter Expression for the
to field. |
public EventsQueryOptions.EventsQueryOptionsBuilder begin(java.time.ZonedDateTime time)
The beginning of the search time range.
time - The beginning of the search time range.public EventsQueryOptions.EventsQueryOptionsBuilder begin(Long time)
The beginning of the search time range in Linux epoch seconds.
time - The beginning of the search time range in Linux epoch seconds.public EventsQueryOptions.EventsQueryOptionsBuilder end(java.time.ZonedDateTime time)
The end of the search time range.
time - The end of the search time range ZonedDateTimepublic EventsQueryOptions.EventsQueryOptionsBuilder end(Long time)
The end of the search time range in Linux epoch seconds.
time - The end of the search time range in Linux epoch seconds.public EventsQueryOptions.EventsQueryOptionsBuilder ascending(boolean ascending)
Defines the direction of the search time range and must be provided if the range end time is not specified.
Can be eithertrue or falseascending - Defines the direction of the search time range and must be provided if the range end time is not specified.
Can be either true or falsepublic EventsQueryOptions.EventsQueryOptionsBuilder event(EventType event)
An event type.
event - An event type.public EventsQueryOptions.EventsQueryOptionsBuilder eventFieldFilterExpression(String filterExpression)
Filter Expression for the event field.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder severity(Severity severity)
Used to filter events based on severity, if exists. (Currently failed events only)
Temporary or Permanent.
severity - severitypublic EventsQueryOptions.EventsQueryOptionsBuilder attachment(String filterExpression)
Filter Expression for the attachment field.
A name of an attached file.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder from(String filterExpression)
Filter Expression for the from field.
An email address mentioned in the from MIME header.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder messageId(String filterExpression)
Filter Expression for the messageId field.
A Mailgun message id returned by the messages API.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder subject(String filterExpression)
Filter Expression for the subject field.
A subject line.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder to(String filterExpression)
Filter Expression for the to field.
An email address mentioned in the to MIME header.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder size(String filterExpression)
Filter Expression for the size field.
Message size.
The value of the parameter should be a valid Filter Expression.
Examples:
10000Matches values that greater then 10000.>10000 <20000Matches values that are greater then 10000 and less then 20000.
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder recipient(String filterExpression)
Filter Expression for the recipient field.
An email address of a particular recipient.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder recipients(String filterExpression)
Filter Expression for the recipients field.
Specific to stored events, this field tracks all of the potential message recipients.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter Expressionpublic EventsQueryOptions.EventsQueryOptionsBuilder tags(String filterExpression)
Filter Expression for the tags field.
User defined tags.
The value of the parameter should be a valid Filter Expression.
Examples:
foo barMatches field values that contain both term foo and term bar.foo AND barSame as above.foo OR barMatches field values that contain either term foo or term bar.“foo bar”Matches field values that literally contain foo bar.NOT fooMatches field values that do not contain term foo.
Note that more then one expression can be used as a filter value and parentheses can be used to specify grouping.
E.g.: (Hello AND NOT Rachel) OR (Farewell AND Monica).
filterExpression - Filter ExpressionCopyright © 2022. All rights reserved.