Class LogEntryBatch
A single batch of Log Entries.
Inherited Members
Namespace: Oci.LoggingingestionService.Models
Assembly: OCI.DotNetSDK.Loggingingestion.dll
Syntax
public class LogEntryBatch
Properties
Defaultlogentrytime
Declaration
[Required(ErrorMessage = "Defaultlogentrytime is required.")]
[JsonProperty(PropertyName = "defaultlogentrytime")]
public DateTime? Defaultlogentrytime { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | 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. |
Remarks
Required
Entries
Declaration
[Required(ErrorMessage = "Entries is required.")]
[JsonProperty(PropertyName = "entries")]
public List<LogEntry> Entries { get; set; }
Property Value
Type | Description |
---|---|
List<LogEntry> | List of data entries. |
Remarks
Required
Source
Declaration
[Required(ErrorMessage = "Source is required.")]
[JsonProperty(PropertyName = "source")]
public string Source { get; set; }
Property Value
Type | Description |
---|---|
string | 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". |
Remarks
Required
Subject
Declaration
[JsonProperty(PropertyName = "subject")]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string | 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". |
Type
Declaration
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string | This field signifies the type of logs being ingested. For Example: ServerA.requestLogs. |
Remarks
Required