MonitoredResourceTask¶
- class oci.stack_monitoring.models.MonitoredResourceTask(**kwargs)¶
Bases:
objectThe request details for importing resources from Telemetry.
Attributes:
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
A constant which can be used with the lifecycle_state property of a MonitoredResourceTask.
[Required] Gets the compartment_id of this MonitoredResourceTask.
Gets the defined_tags of this MonitoredResourceTask.
Gets the freeform_tags of this MonitoredResourceTask.
[Required] Gets the id of this MonitoredResourceTask.
Gets the lifecycle_state of this MonitoredResourceTask.
[Required] Gets the name of this MonitoredResourceTask.
Gets the system_tags of this MonitoredResourceTask.
[Required] Gets the task_details of this MonitoredResourceTask.
Gets the tenant_id of this MonitoredResourceTask.
Gets the time_created of this MonitoredResourceTask.
Gets the time_updated of this MonitoredResourceTask.
Gets the type of this MonitoredResourceTask.
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.
type (str) – The value to assign to the type 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.
- property 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
- property 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))
- property 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)
- property id¶
[Required] Gets the id of this MonitoredResourceTask. Task identifier OCID.
- Returns
The id of this MonitoredResourceTask.
- Return type
str
- property 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
- property name¶
[Required] Gets the name of this MonitoredResourceTask. Name of the task.
- Returns
The name of this MonitoredResourceTask.
- Return type
str
- property 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))
- property task_details¶
[Required] Gets the task_details of this MonitoredResourceTask.
- Returns
The task_details of this MonitoredResourceTask.
- Return type
- property tenant_id¶
Gets the tenant_id of this MonitoredResourceTask. The OCID of the tenancy.
- Returns
The tenant_id of this MonitoredResourceTask.
- Return type
str
- property 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
- property 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
- property type¶
Gets the type of this MonitoredResourceTask. Type of the task.
- Returns
The type of this MonitoredResourceTask.
- Return type
str