public class Event extends Object
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Integer |
count()
Get the count of the event.
|
org.joda.time.DateTime |
firstTimestamp()
Get the date-time of the earliest logged event.
|
org.joda.time.DateTime |
lastTimestamp()
Get the date-time of the latest logged event.
|
String |
message()
Get the event message.
|
String |
name()
Get the event name.
|
String |
type()
Get the event type.
|
Event |
withCount(Integer count)
Set the count of the event.
|
Event |
withFirstTimestamp(org.joda.time.DateTime firstTimestamp)
Set the date-time of the earliest logged event.
|
Event |
withLastTimestamp(org.joda.time.DateTime lastTimestamp)
Set the date-time of the latest logged event.
|
Event |
withMessage(String message)
Set the event message.
|
Event |
withName(String name)
Set the event name.
|
Event |
withType(String type)
Set the event type.
|
public Integer count()
public Event withCount(Integer count)
count
- the count value to setpublic org.joda.time.DateTime firstTimestamp()
public Event withFirstTimestamp(org.joda.time.DateTime firstTimestamp)
firstTimestamp
- the firstTimestamp value to setpublic org.joda.time.DateTime lastTimestamp()
public Event withLastTimestamp(org.joda.time.DateTime lastTimestamp)
lastTimestamp
- the lastTimestamp value to setpublic String name()
public Event withName(String name)
name
- the name value to setpublic String message()
public Event withMessage(String message)
message
- the message value to setpublic String type()
Copyright © 2019. All rights reserved.