Event Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.Event

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.

OffsetDateTime firstTimestamp()

Get the firstTimestamp property: The date-time of the earliest logged event.

static Event fromJson(JsonReader jsonReader)

Reads an instance of Event from the JsonReader.

OffsetDateTime lastTimestamp()

Get the lastTimestamp property: The date-time of the latest logged event.

String message()

Get the message property: The event message.

String name()

Get the name property: The event name.

JsonWriter 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:

the count value.

firstTimestamp

public OffsetDateTime firstTimestamp()

Get the firstTimestamp property: The date-time of the earliest logged event.

Returns:

the firstTimestamp value.

fromJson

public static Event fromJson(JsonReader jsonReader)

Reads an instance of Event from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Event if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Event.

lastTimestamp

public OffsetDateTime lastTimestamp()

Get the lastTimestamp property: The date-time of the latest logged event.

Returns:

the lastTimestamp value.

message

public String message()

Get the message property: The event message.

Returns:

the message value.

name

public String name()

Get the name property: The event name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The event type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to