StackStorm/st2

Feature Request: expose pack config to rules/triggers

Open

#3576 aperta il 17 lug 2017

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Python (740 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (5794 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Today, I wanted to add an IntervalTimer trigger, and I wanted to have the delta set in configuration.

I think it would be advantageous to allow end-users of my pack to set the interval delta (and unit) in configuration instead of having to edit the pack's yaml file.

trigger:
  type: "core.st2.IntervalTimer"
  parameters:
    unit: "{{config_context.rule1_unit}}"
    delta: {{config_context.rule1_delta}

related to #3183

Guida contributor