OpsTrailsDocs
Console

Core Concepts

OpsTrails is built on a few simple ideas: events, timelines, and queries. Understanding these concepts will help you get the most out of the platform.

Events

An event represents a single, discrete moment in your infrastructure: a deployment, a rollback, a data load, an incident. Every event in OpsTrails follows the CloudEvents 1.0 specification, an industry standard for describing events.

Event Fields

FieldTypeRequiredDescription
specversionstringrequiredMust be "1.0". Indicates CloudEvents specification version.
typestringrequiredEvent type, e.g. "deployment", "rollback", "data-load", "incident". Max 100 chars.
sourcestringrequiredEvent origin URI, e.g. "//github.com/org/repo". Max 500 chars.
timestringrequiredTimestamp with timezone (ISO 8601/RFC 2822) or "NOW" for server time.
idstringoptionalCustom event ID. Auto-generated (UUID) if omitted. Max 200 chars.
subjectstringoptionalContext label, e.g. "production", "staging", "server-01". Max 50 chars.
severitystringoptionalOne of LOW, MINOR, MAJOR, CRITICAL.
versionstringoptionalRelease version, e.g. "1.2.3" or "v2.0.0-rc1". Max 50 chars.
datacontenttypestringoptionalMIME type of the data field. Defaults to "application/json". Max 200 chars.
dataschemastringoptionalURI pointing to the schema for the data field. Max 500 chars.
dataobjectoptionalArbitrary JSON payload. Supports "description" (max 1000 chars), "timezone" (max 50 chars), and any extra fields.

Example Event

json
{
  "specversion": "1.0",
  "type": "deployment",
  "source": "//github.com/acme/api-service",
  "time": "2025-01-15T14:30:00Z",
  "id": "deploy-20250115-001",
  "subject": "production",
  "severity": "LOW",
  "version": "1.2.3",
  "data": {
    "description": "Deployed API service to production",
    "timezone": "Europe/London"
  }
}

Timeline

The timeline is the chronological history of all events in your organization. When you record an event, it's added to the timeline and becomes queryable immediately. The timeline gives your entire team a shared view of what happened across all infrastructure.

Event Types

The type field describes what kind of event occurred. You can use any string value. Common types include:

Sources

The source field identifies where the event came from. It's a URI that typically follows the pattern //provider/org/repo:

Subjects

The subject field provides context for the event. Most commonly it represents the target environment:

Severity Levels

The optional severity field indicates the impact level of the event:

📝 Note

Severity is optional. If omitted, the event will appear on the timeline without a severity indicator. Use it when you want to filter or prioritize events during investigation.

Time Format

The time field accepts:

⚠️ Warning

Bare datetimes without timezone (e.g. 2025-01-15T14:30:00) are rejected. Always include a timezone offset or use "NOW".