|
20 | 20 | using Seq.Api.Model.Signals; |
21 | 21 | using Seq.Api.ResourceGroups; |
22 | 22 |
|
| 23 | +#nullable enable |
| 24 | + |
23 | 25 | namespace Seq.Api.Model.AppInstances |
24 | 26 | { |
25 | 27 | /// <summary> |
@@ -49,12 +51,12 @@ public AppInstanceEntity() |
49 | 51 | /// <summary> |
50 | 52 | /// The id of the <see cref="AppEntity"/> that this is an instance of. |
51 | 53 | /// </summary> |
52 | | - public string AppId { get; set; } |
| 54 | + public string? AppId { get; set; } |
53 | 55 |
|
54 | 56 | /// <summary> |
55 | 57 | /// The user-friendly title of the app instance. |
56 | 58 | /// </summary> |
57 | | - public string Title { get; set; } |
| 59 | + public string? Title { get; set; } |
58 | 60 |
|
59 | 61 | /// <summary> |
60 | 62 | /// Values for the settings exposed by the app. |
@@ -95,7 +97,7 @@ public AppInstanceEntity() |
95 | 97 | /// The signal expression describing which events will be sent to the app; if <c>null</c>, |
96 | 98 | /// all events will reach the app. |
97 | 99 | /// </summary> |
98 | | - public SignalExpressionPart StreamedSignalExpression { get; set; } |
| 100 | + public SignalExpressionPart? StreamedSignalExpression { get; set; } |
99 | 101 |
|
100 | 102 | /// <summary> |
101 | 103 | /// If a value is specified, events will be buffered to disk and sorted by timestamp-order |
@@ -162,13 +164,15 @@ public AppInstanceEntity() |
162 | 164 | public bool? DisallowManualInput { get; set; } |
163 | 165 |
|
164 | 166 | /// <summary> |
165 | | - /// The name of the application. |
| 167 | + /// The name of the app. |
166 | 168 | /// </summary> |
167 | | - public string AppName { get; set; } |
| 169 | + [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] |
| 170 | + public string? AppName { get; set; } |
168 | 171 |
|
169 | 172 | /// <summary> |
170 | | - /// Is the application an input application? |
| 173 | + /// If <c>true</c>, then the app is able to write events to the log. |
171 | 174 | /// </summary> |
172 | | - public bool IsInput { get; set; } |
| 175 | + [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] |
| 176 | + public bool? IsInput { get; set; } |
173 | 177 | } |
174 | 178 | } |
0 commit comments