Skip to content

Learn · Tutorials

Tutorial: send your first event

From zero to a recorded event in ten minutes.

This tutorial takes you from nothing to a recorded event. You need a free developer account and a sandbox key from Developer tools.

Send the event

from dmzagent import Client

client = Client(api_key="YOUR_API_KEY")
client.emit_event(
    subject="pump-12",
    kind="observation",
    data={"route": "/checkout", "status": 200},
)

Placeholder values shown. Swap in your sandbox key.

What just happened

Your event named a watched thing and said what happened in plain words. The platform took it in, weighed it against the rule packs of every work area watching that thing, and wrote the result to the logbook.

  • Send a few more events for the same watched thing and watch its profile build.
  • Install a rule pack so the think step has labels to look for.
  • Author a rule so something happens when a label fires.