LogEntry

class oci.resource_manager.models.LogEntry(**kwargs)

Bases: object

Log entry for an operation resulting from a job’s execution.

Attributes

LEVEL_DEBUG A constant which can be used with the level property of a LogEntry.
LEVEL_ERROR A constant which can be used with the level property of a LogEntry.
LEVEL_FATAL A constant which can be used with the level property of a LogEntry.
LEVEL_INFO A constant which can be used with the level property of a LogEntry.
LEVEL_TRACE A constant which can be used with the level property of a LogEntry.
LEVEL_WARN A constant which can be used with the level property of a LogEntry.
TYPE_TERRAFORM_CONSOLE A constant which can be used with the type property of a LogEntry.
level Gets the level of this LogEntry.
message Gets the message of this LogEntry.
timestamp Gets the timestamp of this LogEntry.
type Gets the type of this LogEntry.

Methods

__init__(**kwargs) Initializes a new LogEntry object with values from keyword arguments.
LEVEL_DEBUG = 'DEBUG'

A constant which can be used with the level property of a LogEntry. This constant has a value of “DEBUG”

LEVEL_ERROR = 'ERROR'

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

LEVEL_FATAL = 'FATAL'

A constant which can be used with the level property of a LogEntry. This constant has a value of “FATAL”

LEVEL_INFO = 'INFO'

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

LEVEL_TRACE = 'TRACE'

A constant which can be used with the level property of a LogEntry. This constant has a value of “TRACE”

LEVEL_WARN = 'WARN'

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

TYPE_TERRAFORM_CONSOLE = 'TERRAFORM_CONSOLE'

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

__init__(**kwargs)

Initializes a new LogEntry object with values from keyword arguments. 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 LogEntry. Allowed values for this property are: “TERRAFORM_CONSOLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • level (str) – The value to assign to the level property of this LogEntry. Allowed values for this property are: “TRACE”, “DEBUG”, “INFO”, “WARN”, “ERROR”, “FATAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • timestamp (datetime) – The value to assign to the timestamp property of this LogEntry.
  • message (str) – The value to assign to the message property of this LogEntry.
level

Gets the level of this LogEntry. Specifies the severity level of the log entry.

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

Returns:The level of this LogEntry.
Return type:str
message

Gets the message of this LogEntry. The log entry value.

Returns:The message of this LogEntry.
Return type:str
timestamp

Gets the timestamp of this LogEntry. The date and time of the log entry. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z

Returns:The timestamp of this LogEntry.
Return type:datetime
type

Gets the type of this LogEntry. Specifies the log type for the log entry.

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

Returns:The type of this LogEntry.
Return type:str