Skip to content

Send events via the CLI agent

Send events

Once you’ve filled in the required values from the previous section, you can start sending actor-generated events through the Tallyfy Manufactory agent.

Required keys

  • --actor (required) object - Pairs containing an attribute name and its corresponding value, using the correct attribute names and data types. See Get Actors schema.
  • --event (required) object - Pairs containing an attribute name and its corresponding value, using the correct attribute names and data types. See 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 passing actor and event objects, you’ll need to encode them using base641.

Agent example

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

The agent handles authentication and sends the events, then shuts down.

Manufactory > Collector

The Tallyfy Manufactory collector lets you send actor data and events through REST API…

Footnotes

  1. Binary-to-text encoding scheme that converts binary data into ASCII characters so it’s safe for transmission