Created
September 30, 2020 18:47
-
-
Save mskog/88a246000d1db4c28753ac76d0481627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"schema_version": 1, | |
"name": "531 to Influx", | |
"description": "No description provided", | |
"source_url": false, | |
"guid": "1516decd158fd59bc0c60e4e440e3290", | |
"tag_fg_color": "#ffffff", | |
"tag_bg_color": "#5bc0de", | |
"icon": "gear", | |
"exported_at": "2020-09-30T18:44:36Z", | |
"agents": [ | |
{ | |
"type": "Agents::WebsiteAgent", | |
"name": "531 Dropbox File Read", | |
"disabled": false, | |
"guid": "0f1006a5b343cc3b38da402beb46a234", | |
"options": { | |
"expected_update_period_in_days": "2", | |
"url_from_event": "{{url}}", | |
"type": "text", | |
"mode": "on_change", | |
"extract": { | |
"data": { | |
"regexp": "A(?m:.)*\\z", | |
"index": 0 | |
} | |
} | |
}, | |
"schedule": "never", | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
}, | |
{ | |
"type": "Agents::PostAgent", | |
"name": "531 One Rep Maxes Influx", | |
"disabled": false, | |
"guid": "3cba1e4ba67d4072d093498ea9f14659", | |
"options": { | |
"post_url": "https://INFLUX_SERVER/write?db=statistics&precision=s", | |
"expected_receive_period_in_days": "1", | |
"content_type": "text/plain", | |
"method": "post", | |
"payload": "onerepmaxes,lift={{data[2] | downcase | remove: \" \"}} value={{data[10]}} {{ data[11] | date: \"%s\"}}", | |
"headers": { | |
}, | |
"emit_events": "false", | |
"no_merge": "true" | |
}, | |
"schedule": "never", | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
}, | |
{ | |
"type": "Agents::EventFormattingAgent", | |
"name": "531 Dropbox File Format Added", | |
"disabled": false, | |
"guid": "4a055e6b1b5223b3668c629e50f3583c", | |
"options": { | |
"matchers": [ | |
], | |
"mode": "clean", | |
"instructions": { | |
"paths": "{{ added | map: 'path' | join: ',' }}" | |
} | |
}, | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
}, | |
{ | |
"type": "Agents::DeDuplicationAgent", | |
"name": "531 De Duplicate", | |
"disabled": false, | |
"guid": "623b0f728f5647d4e5f544c9276e7213", | |
"options": { | |
"property": "", | |
"lookback": "0", | |
"expected_update_period_in_days": "14" | |
}, | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
}, | |
{ | |
"type": "Agents::EventFormattingAgent", | |
"name": "531 Dropbox File Format Updated", | |
"disabled": false, | |
"guid": "63a27df76fa30933d9fe1f1fc559d9ad", | |
"options": { | |
"matchers": [ | |
], | |
"mode": "clean", | |
"instructions": { | |
"paths": "{{ updated | map: 'path' | join: ',' }}" | |
} | |
}, | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
}, | |
{ | |
"type": "Agents::CsvAgent", | |
"name": "531 CSV Formatting", | |
"disabled": false, | |
"guid": "b642fe20951458881443f62c369a4d2e", | |
"options": { | |
"mode": "parse", | |
"separator": ",", | |
"data_key": "data", | |
"with_header_radio": "false", | |
"with_header": "false", | |
"use_fields": "", | |
"output": "event_per_row", | |
"data_path": "$.data" | |
}, | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
}, | |
{ | |
"type": "Agents::DropboxFileUrlAgent", | |
"name": "531 Dropbox File Link", | |
"disabled": false, | |
"guid": "bca70808c7825b6795cae9b4334c2beb", | |
"options": { | |
"link_type": "temporary" | |
}, | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
}, | |
{ | |
"type": "Agents::DropboxWatchAgent", | |
"name": "531 Dropbox Watch", | |
"disabled": false, | |
"guid": "e8a494f93bf0e309bdd75074bd06a492", | |
"options": { | |
"dir_to_watch": "/531", | |
"expected_update_period_in_days": 1 | |
}, | |
"schedule": "every_12h", | |
"keep_events_for": 0 | |
}, | |
{ | |
"type": "Agents::TriggerAgent", | |
"name": "531 Trigger", | |
"disabled": false, | |
"guid": "fa5cba34059f4917b3354c901d0ebd7b", | |
"options": { | |
"expected_receive_period_in_days": "2", | |
"keep_event": "true", | |
"rules": [ | |
{ | |
"type": "regex", | |
"value": "^\\d", | |
"path": "data[0]" | |
} | |
] | |
}, | |
"keep_events_for": 0, | |
"propagate_immediately": false | |
} | |
], | |
"links": [ | |
{ | |
"source": 0, | |
"receiver": 5 | |
}, | |
{ | |
"source": 3, | |
"receiver": 1 | |
}, | |
{ | |
"source": 5, | |
"receiver": 8 | |
}, | |
{ | |
"source": 6, | |
"receiver": 0 | |
}, | |
{ | |
"source": 7, | |
"receiver": 4 | |
}, | |
{ | |
"source": 7, | |
"receiver": 2 | |
}, | |
{ | |
"source": 8, | |
"receiver": 3 | |
} | |
], | |
"control_links": [ | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment