LoggingDestinationConfiguration

class oci.mysql.models.LoggingDestinationConfiguration(**kwargs)

Bases: object

Configuration parameters for a given destination.

Attributes

DESTINATION_LOG_ANALYTICS A constant which can be used with the destination property of a LoggingDestinationConfiguration.
DESTINATION_OPEN_TELEMETRY A constant which can be used with the destination property of a LoggingDestinationConfiguration.
LOG_TYPES_AUDIT_LOG A constant which can be used with the log_types property of a LoggingDestinationConfiguration.
LOG_TYPES_ERROR_LOG A constant which can be used with the log_types property of a LoggingDestinationConfiguration.
LOG_TYPES_GENERAL_LOG A constant which can be used with the log_types property of a LoggingDestinationConfiguration.
LOG_TYPES_SLOW_QUERY_LOG A constant which can be used with the log_types property of a LoggingDestinationConfiguration.
destination [Required] Gets the destination of this LoggingDestinationConfiguration.
destination_configurations [Required] Gets the destination_configurations of this LoggingDestinationConfiguration.
log_types [Required] Gets the log_types of this LoggingDestinationConfiguration.

Methods

__init__(**kwargs) Initializes a new LoggingDestinationConfiguration object with values from keyword arguments.
DESTINATION_LOG_ANALYTICS = 'LOG_ANALYTICS'

A constant which can be used with the destination property of a LoggingDestinationConfiguration. This constant has a value of “LOG_ANALYTICS”

DESTINATION_OPEN_TELEMETRY = 'OPEN_TELEMETRY'

A constant which can be used with the destination property of a LoggingDestinationConfiguration. This constant has a value of “OPEN_TELEMETRY”

LOG_TYPES_AUDIT_LOG = 'AUDIT_LOG'

A constant which can be used with the log_types property of a LoggingDestinationConfiguration. This constant has a value of “AUDIT_LOG”

LOG_TYPES_ERROR_LOG = 'ERROR_LOG'

A constant which can be used with the log_types property of a LoggingDestinationConfiguration. This constant has a value of “ERROR_LOG”

LOG_TYPES_GENERAL_LOG = 'GENERAL_LOG'

A constant which can be used with the log_types property of a LoggingDestinationConfiguration. This constant has a value of “GENERAL_LOG”

LOG_TYPES_SLOW_QUERY_LOG = 'SLOW_QUERY_LOG'

A constant which can be used with the log_types property of a LoggingDestinationConfiguration. This constant has a value of “SLOW_QUERY_LOG”

__init__(**kwargs)

Initializes a new LoggingDestinationConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • destination (str) – The value to assign to the destination property of this LoggingDestinationConfiguration. Allowed values for this property are: “LOG_ANALYTICS”, “OPEN_TELEMETRY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • destination_configurations (list[oci.mysql.models.DestinationConfiguration]) – The value to assign to the destination_configurations property of this LoggingDestinationConfiguration.
  • log_types (list[str]) – The value to assign to the log_types property of this LoggingDestinationConfiguration. Allowed values for items in this list are: “ERROR_LOG”, “GENERAL_LOG”, “SLOW_QUERY_LOG”, “AUDIT_LOG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
destination

[Required] Gets the destination of this LoggingDestinationConfiguration. Type of destination where MySQL telemetry is exposed to.

Allowed values for this property are: “LOG_ANALYTICS”, “OPEN_TELEMETRY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The destination of this LoggingDestinationConfiguration.
Return type:str
destination_configurations

[Required] Gets the destination_configurations of this LoggingDestinationConfiguration. List of configuration variables for a given destination type.

Returns:The destination_configurations of this LoggingDestinationConfiguration.
Return type:list[oci.mysql.models.DestinationConfiguration]
log_types

[Required] Gets the log_types of this LoggingDestinationConfiguration. List of MySQL telemetry types that can be exposed on a telemetry destination

Allowed values for items in this list are: “ERROR_LOG”, “GENERAL_LOG”, “SLOW_QUERY_LOG”, “AUDIT_LOG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The log_types of this LoggingDestinationConfiguration.
Return type:list[str]