public static class LogEntryBatch.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LogEntryBatch |
build() |
LogEntryBatch.Builder |
copy(LogEntryBatch model) |
LogEntryBatch.Builder |
defaultlogentrytime(Date defaultlogentrytime)
The timestamp for all log entries in this batch.
|
LogEntryBatch.Builder |
entries(List<LogEntry> entries)
List of data entries.
|
LogEntryBatch.Builder |
source(String source)
Source of the logs that generated the message.
|
LogEntryBatch.Builder |
subject(String subject)
This optional field is useful for specifying the specific sub-resource or input file used
to read the event.
|
LogEntryBatch.Builder |
type(String type)
This field signifies the type of logs being ingested.
|
public LogEntryBatch.Builder entries(List<LogEntry> entries)
List of data entries.
entries
- the value to setpublic LogEntryBatch.Builder source(String source)
Source of the logs that generated the message. This could be the instance name, hostname, or the source used to read the event. For example, “ServerA”.
source
- the value to setpublic LogEntryBatch.Builder type(String type)
This field signifies the type of logs being ingested. For example: ServerA.requestLogs.
type
- the value to setpublic LogEntryBatch.Builder subject(String subject)
This optional field is useful for specifying the specific sub-resource or input file used to read the event. For example: “/var/log/application.log”.
subject
- the value to setpublic LogEntryBatch.Builder defaultlogentrytime(Date defaultlogentrytime)
The timestamp for all log entries in this batch. This can be considered as the default timestamp for each entry, unless it is overwritten by the entry time. An RFC3339-formatted date-time string with milliseconds precision.
defaultlogentrytime
- the value to setpublic LogEntryBatch build()
public LogEntryBatch.Builder copy(LogEntryBatch model)
Copyright © 2016–2024. All rights reserved.