Access to SORACOM services
Prerequisite
To run this flow, you need SORACOM SIM to access to the SORACOM platform.
Metadata service tab
You can get SIM related information using SORACOM metadata service. Please refer to the following site and enable metadata service.
SORACOM Harvest tab
This flow will send the load average for the last 5 minutes to SORACOM harvest. Please refer to the following site and enable SORACOM Harvest data.
前提条件
このフローを実行するには、SORACOM SIM を用いて SORACOM プラットフォームにアクセスできる必要があります。
Metadata serviceタブ
SORACOMのメタデータサービスを用いて、SIMに関する情報を取得できます。 以下を参照して、メタデータサービスを有効にしてください。
SORACOM Harvestタブ
このフローは、5分間の平均CPU使用率をSORACOM Harvestに送信します。 以下を参照して、SORACOM Harvest Dataを有効にしてください。
[{"id":"dd7d02c2.a4fb4","type":"tab","label":"Metadata service","disabled":false,"info":""},{"id":"7073b9b7.9d1478","type":"tab","label":"SORACOM Harvest","disabled":false,"info":""},{"id":"f617cc32.c0a1a","type":"comment","z":"dd7d02c2.a4fb4","name":"Prerequisite","info":"You can get SIM related information using SORACOM metadata service.\nPlease refer to the following site and enable metadata service.\nhttps://developers.soracom.io/en/docs/air/metadata-service/","x":130,"y":60,"wires":[]},{"id":"cb0781bc.361dd","type":"comment","z":"dd7d02c2.a4fb4","name":"事前準備","info":"SORACOMのメタデータサービスを用いて、SIMに関する情報を取得できます。\n以下を参照して、メタデータサービスを有効にしてください。\nhttps://dev.soracom.io/jp/start/metadata/","x":300,"y":60,"wires":[]},{"id":"4625bdaa.37b754","type":"inject","z":"dd7d02c2.a4fb4","name":"Get all information","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":160,"wires":[["4f3c77b1.a9e868"]]},{"id":"4f3c77b1.a9e868","type":"http request","z":"dd7d02c2.a4fb4","name":"Access to metadata service","method":"GET","ret":"obj","paytoqs":false,"url":"http://metadata.soracom.io/v1/subscriber","tls":"","proxy":"","authType":"","x":420,"y":160,"wires":[["9c7b7e47.4d746"]]},{"id":"3ab328b.0c108d8","type":"inject","z":"dd7d02c2.a4fb4","name":"Get IMSI","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":240,"wires":[["565bb028.9467c"]]},{"id":"565bb028.9467c","type":"http request","z":"dd7d02c2.a4fb4","name":"Access to IMSI metadata","method":"GET","ret":"obj","paytoqs":false,"url":"http://metadata.soracom.io/v1/subscriber.imsi","tls":"","proxy":"","authType":"","x":410,"y":240,"wires":[["9c7b7e47.4d746"]]},{"id":"95ea7f46.00b01","type":"inject","z":"dd7d02c2.a4fb4","name":"Get user data","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":400,"wires":[["b4dc580.06ad7a8"]]},{"id":"b4dc580.06ad7a8","type":"http request","z":"dd7d02c2.a4fb4","name":"Access to user data","method":"GET","ret":"txt","paytoqs":false,"url":"http://metadata.soracom.io/v1/userdata","tls":"","proxy":"","authType":"","x":400,"y":400,"wires":[["9c7b7e47.4d746"]]},{"id":"23a653e3.1ea80c","type":"inject","z":"dd7d02c2.a4fb4","name":"Get tags","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":320,"wires":[["8eb5c341.ff72d"]]},{"id":"8eb5c341.ff72d","type":"http request","z":"dd7d02c2.a4fb4","name":"Access to tags","method":"GET","ret":"obj","paytoqs":false,"url":"http://metadata.soracom.io/v1/subscriber.tags","tls":"","proxy":"","authType":"","x":380,"y":320,"wires":[["9c7b7e47.4d746"]]},{"id":"9c7b7e47.4d746","type":"debug","z":"dd7d02c2.a4fb4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":300,"wires":[]},{"id":"dd05e24e.2f5ba","type":"comment","z":"7073b9b7.9d1478","name":"Prerequisite","info":"This flow will send the load average for the last 5 minutes to SORACOM harvest.\nPlease refer to the following site and enable SORACOM Harvest data.\nhttps://developers.soracom.io/en/docs/harvest/configuration/","x":130,"y":60,"wires":[]},{"id":"3ce7de64.b4fea2","type":"comment","z":"7073b9b7.9d1478","name":"事前準備","info":"このフローは、5分間の平均CPU使用率をSORACOM Harvestに送信します。\n以下を参照して、SORACOM Harvest Dataを有効にしてください。\nhttps://dev.soracom.io/jp/start/harvest/","x":300,"y":60,"wires":[]},{"id":"401d0aef.9579e4","type":"inject","z":"7073b9b7.9d1478","name":"Start","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":160,"wires":[["29b16c4b.406374"]]},{"id":"98a37f9f.2fbb4","type":"http request","z":"7073b9b7.9d1478","name":"Send to Unified Endpoint","method":"POST","ret":"txt","paytoqs":false,"url":"http://uni.soracom.io","tls":"","proxy":"","authType":"","x":470,"y":260,"wires":[[]]},{"id":"29b16c4b.406374","type":"exec","z":"7073b9b7.9d1478","command":"uptime","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Run uptime command","x":340,"y":160,"wires":[["bb5c8a50.e92478"],[],[]]},{"id":"bb5c8a50.e92478","type":"csv","z":"7073b9b7.9d1478","name":"Separate by comma","sep":",","hdrin":"","hdrout":"","multi":"one","ret":"\\n","temp":"","skip":"0","x":600,"y":160,"wires":[["548d8f09.07339"]]},{"id":"548d8f09.07339","type":"change","z":"7073b9b7.9d1478","name":"Pick the 5 min. load average","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.col4","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":200,"y":260,"wires":[["98a37f9f.2fbb4"]]}]