Package com.pulumi.automation.events
Class EngineEvent
- java.lang.Object
 - 
- com.pulumi.automation.events.EngineEvent
 
 
- 
public class EngineEvent extends java.lang.ObjectEngineEventdescribes 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
Constructors Constructor Description EngineEvent(int sequence, int timestamp, CancelEvent cancelEvent, StandardOutputEvent stdoutEvent, DiagnosticEvent diagnosticEvent, PreludeEvent preludeEvent, SummaryEvent summaryEvent, ResourcePreEvent resourcePreEvent, ResourceOutputsEvent resOutputsEvent, ResourceOperationFailedEvent resOpFailedEvent, PolicyEvent policyEvent) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancelEventcancelEvent()DiagnosticEventdiagnosticEvent()PolicyEventpolicyEvent()PreludeEventpreludeEvent()ResourceOperationFailedEventresourceOperationFailedEvent()ResourceOutputsEventresourceOutputsEvent()ResourcePreEventresourcePreEvent()intsequence()Gets the sequence number, a unique, and monotonically increasing number for each engine event sent to the Pulumi Service.StandardOutputEventstandardOutputEvent()SummaryEventsummaryEvent()inttimestamp()Gets the timestamp, a Unix timestamp (seconds) of when the event was emitted. 
 - 
 
- 
- 
Constructor Detail
- 
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 Detail
- 
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
@Nullable public CancelEvent cancelEvent()
 
- 
standardOutputEvent
@Nullable public StandardOutputEvent standardOutputEvent()
 
- 
diagnosticEvent
@Nullable public DiagnosticEvent diagnosticEvent()
 
- 
preludeEvent
@Nullable public PreludeEvent preludeEvent()
 
- 
summaryEvent
@Nullable public SummaryEvent summaryEvent()
 
- 
resourcePreEvent
@Nullable public ResourcePreEvent resourcePreEvent()
 
- 
resourceOutputsEvent
@Nullable public ResourceOutputsEvent resourceOutputsEvent()
 
- 
resourceOperationFailedEvent
@Nullable public ResourceOperationFailedEvent resourceOperationFailedEvent()
 
- 
policyEvent
@Nullable public PolicyEvent policyEvent()
 
 - 
 
 -