/** Returns an option to specify the maximum number of log entries returned per page. */ public static EntryListOption pageSize(int pageSize) { return new EntryListOption(ListOption.OptionType.PAGE_SIZE, pageSize); }
/** * Returns an option to specify a filter to the log entries to be listed. * * @see <a href="https://cloud.google.com/logging/docs/view/advanced_filters">Advanced Logs * Filters</a> */ public static EntryListOption filter(String filter) { return new EntryListOption(OptionType.FILTER, filter); } }
/** * Returns an option to sort log entries. If not specified, log entries are sorted in ascending * (most-recent last) order with respect to the {@link LogEntry#getTimestamp()} value. */ public static EntryListOption sortOrder(SortingField field, SortingOrder order) { return new EntryListOption(OptionType.ORDER_BY, field.selector() + ' ' + order.selector()); }
/** Returns an option to specify the page token from which to start listing log entries. */ public static EntryListOption pageToken(String pageToken) { return new EntryListOption(ListOption.OptionType.PAGE_TOKEN, pageToken); }
/** Returns an option to specify the maximum number of log entries returned per page. */ public static EntryListOption pageSize(int pageSize) { return new EntryListOption(ListOption.OptionType.PAGE_SIZE, pageSize); }
/** * Returns an option to sort log entries. If not specified, log entries are sorted in ascending * (most-recent last) order with respect to the {@link LogEntry#getTimestamp()} value. */ public static EntryListOption sortOrder(SortingField field, SortingOrder order) { return new EntryListOption(OptionType.ORDER_BY, field.selector() + ' ' + order.selector()); }
/** Returns an option to specify the page token from which to start listing log entries. */ public static EntryListOption pageToken(String pageToken) { return new EntryListOption(ListOption.OptionType.PAGE_TOKEN, pageToken); }
/** * Returns an option to specify a filter to the log entries to be listed. * * @see <a href="https://cloud.google.com/logging/docs/view/advanced_filters">Advanced Logs * Filters</a> */ public static EntryListOption filter(String filter) { return new EntryListOption(OptionType.FILTER, filter); } }