2using System.Threading.Tasks;
59 [Page(7,
"Configuration")]
60 [Header(179,
"Host:")]
61 [ToolTip(180,
"Host name of recipient.")]
63 public string Host {
get;
set; }
68 [Page(7,
"Configuration")]
69 [Header(161,
"Port:")]
70 [ToolTip(181,
"Port number of the recipient.")]
72 public int Port {
get;
set; }
77 [Page(7,
"Configuration")]
78 [Header(163,
"Use Encryption (TLS)")]
79 [ToolTip(182,
"If TLS is used to connect to the recipient.")]
80 public bool Tls {
get;
set; }
85 [Page(7,
"Configuration")]
86 [Header(110,
"Name:")]
87 [ToolTip(239,
"Sender Name as presented to recipient.")]
89 public string Name {
get;
set; }
94 [Page(7,
"Configuration")]
95 [Header(240,
"Event Separation:")]
96 [ToolTip(241,
"How events are separated in the Syslog stream.")]
121 LinkedList<Parameter> Parameters = (LinkedList<Parameter>)await base.GetDisplayableParametersAsync(
Language, Caller);
135 public override void Export(XmlWriter Output)
137 Output.WriteStartElement(
"SyslogEventSink");
138 Output.WriteAttributeString(
"id", this.
SinkId);
139 Output.WriteAttributeString(
"name", this.
Name);
140 Output.WriteAttributeString(
"host", this.
Host);
141 Output.WriteAttributeString(
"port", this.
Port.ToString());
143 Output.WriteAttributeString(
"separation", this.
Separation.ToString());
144 Output.WriteEndElement();
Helps with parsing of commong data types.
static string Encode(bool x)
Encodes a Boolean for use in XML and other formats.
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
async Task< Namespace > GetNamespaceAsync(string Name)
Gets the namespace object, given its name, if available.
Contains information about a namespace in a language.
Task< LanguageString > GetStringAsync(int Id)
Gets the string object, given its ID, if available.
Abstract base class for gateway configuration nodes.
virtual INode Parent
Parent Node, or null if a root node.
GatewayConfigSource Source
Source hosting the node.
Abstract base class for event sink nodes.
string SinkId
Domain being redirected.
Representation of a SyslogEventSink
override void Export(XmlWriter Output)
Exports the event sink definition to XML.
SyslogEventSeparation Separation
Host name of recipient.
int Port
Port number of the recipient.
string Host
Host name of recipient.
SyslogEventSinkNode(GatewayConfigSource Source, ConfigurationNode Parent, string SinkId, string Host, int Port, bool Tls, string Name, SyslogEventSeparation Separation)
Representation of a SyslogEventSink
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
override async Task< IEnumerable< Parameter > > GetDisplayableParametersAsync(Language Language, RequestOrigin Caller)
Gets displayable parameters.
string Name
Host name of recipient.
SyslogEventSinkNode()
Representation of a SyslogEventSink
bool Tls
If events should be collected based on their type.
Data source mirroring the Gateway.config file.
References a port number.
Defines the name of a variable.
Boolean-valued parameter.
Tokens available in request.
SyslogEventSeparation
How events are separated in the Syslog event stream.