Package com.pulumi.automation.events
Class EngineEvent
java.lang.Object
com.pulumi.automation.events.EngineEvent
EngineEvent describes a Pulumi engine event, such as a change to a
resource or diagnostic message. EngineEvent is a discriminated union of all
possible event types, and exactly one field will be non-null.-
Constructor Summary
ConstructorsConstructorDescriptionEngineEvent(int sequence, int timestamp, CancelEvent cancelEvent, StandardOutputEvent stdoutEvent, DiagnosticEvent diagnosticEvent, PreludeEvent preludeEvent, SummaryEvent summaryEvent, ResourcePreEvent resourcePreEvent, ResourceOutputsEvent resOutputsEvent, ResourceOperationFailedEvent resOpFailedEvent, PolicyEvent policyEvent) -
Method Summary
Modifier and TypeMethodDescriptionintsequence()Gets the sequence number, a unique, and monotonically increasing number for each engine event sent to the Pulumi Service.intGets the timestamp, a Unix timestamp (seconds) of when the event was emitted.
-
Constructor Details
-
EngineEvent
public EngineEvent(int sequence, int timestamp, CancelEvent cancelEvent, StandardOutputEvent stdoutEvent, DiagnosticEvent diagnosticEvent, PreludeEvent preludeEvent, SummaryEvent summaryEvent, ResourcePreEvent resourcePreEvent, ResourceOutputsEvent resOutputsEvent, ResourceOperationFailedEvent resOpFailedEvent, PolicyEvent policyEvent)
-
-
Method Details
-
sequence
public int sequence()Gets the sequence number, a unique, and monotonically increasing number for each engine event sent to the Pulumi Service. Since events may be sent concurrently, and/or delayed via network routing, the sequence number is to ensure events can be placed into a total ordering.- No two events can have the same sequence number.
- Events with a lower sequence number must have been emitted before those with a higher sequence number.
- Returns:
- the sequence number
-
timestamp
public int timestamp()Gets the timestamp, a Unix timestamp (seconds) of when the event was emitted.- Returns:
- the timestamp
-
cancelEvent
-
standardOutputEvent
-
diagnosticEvent
-
preludeEvent
-
summaryEvent
-
resourcePreEvent
-
resourceOutputsEvent
-
resourceOperationFailedEvent
-
policyEvent
-