Class LogEntryBatch.Builder
- java.lang.Object
-
- com.oracle.bmc.loggingingestion.model.LogEntryBatch.Builder
-
- Enclosing class:
- LogEntryBatch
public static class LogEntryBatch.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
entries
public LogEntryBatch.Builder entries(List<LogEntry> entries)
List of data entries.- Parameters:
entries
- the value to set- Returns:
- this builder
-
source
public 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”.
- Parameters:
source
- the value to set- Returns:
- this builder
-
type
public LogEntryBatch.Builder type(String type)
This field signifies the type of logs being ingested.For example: ServerA.requestLogs.
- Parameters:
type
- the value to set- Returns:
- this builder
-
subject
public 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”.
- Parameters:
subject
- the value to set- Returns:
- this builder
-
defaultlogentrytime
public 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.
- Parameters:
defaultlogentrytime
- the value to set- Returns:
- this builder
-
build
public LogEntryBatch build()
-
copy
public LogEntryBatch.Builder copy(LogEntryBatch model)
-
-