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-generated events via the Tallyfy 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

The POST /events endpoint enables sending actor profiles to Tallyfy Manufactory by providing organization ID project ID actor profile object and event attributes with proper schema validation.

Collector > Collecting events via our CLI agent

The Tallyfy Manufactory collector agent provides a lightweight solution for off-loading API event transmission and enables data collection from IoT devices with limited computing power or connectivity constraints.

Manufactory > Collector

The Tallyfy Manufactory collector enables sending actor data and events through REST API websocket or CLI agent methods with data viewable in a custom interface after creating required schemas.

Collector > Collecting events via the REST API

The Tallyfy Manufactory REST API enables transmission of actors data and events into the platform through multiple integration methods including REST API websocket and CLI agent options with secure authentication and data collection capabilities.