Options
All
  • Public
  • Public/Protected
  • All
Menu

ScheduleApi provides operations used to query, manage, and run schedule tasks.

Hierarchy

  • ScheduleApi

Index

Methods

addScheduleTask

  • Adds a schedule task.

    Parameters

    • name: string

      the name of the schedule task.

    • enabled: boolean

      true to enable the task; false to disable the task.

    • conditions: ScheduleCondition[]

      the list of conditions for the task.

    • actions: ScheduleAction[]

      the list of actions performed by the task.

    Returns Promise<void>

addTaskAction

addTaskCondition

getScheduleTask

getScheduleTasks

getTaskAction

getTaskActions

getTaskCondition

getTaskConditions

getTaskStatus

removeScheduleTask

  • removeScheduleTask(name: string): Promise<void>

removeTaskAction

  • removeTaskAction(name: string, index: number): Promise<void>
  • Removes a action of a schedule task.

    Parameters

    • name: string

      the name of the schedule task.

    • index: number

      the zero-based index of the action.

    Returns Promise<void>

removeTaskCondition

  • removeTaskCondition(name: string, index: number): Promise<void>
  • Removes a condition of a schedule task.

    Parameters

    • name: string

      The name of the schedule task.

    • index: number

      The zero-based index of the condition.

    Returns Promise<void>

runTask

  • runTask(name: string): Promise<void>
  • Runs a schedule task immediately. The status of the task should be polled to determine when and how it finishes.

    Parameters

    • name: string

      the name of the task.

    Returns Promise<void>

updateScheduleTask

  • updateScheduleTask(name: string, task: ScheduleTask): Promise<void>

updateTaskAction

  • updateTaskAction(name: string, index: number, action: ScheduleAction): Promise<void>
  • Updates a action of a schedule task.

    Parameters

    • name: string

      the name of the schedule task.

    • index: number

      the zero-based index of the action.

    • action: ScheduleAction

      the updated action.

    Returns Promise<void>

updateTaskCondition

  • updateTaskCondition(name: string, index: number, condition: ScheduleCondition): Promise<void>
  • Updates a condition of a schedule task.

    Parameters

    • name: string

      the name of the schedule task.

    • index: number

      the zero-based index of the condition.

    • condition: ScheduleCondition

      the updated condition.

    Returns Promise<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc