Skip to content

Commit 395a16a

Browse files
authored
Merge pull request #92 from datalust/dev
2020.5 Release
2 parents 83b5b9e + f1d45b8 commit 395a16a

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

src/Seq.Api/Model/Apps/AppSettingPart.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
using System.Collections.Generic;
16+
1517
namespace Seq.Api.Model.Apps
1618
{
1719
/// <summary>
@@ -40,11 +42,17 @@ public class AppSettingPart
4042
public string HelpText { get; set; }
4143

4244
/// <summary>
43-
/// The type of value accepted for the setting; valid values are <c>Text</c>,
45+
/// The type of value accepted for the setting; valid values are <c>Text</c>, <c>Select</c>,
4446
/// <c>LongText</c>, <c>Checkbox</c>, <c>Integer</c>, <c>Decimal</c>, and <c>Password</c>.
4547
/// </summary>
4648
/// <remarks>An enum was historically not used here in order to improve
4749
/// forwards/backwards compatibility.</remarks>
4850
public string Type { get; set; }
51+
52+
/// <summary>
53+
/// For settings of <see cref="Type"/> <c>Select</c>, a description of the values that can be chosen
54+
/// for the setting.
55+
/// </summary>
56+
public List<AppSettingValuePart> AllowedValues { get; set; } = new List<AppSettingValuePart>();
4957
}
5058
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
namespace Seq.Api.Model.Apps
2+
{
3+
/// <summary>
4+
/// Describes a value accepted for an <see cref="AppSettingPart"/> with type <c>Select</c>.
5+
/// </summary>
6+
public class AppSettingValuePart
7+
{
8+
/// <summary>
9+
/// The value accepted for the setting.
10+
/// </summary>
11+
public string Value { get; set; }
12+
13+
/// <summary>
14+
/// Optionally, a description of the value, which Seq will use as the value's label in the UI. By default,
15+
/// the <see cref="Value"/> will be used as the label.
16+
/// </summary>
17+
public string Description { get; set; }
18+
}
19+
}

src/Seq.Api/Model/Workspaces/WorkspaceEntity.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
using Seq.Api.Model.Security;
16+
using Seq.Api.Model.Signals;
1617

1718
namespace Seq.Api.Model.Workspaces
1819
{
@@ -42,6 +43,12 @@ public class WorkspaceEntity : Entity
4243
/// </summary>
4344
public bool IsProtected { get; set; }
4445

46+
/// <summary>
47+
/// An optional <see cref="SignalExpressionPart"/> that will be activated when opening the <em>Events</em>
48+
/// screen with the workspace selected.
49+
/// </summary>
50+
public SignalExpressionPart DefaultSignalExpression { get; set; }
51+
4552
/// <summary>
4653
/// Content included in the workspace.
4754
/// </summary>

src/Seq.Api/Seq.Api.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Description>Client library for the Seq HTTP API.</Description>
4-
<VersionPrefix>2020.4.0</VersionPrefix>
4+
<VersionPrefix>2020.5.0</VersionPrefix>
55
<Authors>Datalust;Contributors</Authors>
66
<TargetFramework>netstandard2.0</TargetFramework>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

0 commit comments

Comments
 (0)