diff options
Diffstat (limited to 'makima/src/daemon/api/directive.rs')
| -rw-r--r-- | makima/src/daemon/api/directive.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/makima/src/daemon/api/directive.rs b/makima/src/daemon/api/directive.rs index 42f6f45..3589e78 100644 --- a/makima/src/daemon/api/directive.rs +++ b/makima/src/daemon/api/directive.rs @@ -57,4 +57,30 @@ impl ApiClient { self.post_empty(&format!("/api/v1/directives/{}/start", directive_id)) .await } + + /// Trigger a manual evaluation for a step. + pub async fn directive_evaluate_step( + &self, + directive_id: Uuid, + step_id: Uuid, + ) -> Result<JsonValue, ApiError> { + self.post_empty(&format!( + "/api/v1/directives/{}/steps/{}/evaluate", + directive_id, step_id + )) + .await + } + + /// List evaluations for a step. + pub async fn directive_evaluations( + &self, + directive_id: Uuid, + step_id: Uuid, + ) -> Result<JsonValue, ApiError> { + self.get(&format!( + "/api/v1/directives/{}/steps/{}/evaluations", + directive_id, step_id + )) + .await + } } |
