Remote Data Post Transmit¶
A remotedatapost data transmit transfers data to the Sight Machine
cloud. This plugin works alongside with the sight_machine_cloud
configuration section, sharing the API_key, API_key_ID, and
base_url properties.
- Example:
- If we want to upload our records to our Sight Machine cloud, - https://cloudyday.sightmachine.io, our configuration will look something like this:- { "sight_machine_cloud": { "base_url": "https://cloudyday.sightmachine.io", "api_key": "Castle_in_the_sky", "api_key_id": "Pazu" }, "data_transmit": [ { "transmit_name": "tiger_moth" } ] } 
Configuration:
Required and optional properties that can be configured for a Remote Data Post (RDPv2) transmit.
- transmit_name: ID for the transmit. It must be unique. 
- transmit_type: Method to use in transmitting records. The default type is - remotedatapost.
- filter_stream: A list of streams that will use the transmit. Each stream can either be - *(all) or- asset:stream.
- base_url: URL of your Service Environment (e.g. - https://my-environment.sightmachine.io). If this option is omitted, then the- base_urlconfigured in the- sight_machine_cloudsection will be used.
- API_key: API key to allow for transmitting data to the Sight Machine cloud. If this option is omitted, then the value in the - sight_machine_cloudsection is used instead.
- API_key_ID: API key ID to allow for transmitting data to the Sight Machine cloud. If this option is omitted then the value in the - sight_machine_cloudsection is used instead.
- timeout: Number of seconds to wait until timing out. 
- poll_interval: Maximum number of seconds to wait between RDPv2 requests. 
- max_request_records: Maximum number of records to send in a single RDPv2 request. 
- max_request_size_bytes: Maximum number of bytes allowed in a single request. Regardless of this size, it is capped at 4 MB. 
- Note:
- By supplying the optional properties, base_url, API_key, and API_key_ID, in the transmit section, you can upload to a different Sight Machine cloud instance than the one specified in the - sight_machine_cloudsection.- For example, if we wanted to upload records from the - bathhouse:waterstream to a specific Sight Machine cloud instance,- https://yubaba.sightmachine.io, our configuration would look something like this:- { "sight_machine_cloud": { "base_url": "https://cloudyday.sightmachine.io", "api_key": "Castle_in_the_sky", "api_key_id": "Pazu" }, "data_transmit": [ { "transmit_name": "sen", "filter_stream": [ "bathhouse:water" ], "base_url": "https://yubaba.sightmachine.io", "API_key": "Spirited_Away", "API_key_ID": "Haku" } ] } 
- Warning:
- This plugin is very sensitive to upload bandwidth: if it can’t upload a payload completely within the timeout, it will abort the connection and try again. You may need to increase the timeout from the default of two minutes. For example: - { "transmit_name": "SightMachine", "transmit_type": "remotedatapost" "filter_stream": ["*"], "timeout": 300 }