-
public final class LogEventStructure holding information about a Log
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLogEvent.Companionpublic final classLogEvent.LogEventDeviceDevice properties
public final classLogEvent.OsOperating system properties
public final classLogEvent.LoggerInformation about the logger that produced this log.
public final classLogEvent.DdDatadog internal information
public final classLogEvent.UsrUser properties
public final classLogEvent.AccountAccount properties
public final classLogEvent.NetworkThe network information in the moment the log was created
public final classLogEvent.ErrorThe additional error information in case this log is marked as an error
public final classLogEvent.DdDeviceInformation about the device that produced this log.
public final classLogEvent.Clientpublic final classLogEvent.ThreadDescription of the thread in the process when error happened.
public final classLogEvent.SimCarrierpublic enumLogEvent.StatusThe severity of this log
public enumLogEvent.TypeDevice type info
-
Field Summary
Fields Modifier and Type Field Description private final LogEvent.LogEventDevicedeviceprivate final LogEvent.Ososprivate LogEvent.Statusstatusprivate final Stringserviceprivate Stringmessageprivate final Stringdateprivate final LogEvent.Loggerloggerprivate final LogEvent.Ddddprivate final LogEvent.Usrusrprivate final LogEvent.Accountaccountprivate final LogEvent.Networknetworkprivate final LogEvent.Errorerrorprivate final StringbuildIdprivate Stringddtagsprivate final Map<String, Object>additionalProperties
-
Constructor Summary
Constructors Constructor Description LogEvent(LogEvent.LogEventDevice device, LogEvent.Os os, LogEvent.Status status, String service, String message, String date, LogEvent.Logger logger, LogEvent.Dd dd, LogEvent.Usr usr, LogEvent.Account account, LogEvent.Network network, LogEvent.Error error, String buildId, String ddtags, Map<String, Object> additionalProperties)
-
Method Summary
Modifier and Type Method Description final LogEvent.LogEventDevicegetDevice()final LogEvent.OsgetOs()final LogEvent.StatusgetStatus()final UnitsetStatus(LogEvent.Status status)final StringgetService()final StringgetMessage()final UnitsetMessage(String message)final StringgetDate()final LogEvent.LoggergetLogger()final LogEvent.DdgetDd()final LogEvent.UsrgetUsr()final LogEvent.AccountgetAccount()final LogEvent.NetworkgetNetwork()final LogEvent.ErrorgetError()final StringgetBuildId()final StringgetDdtags()final UnitsetDdtags(String ddtags)final Map<String, Object>getAdditionalProperties()final JsonElementtoJson()-
-
Constructor Detail
-
LogEvent
LogEvent(LogEvent.LogEventDevice device, LogEvent.Os os, LogEvent.Status status, String service, String message, String date, LogEvent.Logger logger, LogEvent.Dd dd, LogEvent.Usr usr, LogEvent.Account account, LogEvent.Network network, LogEvent.Error error, String buildId, String ddtags, Map<String, Object> additionalProperties)
- Parameters:
device- Device propertiesos- Operating system propertiesstatus- The severity of this logservice- The service namemessage- The log messagedate- The date when the log is fired as an ISO-8601 Stringlogger- Information about the logger that produced this log.dd- Datadog internal informationusr- User propertiesaccount- Account propertiesnetwork- The network information in the moment the log was createderror- The additional error information in case this log is marked as an errorbuildId- Generated unique ID of the application build.ddtags- The list of tags joined into a String and divided by ','
-
-
Method Detail
-
getDevice
final LogEvent.LogEventDevice getDevice()
-
getOs
final LogEvent.Os getOs()
-
getStatus
final LogEvent.Status getStatus()
-
setStatus
final Unit setStatus(LogEvent.Status status)
- Parameters:
status- The severity of this log
-
getService
final String getService()
-
getMessage
final String getMessage()
-
setMessage
final Unit setMessage(String message)
- Parameters:
message- The log message
-
getLogger
final LogEvent.Logger getLogger()
-
getDd
final LogEvent.Dd getDd()
-
getUsr
final LogEvent.Usr getUsr()
-
getAccount
final LogEvent.Account getAccount()
-
getNetwork
final LogEvent.Network getNetwork()
-
getError
final LogEvent.Error getError()
-
getBuildId
final String getBuildId()
-
setDdtags
final Unit setDdtags(String ddtags)
- Parameters:
ddtags- The list of tags joined into a String and divided by ','
-
getAdditionalProperties
final Map<String, Object> getAdditionalProperties()
-
toJson
final JsonElement toJson()
-
-
-
-