You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `tsctl timeline-status` command allows to get or set a timeline status.
514
+
This can be useful in the following scenarios:
515
+
516
+
* Monitoring processing In large-scale investigations, timelines can take a considerable amount of time to process.
517
+
This feature allows administrators or automated scripts to monitor the processing status of timelines, ensuring that they are progressing as expected.
518
+
519
+
* Automated Status updates: Scripts can be used to automatically update the status of timelines based on the results of automated analysis or processing steps. For example, if an automated script detects a critical error during analysis, it can set the timeline status to "fail."
520
+
521
+
* Toubeshooting and Error handling:
522
+
** Quickly identifying timelines with a "fail" status allows investigators to troubleshoot issues and re-process data if necessary.
523
+
** By monitoring the status of timelines, administrators can identify potential bottlenecks or errors in the processing pipeline.
524
+
** Set the status to `fail` is a task is stuck.
525
+
526
+
Usage:
527
+
528
+
```bash
529
+
tsctl timeline-status [OPTIONS] TIMELINE_ID
530
+
--action [get|set]
531
+
Specify whether to get or set the timeline status.
532
+
- "get": Retrieves the current status of the timeline.
533
+
- "set": Sets the status of the timeline to the value specified by "--status".
534
+
(Required)
535
+
536
+
--status [ready|processing|fail]
537
+
The desired status to set for the timeline.
538
+
This option is only valid when "--action" is set to "set".
539
+
Valid options are:
540
+
- "ready": Indicates that the timeline is ready for analysis.
541
+
- "processing": Indicates that the timeline is currently being processed.
542
+
- "fail": Indicates that the timeline processing failed.
543
+
(Required when --action is set to set)
544
+
```
545
+
546
+
Examples:
547
+
```bash
548
+
# Get the status of timeline with ID 123:
549
+
tsctl timeline-status --action get 123
550
+
551
+
# Set the status of timeline with ID 456 to "ready":
552
+
tsctl timeline-status --action set --status ready 456
553
+
554
+
# Set the status of timeline with ID 789 to "fail":
555
+
tsctl timeline-status --action set --status fail 789
556
+
557
+
# Try to set a status without the action set to set.
0 commit comments