This message was deleted.
# ask-marvin
s
This message was deleted.
m
Your message was too long by 65 tokens...
From what I can gather, your configuration aims to set up a compound trigger with both reactive and proactive conditions. Let's break down what you've shared: 1. Reactive Trigger Condition: - You're looking for an
xos.edo.event.received
event within the last 6 hours (21600 seconds). - The
eventSourceURN
should be
urn:xos:xosDeployerE2ETests123:sandbox:job:main-test
. 2. Proactive Trigger Condition: - There should be no
xos.edo.event.received
event within the last 30 minutes (1800 seconds). - The
eventSourceURN
should be
urn:xos:xosDeployerE2ETests123:sandbox:job:edo-test-single-dependency
. Issues in the Provided JSON: - The
within
parameter for the proactive trigger is set to 600 seconds (10 minutes) instead of the intended 1800 seconds (30 minutes). - For the reactive trigger, the
within
parameter is set to 0, which might not be what you intended. It should be set to 21600 seconds to match your requirement. Here's a revised version of your JSON configuration:
Copy code
json
{
  "type": "compound",
  "triggers": [
    {
      "type": "compound",
      "triggers": [
        {
          "type": "event",
          "match": {
            "eventSourceURN": "urn:xos:xosDeployerE2ETests123:sandbox:job:main-test"
          },
          "match_related": {},
          "after": [],
          "expect": [
            "xos.edo.event.received"
          ],
          "for_each": [],
          "posture": "Reactive",
          "threshold": 1,
          "within": 21600
        }
      ],
      "require": "all",
      "within": 21600
    },
    {
      "type": "event",
      "match": {
        "eventSourceURN": "urn:xos:xosDeployerE2ETests123:sandbox:job:edo-test-single-dependency"
      },
      "match_related": {},
      "after": [],
      "expect": [
        "xos.edo.event.received"
      ],
      "for_each": [],
      "posture": "Proactive",
      "threshold": 1,
      "within": 1800
    }
  ],
  "require": "all",
  "within": 600
}
Summary: - Ensure the
within
values match your intended time frames. - The reactive trigger should have a
within
of 21600 seconds. - The proactive trigger should have a
within
of 1800 seconds. This configuration should better reflect your intended behavior. If you have any more questions or need further adjustments, feel free to ask.