LogEntryBatch¶
- class oci.loggingingestion.models.LogEntryBatch(**kwargs)¶
Bases:
objectA single batch of Log Entries.
Methods:
__init__(**kwargs)Initializes a new LogEntryBatch object with values from keyword arguments.
Attributes:
[Required] Gets the defaultlogentrytime of this LogEntryBatch.
[Required] Gets the entries of this LogEntryBatch.
[Required] Gets the source of this LogEntryBatch.
Gets the subject of this LogEntryBatch.
[Required] Gets the type of this LogEntryBatch.
- __init__(**kwargs)¶
Initializes a new LogEntryBatch object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
entries (list[oci.loggingingestion.models.LogEntry]) – The value to assign to the entries property of this LogEntryBatch.
source (str) – The value to assign to the source property of this LogEntryBatch.
type (str) – The value to assign to the type property of this LogEntryBatch.
subject (str) – The value to assign to the subject property of this LogEntryBatch.
defaultlogentrytime (datetime) – The value to assign to the defaultlogentrytime property of this LogEntryBatch.
- property defaultlogentrytime¶
[Required] Gets the defaultlogentrytime of this LogEntryBatch. 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.
- Returns
The defaultlogentrytime of this LogEntryBatch.
- Return type
datetime
- property entries¶
[Required] Gets the entries of this LogEntryBatch. List of data entries.
- Returns
The entries of this LogEntryBatch.
- Return type
- property source¶
[Required] Gets the source of this LogEntryBatch. 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”.
- Returns
The source of this LogEntryBatch.
- Return type
str
- property subject¶
Gets the subject of this LogEntryBatch. 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”.
- Returns
The subject of this LogEntryBatch.
- Return type
str
- property type¶
[Required] Gets the type of this LogEntryBatch. This field signifies the type of logs being ingested. For example: ServerA.requestLogs.
- Returns
The type of this LogEntryBatch.
- Return type
str