Yamcs HTTP API
Methods
- Activities
- Alarms
- Audit
- Buckets
- Clearance
- Commands
- COP-1
- Database
- Events
- File Transfer
- IAM
- Indexes
- Instances
- Links
- MDB Override
- MDB
- Packets
- Parameter Archive
- Parameter Lists
- Parameter Values
- Processing
- Queues
- Replication
- RocksDB
- SDLS
- Server
- Services
- Sessions
- Stream Archive
- Table
- Time Correlation
- Time
- Timeline
Related
Yamcs Release Notes
Yamcs Server Manual
Source Code Documentation
Download this Document
Stream EventsΒΆ
Streams back events
Warning
This method uses server-streaming. Yamcs sends an unspecified amount of data using chunked transfer encoding.
URI Template
POST /api/stream-archive/{instance}:streamEvents
{instance}Yamcs instance name
Request Body
interface StreamEventsRequest {
// Filter the lower bound of the event's generation time. Specify a date
// string in ISO 8601 format.
start: string; // RFC 3339 timestamp
// Filter the upper bound of the event's generation time. Specify a date
// string in ISO 8601 format.
stop: string; // RFC 3339 timestamp
// Event sources to include. Leave unset, to include all.
source: string[];
// Filter on minimum severity level
severity: string;
// Search by text
q: string;
// Filter query. See {doc}`../filtering` for how to write a filter query.
//
// Literal text search matches against the `message`, `source` and `type`
// fields. Field comparisons can use any of the following fields:
//
// | Field | Type | Description |
// | ----------- | ------ | ---------------------------------- |
// | `message` | string | Filter by message text |
// | `seqNumber` | number | Filter by archived sequence number |
// | `severity` | enum | Filter by event severity |
// | `source` | string | Filter by event source |
// | `type` | string | Filter by event type |
//
// Possible severities: `info`, `watch`, `warning`, `distress`, `critical`
// or `severe`.
filter: string;
}
Response Type
interface Event {
source: string;
generationTime: string; // RFC 3339 timestamp
receptionTime: string; // RFC 3339 timestamp
seqNumber: number;
type: string;
message: string;
severity: EventSeverity;
// Set by API when event was posted by a user
createdBy: string;
// Additional properties
extra: {[key: string]: string};
}
Related Types
enum EventSeverity {
INFO = "INFO",
WARNING = "WARNING",
// Legacy, avoid use.
ERROR = "ERROR",
WATCH = "WATCH",
// Placeholder for future WARNING constant.
// (correctly sorted between WATCH and DISTRESS)
//
// Most clients can ignore, this state is here
// to give Protobuf clients (Python Client, Yamcs Studio)
// the time to add a migration for supporting both WARNING
// and WARNING_NEW (Protobuf serializes the number).
//
// Then in a later phase, we move from:
// WARNING=1, WARNING_NEW=4
//
// To:
// WARNING_OLD=1, WARNING=4
//
// (which is a transparent change to JSON clients)
WARNING_NEW = "WARNING_NEW",
DISTRESS = "DISTRESS",
CRITICAL = "CRITICAL",
SEVERE = "SEVERE",
}