Event Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. Event
- com.
Implements
public final class Event
implements JsonSerializable<Event>
A container group or container instance event.
Constructor Summary
Constructor | Description |
---|---|
Event() |
Creates an instance of Event class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
count()
Get the count property: The count of the event. |
Offset |
firstTimestamp()
Get the first |
static Event |
fromJson(JsonReader jsonReader)
Reads an instance of Event from the Json |
Offset |
lastTimestamp()
Get the last |
String |
message()
Get the message property: The event message. |
String |
name()
Get the name property: The event name. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The event type. |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
Event
public Event()
Creates an instance of Event class.
Method Details
count
public Integer count()
Get the count property: The count of the event.
Returns:
firstTimestamp
public OffsetDateTime firstTimestamp()
Get the firstTimestamp property: The date-time of the earliest logged event.
Returns:
fromJson
public static Event fromJson(JsonReader jsonReader)
Reads an instance of Event from the JsonReader.
Parameters:
Returns:
Throws:
lastTimestamp
public OffsetDateTime lastTimestamp()
Get the lastTimestamp property: The date-time of the latest logged event.
Returns:
message
public String message()
Get the message property: The event message.
Returns:
name
public String name()
Get the name property: The event name.
Returns:
toJson
type
public String type()
Get the type property: The event type.
Returns:
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java