distributable, please
Some checks failed
CI / Rustfmt (push) Successful in 22s
CI / Cargo Audit & Deny (push) Successful in 36s
CI / Security Blocking Checks (push) Successful in 6s
CI / Web Blocking Checks (push) Successful in 53s
CI / Web Advisory Checks (push) Successful in 34s
Publish Images / Resolve Publish Metadata (push) Successful in 1s
CI / Security Advisory Checks (push) Successful in 38s
CI / Clippy (push) Successful in 2m7s
Publish Images / Publish Docker Dist Bundle (push) Failing after 19s
Publish Images / Publish web (amd64) (push) Successful in 49s
Publish Images / Publish web (arm64) (push) Successful in 3m31s
CI / Tests (push) Successful in 8m48s
Publish Images / Build Rust Bundles (amd64) (push) Successful in 12m42s
Publish Images / Build Rust Bundles (arm64) (push) Successful in 12m19s
Publish Images / Publish agent (amd64) (push) Successful in 26s
Publish Images / Publish api (amd64) (push) Successful in 38s
Publish Images / Publish notifier (amd64) (push) Successful in 42s
Publish Images / Publish executor (amd64) (push) Successful in 46s
Publish Images / Publish agent (arm64) (push) Successful in 56s
Publish Images / Publish api (arm64) (push) Successful in 1m52s
Publish Images / Publish executor (arm64) (push) Successful in 2m2s
Publish Images / Publish notifier (arm64) (push) Successful in 2m3s
Publish Images / Publish manifest attune/agent (push) Successful in 6s
Publish Images / Publish manifest attune/api (push) Successful in 11s
Publish Images / Publish manifest attune/executor (push) Successful in 10s
Publish Images / Publish manifest attune/notifier (push) Successful in 8s
Publish Images / Publish manifest attune/web (push) Successful in 8s
Some checks failed
CI / Rustfmt (push) Successful in 22s
CI / Cargo Audit & Deny (push) Successful in 36s
CI / Security Blocking Checks (push) Successful in 6s
CI / Web Blocking Checks (push) Successful in 53s
CI / Web Advisory Checks (push) Successful in 34s
Publish Images / Resolve Publish Metadata (push) Successful in 1s
CI / Security Advisory Checks (push) Successful in 38s
CI / Clippy (push) Successful in 2m7s
Publish Images / Publish Docker Dist Bundle (push) Failing after 19s
Publish Images / Publish web (amd64) (push) Successful in 49s
Publish Images / Publish web (arm64) (push) Successful in 3m31s
CI / Tests (push) Successful in 8m48s
Publish Images / Build Rust Bundles (amd64) (push) Successful in 12m42s
Publish Images / Build Rust Bundles (arm64) (push) Successful in 12m19s
Publish Images / Publish agent (amd64) (push) Successful in 26s
Publish Images / Publish api (amd64) (push) Successful in 38s
Publish Images / Publish notifier (amd64) (push) Successful in 42s
Publish Images / Publish executor (amd64) (push) Successful in 46s
Publish Images / Publish agent (arm64) (push) Successful in 56s
Publish Images / Publish api (arm64) (push) Successful in 1m52s
Publish Images / Publish executor (arm64) (push) Successful in 2m2s
Publish Images / Publish notifier (arm64) (push) Successful in 2m3s
Publish Images / Publish manifest attune/agent (push) Successful in 6s
Publish Images / Publish manifest attune/api (push) Successful in 11s
Publish Images / Publish manifest attune/executor (push) Successful in 10s
Publish Images / Publish manifest attune/notifier (push) Successful in 8s
Publish Images / Publish manifest attune/web (push) Successful in 8s
This commit is contained in:
103
docker/distributable/packs/core/triggers/crontimer.yaml
Normal file
103
docker/distributable/packs/core/triggers/crontimer.yaml
Normal file
@@ -0,0 +1,103 @@
|
||||
# Cron Timer Trigger
|
||||
# Fires based on cron schedule expressions
|
||||
|
||||
ref: core.crontimer
|
||||
label: "Cron Timer"
|
||||
description: "Fires based on a cron schedule expression (e.g., '0 0 * * * *' for every hour)"
|
||||
enabled: true
|
||||
|
||||
# Trigger type
|
||||
type: cron
|
||||
|
||||
# Parameter schema - configuration for the trigger instance (StackStorm-style with inline required/secret)
|
||||
parameters:
|
||||
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:
|
||||
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:
|
||||
- timer
|
||||
- cron
|
||||
- scheduler
|
||||
- periodic
|
||||
|
||||
# Documentation
|
||||
examples:
|
||||
- description: "Fire every hour at the top of the hour"
|
||||
parameters:
|
||||
expression: "0 0 * * * *"
|
||||
description: "Hourly"
|
||||
|
||||
- description: "Fire every day at midnight UTC"
|
||||
parameters:
|
||||
expression: "0 0 0 * * *"
|
||||
description: "Daily at midnight"
|
||||
|
||||
- description: "Fire every Monday at 9:00 AM"
|
||||
parameters:
|
||||
expression: "0 0 9 * * 1"
|
||||
description: "Weekly on Monday morning"
|
||||
|
||||
- description: "Fire every 15 minutes"
|
||||
parameters:
|
||||
expression: "0 */15 * * * *"
|
||||
description: "Every 15 minutes"
|
||||
|
||||
- description: "Fire at 8:30 AM on weekdays"
|
||||
parameters:
|
||||
expression: "0 30 8 * * 1-5"
|
||||
description: "Weekday morning"
|
||||
timezone: "America/New_York"
|
||||
|
||||
# Cron format reference
|
||||
# Field Allowed values Special characters
|
||||
# second 0-59 * , - /
|
||||
# minute 0-59 * , - /
|
||||
# hour 0-23 * , - /
|
||||
# day of month 1-31 * , - / ?
|
||||
# month 1-12 or JAN-DEC * , - /
|
||||
# day of week 0-6 or SUN-SAT * , - / ?
|
||||
82
docker/distributable/packs/core/triggers/datetimetimer.yaml
Normal file
82
docker/distributable/packs/core/triggers/datetimetimer.yaml
Normal file
@@ -0,0 +1,82 @@
|
||||
# Datetime Timer Trigger
|
||||
# Fires once at a specific date and time
|
||||
|
||||
ref: core.datetimetimer
|
||||
label: "DateTime Timer"
|
||||
description: "Fires once at a specific date and time"
|
||||
enabled: true
|
||||
|
||||
# Trigger type
|
||||
type: one_shot
|
||||
|
||||
# Parameter schema - configuration for the trigger instance (StackStorm-style with inline required/secret)
|
||||
parameters:
|
||||
fire_at:
|
||||
type: string
|
||||
description: "ISO 8601 timestamp when the timer should fire (e.g., '2024-12-31T23:59:59Z')"
|
||||
required: true
|
||||
timezone:
|
||||
type: string
|
||||
description: "Timezone for the datetime (e.g., 'UTC', 'America/New_York')"
|
||||
default: "UTC"
|
||||
description:
|
||||
type: string
|
||||
description: "Human-readable description of when this timer fires"
|
||||
|
||||
# Payload schema - data emitted when trigger fires
|
||||
output:
|
||||
type:
|
||||
type: string
|
||||
const: one_shot
|
||||
description: "Trigger type identifier"
|
||||
required: true
|
||||
fire_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Scheduled fire time"
|
||||
required: true
|
||||
fired_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Actual fire time"
|
||||
required: true
|
||||
timezone:
|
||||
type: string
|
||||
description: "Timezone used for scheduling"
|
||||
delay_ms:
|
||||
type: integer
|
||||
description: "Delay in milliseconds between scheduled and actual fire time"
|
||||
sensor_ref:
|
||||
type: string
|
||||
description: "Reference to the sensor that generated this event"
|
||||
|
||||
# Tags for categorization
|
||||
tags:
|
||||
- timer
|
||||
- datetime
|
||||
- one-shot
|
||||
- scheduler
|
||||
|
||||
# Documentation
|
||||
examples:
|
||||
- description: "Fire at midnight on New Year's Eve 2024"
|
||||
parameters:
|
||||
fire_at: "2024-12-31T23:59:59Z"
|
||||
description: "New Year's countdown"
|
||||
|
||||
- description: "Fire at 3:00 PM EST on a specific date"
|
||||
parameters:
|
||||
fire_at: "2024-06-15T15:00:00-05:00"
|
||||
timezone: "America/New_York"
|
||||
description: "Afternoon reminder"
|
||||
|
||||
- description: "Fire in 1 hour from now (use ISO 8601)"
|
||||
parameters:
|
||||
fire_at: "2024-01-20T15:30:00Z"
|
||||
description: "One-hour reminder"
|
||||
|
||||
# Notes:
|
||||
# - This trigger fires only once and is automatically disabled after firing
|
||||
# - Use ISO 8601 format for the fire_at parameter
|
||||
# - The sensor will remove the trigger instance after it fires
|
||||
# - For recurring timers, use intervaltimer or crontimer instead
|
||||
74
docker/distributable/packs/core/triggers/intervaltimer.yaml
Normal file
74
docker/distributable/packs/core/triggers/intervaltimer.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
# Interval Timer Trigger
|
||||
# Fires at regular intervals based on time unit and interval
|
||||
|
||||
ref: core.intervaltimer
|
||||
label: "Interval Timer"
|
||||
description: "Fires at regular intervals based on specified time unit and interval"
|
||||
enabled: true
|
||||
|
||||
# Trigger type
|
||||
type: interval
|
||||
|
||||
# Parameter schema - configuration for the trigger instance (StackStorm-style with inline required/secret)
|
||||
parameters:
|
||||
unit:
|
||||
type: string
|
||||
enum:
|
||||
- seconds
|
||||
- minutes
|
||||
- hours
|
||||
description: "Time unit for the interval"
|
||||
default: "seconds"
|
||||
required: true
|
||||
interval:
|
||||
type: integer
|
||||
description: "Number of time units between each trigger"
|
||||
default: 60
|
||||
required: true
|
||||
|
||||
# Payload schema - data emitted when trigger fires
|
||||
output:
|
||||
type:
|
||||
type: string
|
||||
const: interval
|
||||
description: "Trigger type identifier"
|
||||
required: true
|
||||
interval_seconds:
|
||||
type: integer
|
||||
description: "Total interval in seconds"
|
||||
required: true
|
||||
fired_at:
|
||||
type: string
|
||||
format: date-time
|
||||
description: "Timestamp when the trigger fired"
|
||||
required: true
|
||||
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:
|
||||
- timer
|
||||
- interval
|
||||
- periodic
|
||||
- scheduler
|
||||
|
||||
# Documentation
|
||||
examples:
|
||||
- description: "Fire every 10 seconds"
|
||||
parameters:
|
||||
unit: "seconds"
|
||||
interval: 10
|
||||
|
||||
- description: "Fire every 5 minutes"
|
||||
parameters:
|
||||
unit: "minutes"
|
||||
interval: 5
|
||||
|
||||
- description: "Fire every hour"
|
||||
parameters:
|
||||
unit: "hours"
|
||||
interval: 1
|
||||
Reference in New Issue
Block a user