OciLoggingConfiguration

class oci.batch.models.OciLoggingConfiguration(**kwargs)

Bases: LoggingConfiguration

Logging configuration for OCI Logging service.

Attributes:

TYPE_OCI_LOGGING

A constant which can be used with the type property of a LoggingConfiguration.

is_job_task_events_propagation_enabled

Gets the is_job_task_events_propagation_enabled of this OciLoggingConfiguration.

log_group_id

[Required] Gets the log_group_id of this OciLoggingConfiguration.

log_id

[Required] Gets the log_id of this OciLoggingConfiguration.

type

[Required] Gets the type of this LoggingConfiguration.

Methods:

__init__(**kwargs)

Initializes a new OciLoggingConfiguration object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

TYPE_OCI_LOGGING = 'OCI_LOGGING'

A constant which can be used with the type property of a LoggingConfiguration. This constant has a value of “OCI_LOGGING”

__init__(**kwargs)

Initializes a new OciLoggingConfiguration object with values from keyword arguments. The default value of the type attribute of this class is OCI_LOGGING and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • type (str) – The value to assign to the type property of this OciLoggingConfiguration. Allowed values for this property are: “OCI_LOGGING”

  • log_group_id (str) – The value to assign to the log_group_id property of this OciLoggingConfiguration.

  • log_id (str) – The value to assign to the log_id property of this OciLoggingConfiguration.

  • is_job_task_events_propagation_enabled (bool) – The value to assign to the is_job_task_events_propagation_enabled property of this OciLoggingConfiguration.

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property is_job_task_events_propagation_enabled

Gets the is_job_task_events_propagation_enabled of this OciLoggingConfiguration. A switch to enable or disable propagation of job and task events to the customer’s logs in OCI logging service.

Returns

The is_job_task_events_propagation_enabled of this OciLoggingConfiguration.

Return type

bool

property log_group_id

[Required] Gets the log_group_id of this OciLoggingConfiguration. The OCID of the log group.

Returns

The log_group_id of this OciLoggingConfiguration.

Return type

str

property log_id

[Required] Gets the log_id of this OciLoggingConfiguration. The OCID of the log.

Returns

The log_id of this OciLoggingConfiguration.

Return type

str

property type

[Required] Gets the type of this LoggingConfiguration. Type of the logging configuration. Discriminator for sub-entities.

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

Returns

The type of this LoggingConfiguration.

Return type

str