models_v2.syslog_server module¶
-
class
models_v2.syslog_server.
SyslogServer
(id=None, ip=None, port=None, protocol=None, name=None, enabled=None, facility_list=None, program_name_list=None, msg_pattern_list=None, raw_msg_pattern_list=None, is_tls_enabled=None, ca_certificate=None)[source]¶ Bases:
object
Implementation of the ‘Syslog Server.’ model.
Specifies information about syslog server.
- Attributes:
id (int): The id of the syslog server. ip (string): Specifies the IP address or hostname of the syslog
server.
port (int): Specifies the port where the syslog server listens. protocol (string): Specifies the protocol used to send the logs. name (string): Specifies a unique name for the syslog server on the
Cluster.
- enabled (bool): Specifies whether to enable the syslog server on the
Cluster.
- facility_list (list of string): Send enabled syslog facilities related
logs to logging server.
- program_name_list (list of string): Send programes related logs to
logging server.
- msg_pattern_list (list of string): Send logs including the msg
patterns to logging server.
- raw_msg_pattern_list (list of string): Send logs including the msg
patterns to logging server.
is_tls_enabled (bool): Specify whether to enable tls support. ca_certificate (string): Syslog server CA certificate.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.