Show / Hide Table of Contents

Class ScheduledTask

Log analytics scheduled task resource.

Inheritance
object
ScheduledTask
StandardTask
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.LoganalyticsService.Models
Assembly: OCI.DotNetSDK.Loganalytics.dll
Syntax
[JsonConverter(typeof(ScheduledTaskModelConverter))]
public class ScheduledTask

Properties

Action

Declaration
[Required(ErrorMessage = "Action is required.")]
[JsonProperty(PropertyName = "action")]
public Action Action { get; set; }
Property Value
Type Description
Action
Remarks

Required

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Remarks

Required

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}}

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

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.

Remarks

Required

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The OCID of the data plane resource.

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ScheduledTask.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
ScheduledTask.LifecycleStateEnum?

The current state of the scheduled task.

Remarks

Required

NumOccurrences

Declaration
[JsonProperty(PropertyName = "numOccurrences")]
public long? NumOccurrences { get; set; }
Property Value
Type Description
long?

Number of execution occurrences.

PauseReason

Declaration
[JsonProperty(PropertyName = "pauseReason")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ScheduledTask.PauseReasonEnum? PauseReason { get; set; }
Property Value
Type Description
ScheduledTask.PauseReasonEnum?

reason for taskStatus PAUSED.

Schedules

Declaration
[Required(ErrorMessage = "Schedules is required.")]
[JsonProperty(PropertyName = "schedules")]
public List<Schedule> Schedules { get; set; }
Property Value
Type Description
List<Schedule>

Schedules.

Remarks

Required

TaskStatus

Declaration
[JsonProperty(PropertyName = "taskStatus")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ScheduledTask.TaskStatusEnum? TaskStatus { get; set; }
Property Value
Type Description
ScheduledTask.TaskStatusEnum?

Status of the scheduled task.

TaskType

Declaration
[Required(ErrorMessage = "TaskType is required.")]
[JsonProperty(PropertyName = "taskType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public TaskType? TaskType { get; set; }
Property Value
Type Description
TaskType?

Task type.

Remarks

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the scheduled task was created, in the format defined by RFC3339.

Remarks

Required

TimeOfNextExecution

Declaration
[JsonProperty(PropertyName = "timeOfNextExecution")]
public DateTime? TimeOfNextExecution { get; set; }
Property Value
Type Description
DateTime?

The date and time the scheduled task will execute next, in the format defined by RFC3339.

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The date and time the scheduled task was last updated, in the format defined by RFC3339.

Remarks

Required

WorkRequestId

Declaration
[JsonProperty(PropertyName = "workRequestId")]
public string WorkRequestId { get; set; }
Property Value
Type Description
string

most recent Work Request Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the asynchronous request.

In this article
Back to top