Stellar ControlMission control · by Stellar Systems v0.1.0

API Reference

Values

Current values of the measures of a target.

GET/v1/targets/{target}/values

Current values#

Current values of a target

The latest sample of every measure and derived measure of the target, from the current value table (stellar_values).

Path parameters

targetrequired

string

Target, as named in the topology (sim-1).

Responses

200Current values, by key order.application/json
valuesrequired

array of CurrentValue

Current values, by key order.

CurrentValue · 4 fields
componentrequired

string

Component.

instance

string

Instance of a multi-instance component.

measurerequired

string

Measure or derived measure.

samplerequired

Sample

Latest sample.

Sample · 6 fields
deliveryrequired

string

realtime or deferred; deferred when any input of a derived measure is.

ground_timerequired

string

Ground reception time, reference of freshness; for a derived measure, that of its oldest input.

linkrequired

string

Link of the frame; for a derived measure, that of its most recent input.

raw

any

Raw value of a measure calibrated by the MCS.

timerequired

string

Time of the sample: on-board time when known, else ground reception time; for a derived measure, that of its most recent input.

valuerequired

any

Physical value: number in the unit of the measure, boolean, enum value, hexadecimal bytes; null when a temporal derived measure becomes unknown (empty window).

404Invalid target.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

503The MCS bus (NATS) is unavailable: api::unavailable.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

Request

curl "http://localhost:8080/v1/targets/<target>/values"

Response

{
  "values": [
    {
      "component": "string",
      "instance": "string",
      "measure": "string",
      "sample": {
        "delivery": "string",
        "ground_time": "string",
        "link": "string",
        "raw": null,
        "time": "string",
        "value": null
      }
    }
  ]
}
GET/v1/targets/{target}/values/watch

Watch values#

Watch the values of a target (WebSocket)

Sends the current values, then every update of the table. A measure is selected as tcu[TCU1].responding (one instance), tcu.responding (every instance) or responding (any component).

Path parameters

targetrequired

string

Target, as named in the topology (sim-1).

Query parameters

measures

string

Comma-separated measures; every measure without.

Responses

101WebSocket: one CurrentValue per message.application/json
componentrequired

string

Component.

instance

string

Instance of a multi-instance component.

measurerequired

string

Measure or derived measure.

samplerequired

Sample

Latest sample.

Sample · 6 fields
deliveryrequired

string

realtime or deferred; deferred when any input of a derived measure is.

ground_timerequired

string

Ground reception time, reference of freshness; for a derived measure, that of its oldest input.

linkrequired

string

Link of the frame; for a derived measure, that of its most recent input.

raw

any

Raw value of a measure calibrated by the MCS.

timerequired

string

Time of the sample: on-board time when known, else ground reception time; for a derived measure, that of its most recent input.

valuerequired

any

Physical value: number in the unit of the measure, boolean, enum value, hexadecimal bytes; null when a temporal derived measure becomes unknown (empty window).

400Invalid measure selector: api::invalid-measure.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

404Invalid target.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

503The MCS bus (NATS) is unavailable: api::unavailable.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

Request

curl "http://localhost:8080/v1/targets/<target>/values/watch"

Response

{
  "component": "string",
  "instance": "string",
  "measure": "string",
  "sample": {
    "delivery": "string",
    "ground_time": "string",
    "link": "string",
    "raw": null,
    "time": "string",
    "value": null
  }
}
GET/v1/targets/{target}/values/history

Value history#

History of a measure

The samples of one measure or derived measure of the target over a window, as the compute stage published them. Beyond limit samples in the window, one in every few is kept (thinned), the last one always.

Path parameters

targetrequired

string

Target, as named in the topology (sim-1).

Query parameters

measurerequired

string

The measure: tcu[TCU1].anode_voltage, or psu.voltage for a component without instances.

from

string

Start of the window (RFC 3339); 10 min before to by default.

to

string

End of the window (RFC 3339); now by default.

limit

integer

Samples returned at most: 2000 by default, 20000 at most.

≥ 0

Responses

200The samples of the window.application/json
componentrequired

string

Component.

instance

string

Instance of a multi-instance component.

measurerequired

string

Measure or derived measure.

samplesrequired

array of Sample

Samples in the order they were published: real-time ones by time, deferred ones when they came down. With more than limit in the window, one in every few is kept, the last one always.

Sample · 6 fields
deliveryrequired

string

realtime or deferred; deferred when any input of a derived measure is.

ground_timerequired

string

Ground reception time, reference of freshness; for a derived measure, that of its oldest input.

linkrequired

string

Link of the frame; for a derived measure, that of its most recent input.

raw

any

Raw value of a measure calibrated by the MCS.

timerequired

string

Time of the sample: on-board time when known, else ground reception time; for a derived measure, that of its most recent input.

valuerequired

any

Physical value: number in the unit of the measure, boolean, enum value, hexadecimal bytes; null when a temporal derived measure becomes unknown (empty window).

thinnedrequired

boolean

Whether samples were left out to keep limit.

truncatedrequired

boolean

Whether the window holds more samples than are read at once: only its start is read.

400Invalid measure or query: api::invalid-measure, api::invalid-query.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

404Invalid target.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

503The MCS bus (NATS) is unavailable: api::unavailable.application/json
errorsrequired

array of ErrorItem

Every error found.

ErrorItem · 3 fields
coderequired

string

Stable code.

messagerequired

string

Message for the operator.

help

string

Suggested fix.

Request

curl "http://localhost:8080/v1/targets/<target>/values/history?measure=tcu[TCU1].anode_voltage"

Response

{
  "component": "string",
  "instance": "string",
  "measure": "string",
  "samples": [
    {
      "delivery": "string",
      "ground_time": "string",
      "link": "string",
      "raw": null,
      "time": "string",
      "value": null
    }
  ],
  "thinned": true,
  "truncated": true
}

↑↓ to moveEnter to open