Skip to content

Send events via the CLI agent

Send events

After filling the required values in the previous section, we can start sending actor’s generated events via Manufactory agent.

Required keys

  • --actor (required) object - Pairs containing attribute name and the corresponding value while considering the correct attribute names and data types. Please refer to Get Actors schema.
  • --event (required) object - Pairs containing attribute name and the corresponding value while considering the correct attribute names and data types. Please refer to Get events schema.

Actor example

{
"city": "New York",
"country": "USA",
"username": "john.doe",
"email": "john.doe@email.com"
}

Event example

{
"event_name": "login",
"event_type": "user-actions",
"made_purchase": false
}

Before we pass actor and event objects, we need to encode the objects using base64.

Agent example

Terminal window
manufactory-agent --actor=ewogICAgImNpdHkiOiAiTmV3I \
--event=ewogICAgImV2ZW50X25hbWUiO==

The agent will handle the authentication and sending events, then it will shut down.

Rest Api > Send events via the REST API

Actor profiles can be sent through a POST request to /events endpoint requiring organization ID project ID actor profile and attributes with specific data types and names.

Collector > Collecting events via our CLI agent

The Manufactory agent serves as a data collection solution that enables sending actor information and events through various integration methods while reducing API load and supporting IoT devices with limited resources.

Collector > Collecting events via the REST API

A comprehensive data collection system enables sending events and actor information through multiple integration methods including REST API websocket and CLI agent while providing real-time monitoring capabilities for manufacturing processes.

Manufactory > Collector

The collector facilitates data transmission through REST API websocket or CLI agent options while requiring predefined actor and event schemas for data ingestion at the collector.tallyfy.com base URL.