StackStorm/st2

Feature Request: expose pack config to rules/triggers

开放

#3,576 创建于 2017年7月17日

 (3 条评论) (0 个反应) (0 位负责人)Python (740 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (5,794 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南