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; }
model_component

包含要停止的模型的 AWS IoT Greengrass Version 2 组件的名称。

StopModelResponse

message StopModelResponse { ModelStatus status = 1; }
状态

模型的当前状态。如果调用成功,则响应为 STOPPED。有关更多信息,请参阅 ModelStatus

状态代码

代码 数字 描述

OK

0

模型正在停止。

UNKNOWN

2

发生了未知错误。

INVALID_ARGUMENT

3

一个或多个输入参数无效。有关更多详细信息,请查看错误消息。

NOT_FOUND

5

未找到具有所提供名称的模型。

FAILED_PRECONDITION

9

对未处于 RUNNING 状态的模型调用了此方法。

INTERNAL

13

出现内部错误。