MonitoredResourceTask

class oci.stack_monitoring.models.MonitoredResourceTask(**kwargs)

Bases: object

The request details for importing resources from Telemetry.

Attributes

LIFECYCLE_STATE_ACCEPTED A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
LIFECYCLE_STATE_CANCELED A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
LIFECYCLE_STATE_CANCELING A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
LIFECYCLE_STATE_IN_PROGRESS A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
LIFECYCLE_STATE_NEEDS_ATTENTION A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
LIFECYCLE_STATE_SUCCEEDED A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
LIFECYCLE_STATE_WAITING A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
compartment_id [Required] Gets the compartment_id of this MonitoredResourceTask.
defined_tags Gets the defined_tags of this MonitoredResourceTask.
freeform_tags Gets the freeform_tags of this MonitoredResourceTask.
id [Required] Gets the id of this MonitoredResourceTask.
lifecycle_state Gets the lifecycle_state of this MonitoredResourceTask.
name [Required] Gets the name of this MonitoredResourceTask.
system_tags Gets the system_tags of this MonitoredResourceTask.
task_details [Required] Gets the task_details of this MonitoredResourceTask.
tenant_id Gets the tenant_id of this MonitoredResourceTask.
time_created Gets the time_created of this MonitoredResourceTask.
time_updated Gets the time_updated of this MonitoredResourceTask.
work_request_ids Gets the work_request_ids of this MonitoredResourceTask.

Methods

__init__(**kwargs) Initializes a new MonitoredResourceTask object with values from keyword arguments.
LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED'

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

LIFECYCLE_STATE_CANCELED = 'CANCELED'

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

LIFECYCLE_STATE_CANCELING = 'CANCELING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'

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

LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'

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

LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'

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

LIFECYCLE_STATE_WAITING = 'WAITING'

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

__init__(**kwargs)

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

Parameters:
  • id (str) – The value to assign to the id property of this MonitoredResourceTask.
  • name (str) – The value to assign to the name property of this MonitoredResourceTask.
  • compartment_id (str) – The value to assign to the compartment_id property of this MonitoredResourceTask.
  • tenant_id (str) – The value to assign to the tenant_id property of this MonitoredResourceTask.
  • task_details (oci.stack_monitoring.models.MonitoredResourceTaskDetails) – The value to assign to the task_details property of this MonitoredResourceTask.
  • work_request_ids (list[str]) – The value to assign to the work_request_ids property of this MonitoredResourceTask.
  • time_created (datetime) – The value to assign to the time_created property of this MonitoredResourceTask.
  • time_updated (datetime) – The value to assign to the time_updated property of this MonitoredResourceTask.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this MonitoredResourceTask. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “WAITING”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, “NEEDS_ATTENTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this MonitoredResourceTask.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this MonitoredResourceTask.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this MonitoredResourceTask.
compartment_id

[Required] Gets the compartment_id of this MonitoredResourceTask. The OCID of the compartment identifier.

Returns:The compartment_id of this MonitoredResourceTask.
Return type:str
defined_tags

Gets the defined_tags of this MonitoredResourceTask. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this MonitoredResourceTask.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this MonitoredResourceTask. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this MonitoredResourceTask.
Return type:dict(str, str)
id

[Required] Gets the id of this MonitoredResourceTask. Task identifier OCID.

Returns:The id of this MonitoredResourceTask.
Return type:str
lifecycle_state

Gets the lifecycle_state of this MonitoredResourceTask. The current state of the stack monitoring resource task.

Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “WAITING”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, “NEEDS_ATTENTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this MonitoredResourceTask.
Return type:str
name

[Required] Gets the name of this MonitoredResourceTask. Name of the task.

Returns:The name of this MonitoredResourceTask.
Return type:str
system_tags

Gets the system_tags of this MonitoredResourceTask. Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this MonitoredResourceTask.
Return type:dict(str, dict(str, object))
task_details

[Required] Gets the task_details of this MonitoredResourceTask.

Returns:The task_details of this MonitoredResourceTask.
Return type:oci.stack_monitoring.models.MonitoredResourceTaskDetails
tenant_id

Gets the tenant_id of this MonitoredResourceTask. The OCID of the tenancy.

Returns:The tenant_id of this MonitoredResourceTask.
Return type:str
time_created

Gets the time_created of this MonitoredResourceTask. The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.

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

Gets the time_updated of this MonitoredResourceTask. The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.

Returns:The time_updated of this MonitoredResourceTask.
Return type:datetime
work_request_ids

Gets the work_request_ids of this MonitoredResourceTask. Identifiers OCID for work requests submitted for this task.

Returns:The work_request_ids of this MonitoredResourceTask.
Return type:list[str]