CreateStandardTaskDetails¶
- class oci.log_analytics.models.CreateStandardTaskDetails(**kwargs)¶
Bases:
CreateScheduledTaskDetailsDetails for creating a scheduled task. The client must fully specify the details. Not supported for TaskType ACCELERATION.
Attributes:
A constant which can be used with the kind property of a CreateScheduledTaskDetails.
A constant which can be used with the kind property of a CreateScheduledTaskDetails.
A constant which can be used with the task_type property of a CreateStandardTaskDetails.
A constant which can be used with the task_type property of a CreateStandardTaskDetails.
A constant which can be used with the task_type property of a CreateStandardTaskDetails.
[Required] Gets the action of this CreateStandardTaskDetails.
[Required] Gets the compartment_id of this CreateScheduledTaskDetails.
Gets the defined_tags of this CreateScheduledTaskDetails.
Gets the description of this CreateScheduledTaskDetails.
Gets the display_name of this CreateScheduledTaskDetails.
Gets the freeform_tags of this CreateScheduledTaskDetails.
[Required] Gets the kind of this CreateScheduledTaskDetails.
Gets the schedules of this CreateStandardTaskDetails.
[Required] Gets the task_type of this CreateStandardTaskDetails.
Methods:
__init__(**kwargs)Initializes a new CreateStandardTaskDetails 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.
- KIND_ACCELERATION = 'ACCELERATION'¶
A constant which can be used with the kind property of a CreateScheduledTaskDetails. This constant has a value of “ACCELERATION”
- KIND_STANDARD = 'STANDARD'¶
A constant which can be used with the kind property of a CreateScheduledTaskDetails. This constant has a value of “STANDARD”
- TASK_TYPE_ACCELERATION = 'ACCELERATION'¶
A constant which can be used with the task_type property of a CreateStandardTaskDetails. This constant has a value of “ACCELERATION”
- TASK_TYPE_PURGE = 'PURGE'¶
A constant which can be used with the task_type property of a CreateStandardTaskDetails. This constant has a value of “PURGE”
- TASK_TYPE_SAVED_SEARCH = 'SAVED_SEARCH'¶
A constant which can be used with the task_type property of a CreateStandardTaskDetails. This constant has a value of “SAVED_SEARCH”
- __init__(**kwargs)¶
Initializes a new CreateStandardTaskDetails object with values from keyword arguments. The default value of the
kindattribute of this class isSTANDARDand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
kind (str) – The value to assign to the kind property of this CreateStandardTaskDetails. Allowed values for this property are: “ACCELERATION”, “STANDARD”
compartment_id (str) – The value to assign to the compartment_id property of this CreateStandardTaskDetails.
display_name (str) – The value to assign to the display_name property of this CreateStandardTaskDetails.
description (str) – The value to assign to the description property of this CreateStandardTaskDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateStandardTaskDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateStandardTaskDetails.
task_type (str) – The value to assign to the task_type property of this CreateStandardTaskDetails. Allowed values for this property are: “SAVED_SEARCH”, “ACCELERATION”, “PURGE”
schedules (list[oci.log_analytics.models.Schedule]) – The value to assign to the schedules property of this CreateStandardTaskDetails.
action (oci.log_analytics.models.Action) – The value to assign to the action property of this CreateStandardTaskDetails.
- property action¶
[Required] Gets the action of this CreateStandardTaskDetails.
- Returns
The action of this CreateStandardTaskDetails.
- Return type
- property compartment_id¶
[Required] Gets the compartment_id of this CreateScheduledTaskDetails. Compartment Identifier OCID].
- Returns
The compartment_id of this CreateScheduledTaskDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateScheduledTaskDetails. 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 CreateScheduledTaskDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this CreateScheduledTaskDetails. Description for this resource.
- Returns
The description of this CreateScheduledTaskDetails.
- Return type
str
- property display_name¶
Gets the display_name of this CreateScheduledTaskDetails. A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
- Returns
The display_name of this CreateScheduledTaskDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateScheduledTaskDetails. 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 CreateScheduledTaskDetails.
- Return type
dict(str, 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.
- property kind¶
[Required] Gets the kind of this CreateScheduledTaskDetails. Discriminator.
Allowed values for this property are: “ACCELERATION”, “STANDARD”
- Returns
The kind of this CreateScheduledTaskDetails.
- Return type
str
- property schedules¶
Gets the schedules of this CreateStandardTaskDetails. Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
- Returns
The schedules of this CreateStandardTaskDetails.
- Return type
- property task_type¶
[Required] Gets the task_type of this CreateStandardTaskDetails. Task type.
Allowed values for this property are: “SAVED_SEARCH”, “ACCELERATION”, “PURGE”
- Returns
The task_type of this CreateStandardTaskDetails.
- Return type
str