/  Yamcs HTTP API  /  Indexes  /  Stream Packet Index

Stream Packet IndexΒΆ

Streams back packet index records

Warning

This method uses server-streaming. Yamcs sends an unspecified amount of data using chunked transfer encoding.

URI Template

POST /api/archive/{instance}:streamPacketIndex
{instance}

Yamcs instance name

Request Body

interface StreamPacketIndexRequest {

  // The time at which to start retrieving index records.
  start: string;  // RFC 3339 timestamp

  // The time at which to stop retrieving index records.
  stop: string;  // RFC 3339 timestamp

  // Filter on specific packet names
  names: string[];

  // Value in milliseconds that indicates the maximum gap before two consecutive index
  // ranges are merged together.
  mergeTime: number;
}

Response Type

//contains histogram data
interface ArchiveRecord {
  id: NamedObjectId;
  num: number;
  seqFirst: string;  // String decimal
  seqLast: string;  // String decimal
  first: string;  // RFC 3339 timestamp
  last: string;  // RFC 3339 timestamp
  extra: {[key: string]: string};
}

Related Types

// Used by external clients to identify an item in the Mission Database
// If namespace is set, then the name is that of an alias, rather than
// the qualified name.
interface NamedObjectId {
  name: string;
  namespace: string;
}