We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87e39c0 commit deda800Copy full SHA for deda800
docs/source/sensors.rst
@@ -31,6 +31,25 @@ A list of available triggers for each resource is included below:
31
32
.. _ref-sensors-authoring-a-sensor:
33
34
+An example rule to use ``core.st2.key_value_pair.*`` triggers is included below:
35
+.. code-block:: yaml
36
+
37
+ trigger:
38
+ type: "core.st2.key_value_pair.create"
39
40
+ criteria:
41
+ trigger.object.name:
42
+ type: "eq"
43
+ pattern : "x"
44
45
+ action:
46
+ ref: "core.local"
47
+ parameters:
48
+ cmd: "echo {{ trigger.object }}"
49
50
+Above rule will execute whenever a new key-value pair with name ``x`` is created in the
51
+datastore. The action will print the details of the created key-value pair.
52
53
Creating a Sensor
54
-----------------
55
0 commit comments