DataSource

class oci.management_agent.models.DataSource(**kwargs)

Bases: object

A representation of a source configuration setup in the Management Agent.

Attributes

STATE_ACTIVE A constant which can be used with the state property of a DataSource.
STATE_CREATING A constant which can be used with the state property of a DataSource.
STATE_DELETED A constant which can be used with the state property of a DataSource.
STATE_DELETING A constant which can be used with the state property of a DataSource.
STATE_FAILED A constant which can be used with the state property of a DataSource.
STATE_INACTIVE A constant which can be used with the state property of a DataSource.
STATE_TERMINATED A constant which can be used with the state property of a DataSource.
STATE_UPDATING A constant which can be used with the state property of a DataSource.
TYPE_KUBERNETES_CLUSTER A constant which can be used with the type property of a DataSource.
TYPE_PROMETHEUS_EMITTER A constant which can be used with the type property of a DataSource.
compartment_id [Required] Gets the compartment_id of this DataSource.
key [Required] Gets the key of this DataSource.
name [Required] Gets the name of this DataSource.
state [Required] Gets the state of this DataSource.
time_created [Required] Gets the time_created of this DataSource.
time_updated [Required] Gets the time_updated of this DataSource.
type [Required] Gets the type of this DataSource.

Methods

__init__(**kwargs) Initializes a new DataSource 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.
STATE_ACTIVE = 'ACTIVE'

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

STATE_CREATING = 'CREATING'

A constant which can be used with the state property of a DataSource. This constant has a value of “CREATING”

STATE_DELETED = 'DELETED'

A constant which can be used with the state property of a DataSource. This constant has a value of “DELETED”

STATE_DELETING = 'DELETING'

A constant which can be used with the state property of a DataSource. This constant has a value of “DELETING”

STATE_FAILED = 'FAILED'

A constant which can be used with the state property of a DataSource. This constant has a value of “FAILED”

STATE_INACTIVE = 'INACTIVE'

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

STATE_TERMINATED = 'TERMINATED'

A constant which can be used with the state property of a DataSource. This constant has a value of “TERMINATED”

STATE_UPDATING = 'UPDATING'

A constant which can be used with the state property of a DataSource. This constant has a value of “UPDATING”

TYPE_KUBERNETES_CLUSTER = 'KUBERNETES_CLUSTER'

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

TYPE_PROMETHEUS_EMITTER = 'PROMETHEUS_EMITTER'

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

__init__(**kwargs)

Initializes a new DataSource object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • key (str) – The value to assign to the key property of this DataSource.
  • type (str) – The value to assign to the type property of this DataSource. Allowed values for this property are: “KUBERNETES_CLUSTER”, “PROMETHEUS_EMITTER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • name (str) – The value to assign to the name property of this DataSource.
  • compartment_id (str) – The value to assign to the compartment_id property of this DataSource.
  • state (str) – The value to assign to the state property of this DataSource. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “TERMINATED”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_created (datetime) – The value to assign to the time_created property of this DataSource.
  • time_updated (datetime) – The value to assign to the time_updated property of this DataSource.
compartment_id

[Required] Gets the compartment_id of this DataSource. Compartment owning this DataSource.

Returns:The compartment_id of this DataSource.
Return type:str
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.

key

[Required] Gets the key of this DataSource. Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.

Returns:The key of this DataSource.
Return type:str
name

[Required] Gets the name of this DataSource. Unique name of the DataSource.

Returns:The name of this DataSource.
Return type:str
state

[Required] Gets the state of this DataSource. State of the DataSource.

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

Returns:The state of this DataSource.
Return type:str
time_created

[Required] Gets the time_created of this DataSource. The time the DataSource was created. An RFC3339 formatted datetime string

Returns:The time_created of this DataSource.
Return type:datetime
time_updated

[Required] Gets the time_updated of this DataSource. The time the DataSource data was last received. An RFC3339 formatted datetime string

Returns:The time_updated of this DataSource.
Return type:datetime
type

[Required] Gets the type of this DataSource. The type of the DataSource.

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

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