@hypericon/node-red-hypertable
Version:
Node-RED plugin to interact with Hypertable
228 lines • 5.72 kB
JSON
[
{
"id": "56177e017e2b2b3e",
"type": "tab",
"label": "Delete Record Example",
"disabled": false,
"info": "",
"env": []
},
{
"id": "9f1ed6b18c856bc0",
"type": "comment",
"z": "56177e017e2b2b3e",
"name": "1. Create the Hypertable Project",
"info": "\nFirst create your Project in Hypertable so that Node-RED has a target for the request.\n",
"x": 230,
"y": 100,
"wires": []
},
{
"id": "bc15a2f8ea73907c",
"type": "comment",
"z": "56177e017e2b2b3e",
"name": "2. Create an API Key in Hypertable",
"info": "\nIn your Hypertable Project, create a new API key in the Project's settings.\n\nChoose an appropriate role for the key. For this example, the role must be at least \"editor\".\n",
"x": 240,
"y": 140,
"wires": []
},
{
"id": "b67785313b6dd4bd",
"type": "comment",
"z": "56177e017e2b2b3e",
"name": "3. Configure the connection config node",
"info": "\nIn one of the \"read connection\" nodes, create a new \"hypertable connection\" config node. Complete the properties for this node from your Hypertable Project.\n",
"x": 250,
"y": 180,
"wires": []
},
{
"id": "a5786263352ee7aa",
"type": "comment",
"z": "56177e017e2b2b3e",
"name": "4. Enter the IDs in the node/msg",
"info": "\nEnter the IDs of both the target Hypertable Collection and Record.\n\nSet these in the properties of the `create-record` node in the first example, and set the values of `msg.collectionId` and `msg.recordId` in the change node in the second example.\n",
"x": 230,
"y": 220,
"wires": []
},
{
"id": "b7829fafdc2b6236",
"type": "inject",
"z": "56177e017e2b2b3e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 360,
"wires": [
[
"7a7ddb69abb6ac17"
]
]
},
{
"id": "a7afb0d9578fc342",
"type": "debug",
"z": "56177e017e2b2b3e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "record",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 730,
"y": 360,
"wires": []
},
{
"id": "4ae9b45258ba7ea0",
"type": "inject",
"z": "56177e017e2b2b3e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 500,
"wires": [
[
"604f4b9912efc881"
]
]
},
{
"id": "434dcbe7166a51f7",
"type": "debug",
"z": "56177e017e2b2b3e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "record",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 730,
"y": 560,
"wires": []
},
{
"id": "d198cf7a0beb48a4",
"type": "comment",
"z": "56177e017e2b2b3e",
"name": "Set IDs in node",
"info": "",
"x": 180,
"y": 320,
"wires": []
},
{
"id": "9818bc851063ed7f",
"type": "comment",
"z": "56177e017e2b2b3e",
"name": "Set IDs in msg",
"info": "",
"x": 180,
"y": 460,
"wires": []
},
{
"id": "604f4b9912efc881",
"type": "change",
"z": "56177e017e2b2b3e",
"name": "*Set Collection & Record IDs*",
"rules": [
{
"t": "set",
"p": "collectionId",
"pt": "msg",
"to": "",
"tot": "str"
},
{
"t": "set",
"p": "recordId",
"pt": "msg",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 450,
"y": 500,
"wires": [
[
"f1d007cf53e2d07a"
]
]
},
{
"id": "7a7ddb69abb6ac17",
"type": "delete-record",
"z": "56177e017e2b2b3e",
"name": "*Set Collection & Record IDs*",
"connection": "",
"collectionId": "",
"recordId": "",
"x": 450,
"y": 360,
"wires": [
[
"a7afb0d9578fc342"
]
]
},
{
"id": "f1d007cf53e2d07a",
"type": "delete-record",
"z": "56177e017e2b2b3e",
"name": "",
"connection": "",
"collectionId": "",
"recordId": "",
"x": 390,
"y": 560,
"wires": [
[
"434dcbe7166a51f7"
]
]
}
]