Namespace

class oci.log_analytics.models.Namespace(**kwargs)

Bases: object

This is the namespace details of a tenancy in Log Analytics application

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a Namespace.

LIFECYCLE_STATE_INACTIVE

A constant which can be used with the lifecycle_state property of a Namespace.

compartment_id

[Required] Gets the compartment_id of this Namespace.

is_archiving_enabled

Gets the is_archiving_enabled of this Namespace.

is_data_ever_ingested

Gets the is_data_ever_ingested of this Namespace.

is_log_set_enabled

Gets the is_log_set_enabled of this Namespace.

is_onboarded

[Required] Gets the is_onboarded of this Namespace.

lifecycle_state

Gets the lifecycle_state of this Namespace.

namespace_name

[Required] Gets the namespace_name of this Namespace.

Methods:

__init__(**kwargs)

Initializes a new Namespace object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a Namespace. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a Namespace. This constant has a value of “INACTIVE”

__init__(**kwargs)

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

Parameters
  • namespace_name (str) – The value to assign to the namespace_name property of this Namespace.

  • compartment_id (str) – The value to assign to the compartment_id property of this Namespace.

  • is_onboarded (bool) – The value to assign to the is_onboarded property of this Namespace.

  • is_log_set_enabled (bool) – The value to assign to the is_log_set_enabled property of this Namespace.

  • is_data_ever_ingested (bool) – The value to assign to the is_data_ever_ingested property of this Namespace.

  • is_archiving_enabled (bool) – The value to assign to the is_archiving_enabled property of this Namespace.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Namespace. Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property compartment_id

[Required] Gets the compartment_id of this Namespace. The is the tenancy ID

Returns

The compartment_id of this Namespace.

Return type

str

property is_archiving_enabled

Gets the is_archiving_enabled of this Namespace. This indicates if old data can be archived for a tenancy

Returns

The is_archiving_enabled of this Namespace.

Return type

bool

property is_data_ever_ingested

Gets the is_data_ever_ingested of this Namespace. This indicates if data has ever been ingested for the tenancy in Log Analytics

Returns

The is_data_ever_ingested of this Namespace.

Return type

bool

property is_log_set_enabled

Gets the is_log_set_enabled of this Namespace. This indicates if the log set feature is enabled for the tenancy

Returns

The is_log_set_enabled of this Namespace.

Return type

bool

property is_onboarded

[Required] Gets the is_onboarded of this Namespace. This indicates if the tenancy is onboarded to Log Analytics

Returns

The is_onboarded of this Namespace.

Return type

bool

property lifecycle_state

Gets the lifecycle_state of this Namespace. The current state of the compartment.

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

Returns

The lifecycle_state of this Namespace.

Return type

str

property namespace_name

[Required] Gets the namespace_name of this Namespace. This is the namespace name of a tenancy

Returns

The namespace_name of this Namespace.

Return type

str