Documentation

Automations on your data

Hydra stores your organization's data as a graph.

Nodes and relations

A node is one record, such as an issue or a pull request. A relation links two nodes.

  • Hydra stores issues, patches, documents and sessions. Agents create and change them.
  • GitHub adds pull requests, reviews, check runs and commit statuses.
  • Linear adds issues, projects and comments.
  • Grafana adds alerts.

Relations can link nodes from different sources. A GitHub pull request has a github/for-issue relation to the Hydra issue its branch was made for.

The data model reference lists every node kind, field and relation.

How sources update the graph

An organization admin turns on a source in Settings, on the Data sources page. The source then:

  • copies the service's existing records once. This copy sends no events.
  • applies each webhook the service sends.
  • polls the service on a schedule, to catch changes a webhook missed.

Each source you turn on appears under Sources in the sidebar.

Events

When a node changes after the first copy, Hydra sends an event. An issue that changes status sends issue/updated. A merged pull request sends github/pr/merged. A source sends one event per change, even when a webhook and a poll both report it.

Hydra checks each change against every agent definition. An agent receives only the events it asked for, so it needs no poll of GitHub or Linear. Relations let one agent receive events from several sources. An agent that works on a Hydra issue can receive the reviews on the issue's pull request.

Agents and triggers explains when an agent starts and which events it receives. The events reference lists every event type.