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 782d711Copy full SHA for 782d711
docs/source/sensors.rst
@@ -31,6 +31,26 @@ 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
+
36
+.. code-block:: yaml
37
38
+ trigger:
39
+ type: "core.st2.key_value_pair.create"
40
41
+ criteria:
42
+ trigger.object.name:
43
+ type: "eq"
44
+ pattern: "x"
45
46
+ action:
47
+ ref: "core.local"
48
+ parameters:
49
+ cmd: "echo {{ trigger.object }}"
50
51
+Above rule will execute whenever a new key-value pair with name ``x`` is created in the
52
+datastore. The action will print the details of the created key-value pair.
53
54
Creating a Sensor
55
-----------------
56
0 commit comments