StopModel - Amazon Lookout for Vision

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

StopModel

停止AWS IoT Greengrass Version 2核心裝置上執行的模型。 StopModel在模型停止後返回。如果回應中的Status欄位是,則模型已成功停止STOPPED

rpc StopModel(StopModelRequest) returns (StopModelResponse);

StopModelRequest

message StopModelRequest { string model_component = 1; }
模型元件

包含要停止之模型的AWS IoT Greengrass Version 2元件名稱。

StopModelResponse

message StopModelResponse { ModelStatus status = 1; }
status

模型的目前狀態。響應是,STOPPED如果調用成功。如需詳細資訊,請參閱ModelStatus

狀態碼

代碼 Number 描述

OK

0

模型正在停止。

UNKNOWN (不明)

2

發生未知的錯誤。

無效參數

3

一或多個輸入參數無效。檢查錯誤消息以獲取更多詳細信息。

沒有找到

5

找不到具有提供名稱的模型。

失敗前提條件 (_C)

9

該方法被調用的模型不處於 RUNNING 狀態。

內部

13

發生內部錯誤。