MonitoredResourceTaskSummary

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

Bases: object

The summary details for the task.

Attributes

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

Methods

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

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

LIFECYCLE_STATE_CANCELED = 'CANCELED'

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

LIFECYCLE_STATE_CANCELING = 'CANCELING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary. This constant has a value of “SUCCEEDED”

LIFECYCLE_STATE_WAITING = 'WAITING'

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

__init__(**kwargs)

Initializes a new MonitoredResourceTaskSummary 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 MonitoredResourceTaskSummary.
  • name (str) – The value to assign to the name property of this MonitoredResourceTaskSummary.
  • task_details (oci.stack_monitoring.models.MonitoredResourceTaskDetails) – The value to assign to the task_details property of this MonitoredResourceTaskSummary.
  • work_request_ids (list[str]) – The value to assign to the work_request_ids property of this MonitoredResourceTaskSummary.
  • time_created (datetime) – The value to assign to the time_created property of this MonitoredResourceTaskSummary.
  • time_updated (datetime) – The value to assign to the time_updated property of this MonitoredResourceTaskSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this MonitoredResourceTaskSummary.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this MonitoredResourceTaskSummary.
defined_tags

Gets the defined_tags of this MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary.
Return type:dict(str, str)
id

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

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

Gets the lifecycle_state of this MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary.
Return type:str
name

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

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

Gets the system_tags of this MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary.
Return type:dict(str, dict(str, object))
task_details

[Required] Gets the task_details of this MonitoredResourceTaskSummary.

Returns:The task_details of this MonitoredResourceTaskSummary.
Return type:oci.stack_monitoring.models.MonitoredResourceTaskDetails
time_created

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

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

Gets the time_updated of this MonitoredResourceTaskSummary. 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 MonitoredResourceTaskSummary.
Return type:datetime
work_request_ids

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

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