-
public final class LogEventStructure holding information about a Log
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLogEvent.Companionpublic final classLogEvent.LoggerInformation about the logger that produced this log.
public final classLogEvent.DdDatadog internal information
public final classLogEvent.UsrUser 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.DeviceInformation about the device that produced this log.
public final classLogEvent.Clientpublic final classLogEvent.SimCarrierpublic enumLogEvent.StatusThe severity of this log
-
Field Summary
Fields Modifier and Type Field Description private LogEvent.Statusstatusprivate final Stringserviceprivate Stringmessageprivate final Stringdateprivate final LogEvent.Loggerloggerprivate final LogEvent.Ddddprivate final LogEvent.Usrusrprivate final LogEvent.Networknetworkprivate final LogEvent.Errorerrorprivate Stringddtagsprivate final Map<String, Object>additionalProperties
-
Constructor Summary
Constructors Constructor Description LogEvent(LogEvent.Status status, String service, String message, String date, LogEvent.Logger logger, LogEvent.Dd dd, LogEvent.Usr usr, LogEvent.Network network, LogEvent.Error error, String ddtags, Map<String, Object> additionalProperties)
-
Method Summary
Modifier and Type Method Description 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.NetworkgetNetwork()final LogEvent.ErrorgetError()final StringgetDdtags()final UnitsetDdtags(String ddtags)final Map<String, Object>getAdditionalProperties()final JsonElementtoJson()-
-
Constructor Detail
-
LogEvent
LogEvent(LogEvent.Status status, String service, String message, String date, LogEvent.Logger logger, LogEvent.Dd dd, LogEvent.Usr usr, LogEvent.Network network, LogEvent.Error error, String ddtags, Map<String, Object> additionalProperties)
- Parameters:
status- 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 propertiesnetwork- The network information in the moment the log was createderror- The additional error information in case this log is marked as an errorddtags- The list of tags joined into a String and divided by ','
-
-
Method Detail
-
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()
-
getNetwork
final LogEvent.Network getNetwork()
-
getError
final LogEvent.Error getError()
-
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()
-
-
-
-