{
  "openruna_format": "flow-graph-v1",
  "title": "Log errors and avoid sending too many emails",
  "slug": "log-errors-and-avoid-sending-too-many-emails",
  "source_filename": "1777_Error_Postgres_Send_Triggered.json",
  "nodes": [
    {
      "id": "Error Trigger",
      "name": "Error Trigger",
      "integration": "error",
      "kind": "trigger"
    },
    {
      "id": "Insert Log",
      "name": "Insert Log",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "Count for 5 minutes",
      "name": "Count for 5 minutes",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "Principal E-Mail",
      "name": "Principal E-Mail",
      "integration": "emailSend",
      "kind": "action"
    },
    {
      "id": "Fallback E-Mail",
      "name": "Fallback E-Mail",
      "integration": "emailSend",
      "kind": "action"
    },
    {
      "id": "Push mobile notification",
      "name": "Push mobile notification",
      "integration": "pushover",
      "kind": "action"
    },
    {
      "id": "Truncate Log Database",
      "name": "Truncate Log Database",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "Sometimes... just cleanup",
      "name": "Sometimes... just cleanup",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Call this Sample - Prepend to your error catcher",
      "name": "Call this Sample - Prepend to your error catcher",
      "integration": "executeWorkflow",
      "kind": "action"
    },
    {
      "id": "See below to prepend this at your error handling",
      "name": "See below to prepend this at your error handling",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "If there is no logs in 5 minutes",
      "name": "If there is no logs in 5 minutes",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "CleanUp execution. See below if you will prepend this workflow",
      "name": "CleanUp execution. See below if you will prepend this workflow",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Insert your error handling logic after this",
      "name": "Insert your error handling logic after this",
      "integration": "noOp",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Insert Log",
      "to": "CleanUp execution. See below if you will prepend this workflow"
    },
    {
      "from": "Error Trigger",
      "to": "Insert Log"
    },
    {
      "from": "Error Trigger",
      "to": "Count for 5 minutes"
    },
    {
      "from": "Principal E-Mail",
      "to": "Fallback E-Mail"
    },
    {
      "from": "Count for 5 minutes",
      "to": "If there is no logs in 5 minutes"
    },
    {
      "from": "Sometimes... just cleanup",
      "to": "Truncate Log Database"
    },
    {
      "from": "If there is no logs in 5 minutes",
      "to": "Insert your error handling logic after this"
    },
    {
      "from": "If there is no logs in 5 minutes",
      "to": "CleanUp execution. See below if you will prepend this workflow"
    },
    {
      "from": "Call this Sample - Prepend to your error catcher",
      "to": "Principal E-Mail"
    },
    {
      "from": "Call this Sample - Prepend to your error catcher",
      "to": "Push mobile notification"
    },
    {
      "from": "See below to prepend this at your error handling",
      "to": "Insert Log"
    },
    {
      "from": "See below to prepend this at your error handling",
      "to": "Count for 5 minutes"
    }
  ]
}