Uses of Class
codes.grow.packages.cloudwatchlogs.logging.LogRecord
Packages that use LogRecord
Package
Description
Grow Codes SDK for Amazon CloudWatch Logs.
-
Uses of LogRecord in codes.grow.packages.cloudwatchlogs
Methods in codes.grow.packages.cloudwatchlogs that return LogRecordModifier and TypeMethodDescriptionstatic LogRecordCloudWatchLogsQueryClient.filteredEventToRecord(FilteredLogEvent e) Converts aFilterLogEventsevent to a record (seeCloudWatchLogsQueryClient.messageToRecord(java.lang.String, java.time.Instant, java.time.Instant)) with the attributesaws.log.streamandaws.event.id.static LogRecordCloudWatchLogsQueryClient.liveTailEventToRecord(LiveTailEvent e) Converts a live-tail event to a record (seeCloudWatchLogsQueryClient.messageToRecord(java.lang.String, java.time.Instant, java.time.Instant)) with the attributeaws.log.streamand, for plain messages,aws.log.group.static LogRecordCloudWatchLogsQueryClient.messageToRecord(String message, Instant timestamp, Instant ingestionTime) Normalizes a CloudWatch message: a normalized LogRecord JSON document (withtimestampandbody) is decoded; any other message becomes an INFO record with the message as body,timestampas time andingestionTimeas observed time.Methods in codes.grow.packages.cloudwatchlogs with parameters of type LogRecordModifier and TypeMethodDescriptionstatic StringCloudWatchLogsExporter.recordToMessage(LogRecord record, int maxEventBytes, OversizePolicy policy) Serialises a record to its normalized JSON message.Method parameters in codes.grow.packages.cloudwatchlogs with type arguments of type LogRecordModifier and TypeMethodDescriptionCloudWatchLogsExporter.export(List<LogRecord> records, ExportOptions options) CloudWatchLogsQueryClient.tail(String query, Consumer<LogRecord> onRecord, TailOptions options) Streams records with Live Tail (filter pattern built likeCloudWatchLogsQueryClient.search(java.lang.String, codes.grow.packages.cloudwatchlogs.logging.SearchOptions)). -
Uses of LogRecord in codes.grow.packages.cloudwatchlogs.logging
Methods in codes.grow.packages.cloudwatchlogs.logging that return LogRecordModifier and TypeMethodDescriptionLogRecord.Builder.build()Builds the record.static LogRecordParses one record from JSON text.static LogRecordLogRecordJson.fromJsonNode(com.fasterxml.jackson.databind.JsonNode node) Parses one record from a Jackson tree.Returns a redacted copy of the record.default LogRecordLogQueryClient.waitForLog(String query) LogQueryClient.waitForLog(String, WaitForLogOptions)with defaults.default LogRecordLogQueryClient.waitForLog(String query, WaitForLogOptions options) PollsLogQueryClient.search(java.lang.String, codes.grow.packages.cloudwatchlogs.logging.SearchOptions)until a record matches the query and the predicate.Methods in codes.grow.packages.cloudwatchlogs.logging that return types with arguments of type LogRecordModifier and TypeMethodDescriptionBatchOptions.onDrop()Drop callback.BatchOptions.onError()Export error callback.WaitForLogOptions.predicate()Returns the value of thepredicaterecord component.LogSearchResult.records()Returns the value of therecordsrecord component.default CompletableFuture<LogRecord> LogQueryClient.waitForLogAsync(String query, WaitForLogOptions options) AsynchronousLogQueryClient.waitForLog(String, WaitForLogOptions).Methods in codes.grow.packages.cloudwatchlogs.logging with parameters of type LogRecordModifier and TypeMethodDescriptionbooleanQueues a record.static intReturns the UTF-8 size of the record's JSON form (the unit ofmaxBatchBytes).Returns a redacted copy of the record.static StringSerialises a record to compact JSON.Returns the wire form as an ordered map of plain JSON values.Method parameters in codes.grow.packages.cloudwatchlogs.logging with type arguments of type LogRecordModifier and TypeMethodDescriptionLogExporter.export(List<LogRecord> records, ExportOptions options) Exports a batch.static LogSearchResultA single page without cursor or total.BatchOptions.Builder.onDrop(BiConsumer<List<LogRecord>, DropReason> onDrop) Sets the drop callback (exceptions it throws are ignored).BatchOptions.Builder.onError(BiConsumer<Throwable, List<LogRecord>> onError) Sets the export error callback (exceptions it throws are ignored).default TailHandleLogQueryClient.tail(String query, Consumer<LogRecord> onRecord, TailOptions options) Streams new matching records toonRecorduntil the handle is stopped.WaitForLogOptions.withPredicate(Predicate<LogRecord> filter) Copy with a predicate.Constructor parameters in codes.grow.packages.cloudwatchlogs.logging with type arguments of type LogRecordModifierConstructorDescriptionLogSearchResult(List<LogRecord> records, Optional<String> nextCursor, OptionalLong total) Copies the list and replacesnulloptionals by empty ones.WaitForLogOptions(Duration timeout, Duration interval, Predicate<LogRecord> predicate, SearchOptions search) Fills defaults fornullvalues. -
Uses of LogRecord in codes.grow.packages.cloudwatchlogs.testing.logging
Methods in codes.grow.packages.cloudwatchlogs.testing.logging that return types with arguments of type LogRecordModifier and TypeMethodDescriptionInMemoryLogExporter.records()Accepted records in export order.Methods in codes.grow.packages.cloudwatchlogs.testing.logging with parameters of type LogRecordModifier and TypeMethodDescriptionstatic booleanWhether a record matches a query.Method parameters in codes.grow.packages.cloudwatchlogs.testing.logging with type arguments of type LogRecordModifier and TypeMethodDescriptionvoidInMemoryLogExporter.enqueueOutcome(Function<List<LogRecord>, CompletableFuture<ExportResult>> outcome) Scripts the outcome of the next export call (FIFO).InMemoryLogExporter.export(List<LogRecord> batch, ExportOptions options) voidStores records as if exported (for outcomes that accept part of a batch).InMemoryLogQueryClient.tail(String query, Consumer<LogRecord> onRecord, TailOptions options) Constructor parameters in codes.grow.packages.cloudwatchlogs.testing.logging with type arguments of type LogRecordModifierConstructorDescriptionInMemoryLogQueryClient(Supplier<List<LogRecord>> source) Reads records from a supplier.