StackStorm/st2

Feature Request: expose pack config to rules/triggers

オープン

#3,576 opened on 2017/07/17

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Python (740 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (5,794 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド