[WIP] workflow builder
This commit is contained in:
@@ -9,60 +9,54 @@ enabled: true
|
||||
# Trigger type
|
||||
type: cron
|
||||
|
||||
# Parameter schema - configuration for the trigger instance (standard JSON Schema format)
|
||||
# Parameter schema - configuration for the trigger instance (StackStorm-style with inline required/secret)
|
||||
parameters:
|
||||
type: object
|
||||
properties:
|
||||
expression:
|
||||
type: string
|
||||
description: "Cron expression in standard format (second minute hour day month weekday)"
|
||||
timezone:
|
||||
type: string
|
||||
description: "Timezone for cron schedule (e.g., 'UTC', 'America/New_York')"
|
||||
default: "UTC"
|
||||
description:
|
||||
type: string
|
||||
description: "Human-readable description of the schedule"
|
||||
required:
|
||||
- expression
|
||||
expression:
|
||||
type: string
|
||||
description: "Cron expression in standard format (second minute hour day month weekday)"
|
||||
required: true
|
||||
timezone:
|
||||
type: string
|
||||
description: "Timezone for cron schedule (e.g., 'UTC', 'America/New_York')"
|
||||
default: "UTC"
|
||||
description:
|
||||
type: string
|
||||
description: "Human-readable description of the schedule"
|
||||
|
||||
# Payload schema - data emitted when trigger fires
|
||||
output:
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
const: cron
|
||||
description: "Trigger type identifier"
|
||||
fired_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Timestamp when the trigger fired"
|
||||
scheduled_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Timestamp when the trigger was scheduled to fire"
|
||||
expression:
|
||||
type: string
|
||||
description: "The cron expression that triggered this event"
|
||||
timezone:
|
||||
type: string
|
||||
description: "Timezone used for scheduling"
|
||||
next_fire_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Timestamp when the trigger will fire next"
|
||||
execution_count:
|
||||
type: integer
|
||||
description: "Number of times this trigger has fired"
|
||||
sensor_ref:
|
||||
type: string
|
||||
description: "Reference to the sensor that generated this event"
|
||||
required:
|
||||
- type
|
||||
- fired_at
|
||||
- scheduled_at
|
||||
- expression
|
||||
type:
|
||||
type: string
|
||||
const: cron
|
||||
description: "Trigger type identifier"
|
||||
required: true
|
||||
fired_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Timestamp when the trigger fired"
|
||||
required: true
|
||||
scheduled_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Timestamp when the trigger was scheduled to fire"
|
||||
required: true
|
||||
expression:
|
||||
type: string
|
||||
description: "The cron expression that triggered this event"
|
||||
required: true
|
||||
timezone:
|
||||
type: string
|
||||
description: "Timezone used for scheduling"
|
||||
next_fire_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Timestamp when the trigger will fire next"
|
||||
execution_count:
|
||||
type: integer
|
||||
description: "Number of times this trigger has fired"
|
||||
sensor_ref:
|
||||
type: string
|
||||
description: "Reference to the sensor that generated this event"
|
||||
|
||||
# Tags for categorization
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user