ExecutionLogPolicy

class oci.apigateway.models.ExecutionLogPolicy(**kwargs)

Bases: object

Configures the logging policies for the execution logs of an API Deployment.

Attributes

LOG_LEVEL_ERROR A constant which can be used with the log_level property of a ExecutionLogPolicy.
LOG_LEVEL_INFO A constant which can be used with the log_level property of a ExecutionLogPolicy.
LOG_LEVEL_WARN A constant which can be used with the log_level property of a ExecutionLogPolicy.
is_enabled Gets the is_enabled of this ExecutionLogPolicy.
log_level Gets the log_level of this ExecutionLogPolicy.

Methods

__init__(**kwargs) Initializes a new ExecutionLogPolicy object with values from keyword arguments.
LOG_LEVEL_ERROR = 'ERROR'

A constant which can be used with the log_level property of a ExecutionLogPolicy. This constant has a value of “ERROR”

LOG_LEVEL_INFO = 'INFO'

A constant which can be used with the log_level property of a ExecutionLogPolicy. This constant has a value of “INFO”

LOG_LEVEL_WARN = 'WARN'

A constant which can be used with the log_level property of a ExecutionLogPolicy. This constant has a value of “WARN”

__init__(**kwargs)

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

Parameters:
  • is_enabled (bool) – The value to assign to the is_enabled property of this ExecutionLogPolicy.
  • log_level (str) – The value to assign to the log_level property of this ExecutionLogPolicy. Allowed values for this property are: “INFO”, “WARN”, “ERROR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
is_enabled

Gets the is_enabled of this ExecutionLogPolicy. Enables pushing of execution logs to the legacy OCI Object Storage log archival bucket.

Oracle recommends using the OCI Logging service to enable, retrieve, and query execution logs for an API Deployment. If there is an active log object for the API Deployment and its category is set to ‘execution’ in OCI Logging service, the logs will not be uploaded to the legacy OCI Object Storage log archival bucket.

Please note that the functionality to push to the legacy OCI Object Storage log archival bucket has been deprecated and will be removed in the future.

Returns:The is_enabled of this ExecutionLogPolicy.
Return type:bool
log_level

Gets the log_level of this ExecutionLogPolicy. Specifies the log level used to control logging output of execution logs. Enabling logging at a given level also enables logging at all higher levels.

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

Returns:The log_level of this ExecutionLogPolicy.
Return type:str