-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathApiAlarmsBrowseFilterAttribute.cs
More file actions
53 lines (52 loc) · 1.9 KB
/
ApiAlarmsBrowseFilterAttribute.cs
File metadata and controls
53 lines (52 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) 2026, Siemens AG
//
// SPDX-License-Identifier: MIT
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime.Serialization;
namespace Siemens.Simatic.S7.Webserver.API.Enums
{
/// <summary>
/// Possible filters for ApiAlarmsBrowse request
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ApiAlarmsBrowseFilterAttribute
{
/// <summary>
/// Filter for the alarm text.
/// </summary>
[EnumMember(Value = "alarm_text")]
AlarmText = 1,
/// <summary>
/// Filter for the info text.
/// </summary>
[EnumMember(Value = "info_text")]
InfoText = 2,
/// <summary>
/// Filter for the alarm status. The value will contain either "incoming" or "outgoing".
/// </summary>
[EnumMember(Value = "status")]
Status = 3,
/// <summary>
/// Filter for the UTC timestamp on when the alarm went into incoming or outgoing state, provided as ISO 8601 string. <br/>
/// This attribute does not consider the timestamp of acknowledgement. The precision will be in nanoseconds.
/// </summary>
[EnumMember(Value = "timestamp")]
Timestamp = 4,
/// <summary>
/// Filter for the acknowledgement. The acknowledgement exist if the alarm is acknowledgeable. If the alarm was not configured as acknowledgeable alarm, then no acknowledgement will be returned regardless of this filter.
/// </summary>
[EnumMember(Value = "acknowledgement")]
Acknowledgement = 5,
/// <summary>
/// Filter for the the alarm number.
/// </summary>
[EnumMember(Value = "alarm_number")]
AlarmNumber = 6,
/// <summary>
/// Filter for the producer of the alarm.
/// </summary>
[EnumMember(Value = "producer")]
Producer = 7
}
}