pulumi/sdk/dotnet/Pulumi.Automation/Serialization
Ville Penttinen 529fe8fc51
[automation/dotnet] Expose structured logging (#6572)
* [automation/dotnet] Start implementing structured event log support

* Add Events and their models

* Introduce new IStringToEnumConverter

This is intended to be used for converting a non-standard enum names
into corresponding enum values. The converter is utilized via
StringToEnumJsonConverter with OperationType and DiffKind.

* Add event-log support to up, refresh, destroy

* Update event-log tests

* Use lock instead of semaphore in EventLogWatcher

* Add ChangeSummary to PreviewResult

* Minor update

* Add doc comments to Events

* Use PropertyDiffModel in StepEventMetadataModel

* Set Events to public

* Set properties to public

* Fix PreludeEvent.Config doc comment

* Remove TODOs

* Update Pulumi.Automation.xml

* Set PULUMI_DEBUG_COMMANDs in Workspace.

* Split Events and their models to separate files

* Rename abbreviated Events

* Remove CancelEventModel

* Rename HandlesEvents test project and stack

* Update CHANGELOG_PENDING.md

* Rename abbreviated EngineEvent properties

* Implement custom exceptions

* Move event-log setup to LocalPulumiCmd

* Update comments

* Implement polling EventLogWatcher

This replaces the previous watcher which utilized FileSystemWatcher.

* Guard against onEvent throwing

* Dispose CancellationTokenSource

* WIP: try more direct error handling in EventLogWatcher

* A bit more tests

* Reformat

* Update sdk/dotnet/Pulumi.Automation.Tests/EventLogWatcherTests.cs

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>

* Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>

* Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>

* Update sdk/dotnet/Pulumi.Automation.Tests/EventLogWatcherTests.cs

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>

* Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>

* Update sdk/dotnet/Pulumi.Automation/Events/EventLogWatcher.cs

Co-authored-by: Ville Penttinen <villem.penttinen@gmail.com>

* Make race condition workaround more explicit

* Untabify

* Remove unnecessary using and change String to string

* Update doc comments on Events

Co-authored-by: Anton Tayanovskyy <anton@pulumi.com>
Co-authored-by: Anton Tayanovskyy <anton.tayanovskyy@gmail.com>
2021-03-30 14:57:38 -04:00
..
Json [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
Yaml [Automation API] - C# Implementation (#5761) 2021-02-18 11:36:21 +01:00
ConfigValueModel.cs [Automation API] - C# Implementation (#5761) 2021-02-18 11:36:21 +01:00
DiagnosticEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
DiffKindConverter.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
EngineEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
IStringToEnumConverter.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
LocalSerializer.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
OperationTypeConverter.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
PluginInfoModel.cs [Automation API] - C# Implementation (#5761) 2021-02-18 11:36:21 +01:00
PolicyEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
PreludeEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
ProjectSettingsModel.cs [Automation API] - C# Implementation (#5761) 2021-02-18 11:36:21 +01:00
PropertyDiffModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
ResourceOperationFailedEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
ResourceOutputsEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
ResourcePreEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
StackSummaryModel.cs [Automation API] - C# Implementation (#5761) 2021-02-18 11:36:21 +01:00
StandardOutputEngineEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
StepEventMetadataModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
StepEventStateMetadataModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
SummaryEventModel.cs [automation/dotnet] Expose structured logging (#6572) 2021-03-30 14:57:38 -04:00
UpdateSummaryModel.cs [Automation API] - C# Implementation (#5761) 2021-02-18 11:36:21 +01:00