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
Yamcs Release Notes
Yamcs Server Manual
Source Code Documentation
List ActivitiesΒΆ
List activities
URI Template
GET /api/activities/{instance}/activities
{instance}Yamcs instance name
Query Parameters
limitThe maximum number of returned records per page. Choose this value too high and you risk hitting the maximum response size limit enforced by the server. Default:
100orderThe order of the returned results. Can be either
ascordesc. Default:descstatusFilter on activity status
typeThe type of activity. Names must match exactly.
nextContinuation token returned by a previous page response.
startFilter the lower bound of the activity's start time. Specify a date string in ISO 8601 format. This bound is inclusive.
stopFilter the upper bound of the activity's generation time. Specify a datestring in ISO 8601 format. This bound is exclusive.
qText to search for in the description.
Response Type
interface ListActivitiesResponse {
// Resulting activities, possibly limited
activities: ActivityInfo[];
// Token indicating the response is only partial. More results can then
// be obtained by performing the same request (including all original
// query parameters) and setting the ``next`` parameter to this token.
continuationToken: string;
}
Related Types
interface ActivityInfo {
// Activity identifier
id: string;
// Start time of the activity
start: string; // RFC 3339 timestamp
// Differentiator in case of multiple activities
// with the same start time
seq: number;
// Activity status
status: ActivityStatus;
// User who started the run
startedBy: string;
// Activity type
type: string;
// Activity arguments
args: {[key: string]: any};
// Activity detail (short descriptive)
detail: string;
// Stop time of the activity run
stop: string; // RFC 3339 timestamp
// User who stopped the run. Only set if the activity
// was manually stopped
stoppedBy: string;
// If set, the activity is stopped, but failed
failureReason: string;
}
enum ActivityStatus {
// An activity is runing
RUNNING = "RUNNING",
// The activity was cancelled. It may or may not still be running
// (verify stop time).
CANCELLED = "CANCELLED",
// The activity completed successfully
SUCCESSFUL = "SUCCESSFUL",
// An error occurred while running this activity
FAILED = "FAILED",
}