{ "kind": "open-flow-workflow", "version": 1, "name": "Send a Log to Better Stack", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_ab233be97d9e0ae2": { "name": "Provide a log", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "message" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "level" } ] }, "n_1fee28146a92fa04": { "inputs": { "message": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_ab233be97d9e0ae2", "output": "message" } ] }, "level": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_ab233be97d9e0ae2", "output": "level" } ] } }, "name": "Build log", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "message" }, { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "level" } ], "outputs": [ { "jsonSchema": { "type": "object", "additionalProperties": true }, "nullable": false, "handle": "body" } ], "name": "Build log", "moduleId": "n_10b4cd3aedaf7e9b", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_75ed8f8f4f7ed981": { "inputs": { "url": { "kind": "value", "value": "https://example.com" }, "body": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_1fee28146a92fa04", "output": "body" } ] }, "auth.token": { "kind": "unset" } }, "name": "Send log", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "url" }, { "jsonSchema": {}, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "auth.token" } ], "outputs": [ { "jsonSchema": { "type": "string" }, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "integer" }, "nullable": false, "handle": "statusCode" }, { "jsonSchema": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": false, "handle": "headers" } ], "name": "Send log", "executor": { "method": "POST", "query": { "mode": "fields", "names": [] }, "headers": { "mode": "fields", "names": [] }, "bodyFormat": "json", "authentication": { "type": "bearer" }, "responseFormat": "text", "statusPolicy": "success", "kind": "http-request" } } } }, "edges": [ { "source": "n_ab233be97d9e0ae2", "target": "n_1fee28146a92fa04" }, { "source": "n_1fee28146a92fa04", "target": "n_75ed8f8f4f7ed981" } ] } }, "modules": { "n_10b4cd3aedaf7e9b": { "name": "Build log", "imports": [], "source": "export default function makeLog({message,level}) { return {body:{message:message??'This is a test log message',level:level??'error'}} }\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }