silo.low_code.agent.messages module
- silo.low_code.agent.messages.PolledData
An agent configuration that is not protocol specific
- Variables
application_id (int) – Application ID for the configuration
credential_user (str) – User to run the command
device_id (int) – Device ID for the configuration
interval (int) – Time in secods for the command to execute
snippet_framework (SFAgentConfig) – Information from the snippet framework regarding the command
- class silo.low_code.agent.messages.ProtocolConfig(*args, **kwargs)
Bases:
object
Core for configurations. Used for validation and generating the config
- attributes = []
- property config
Convert the object into a configuration object that can be consumed
- Return type
dict
- datatype = None
- shell = None
- silo.low_code.agent.messages.SFAgentConfig
Agent configuration with entries related to the specific command
- Variables
data_type (str) – Type of command that needs to be executed
groupid (int) – Group to be executed. The agent will return everything with the same groupid in a single message.
pd_name (str) – Unique name for the command. This will be the requestors get_request_id()
type_fields_json (ProtocolConfig) – Protocol-specific information containing the command and any supporting fields
- class silo.low_code.agent.messages.ScriptConfig(script)
Bases:
ProtocolConfig
Generate a Script command
- Parameters
script (str) – Command that should be executed locally
- Returns
Dictionary with the required fields populated for the Agent config
- Return type
dict
- attributes = ['script']
- datatype = 'script'