기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
예: 센서 및 애플리케이션을 사용한 AWS IoT Events 이벤트 감지
이 감지기 모델은 AWS IoT Events 콘솔에서 사용할 수 있는 템플릿 중 하나입니다. 편의를 위해 여기에도 포함되어 있습니다.
이 예제는 센서 데이터를 사용한 AWS IoT Events의 애플리케이션 이벤트 감지를 보여줍니다. 적절한 작업을 트리거할 수 있도록 지정된 이벤트를 모니터링하는 감지기 모델을 생성하는 방법을 보여줍니다. 여러 센서 입력을 생성하고, 복잡한 이벤트 조건을 정의하고, 점진적 응답 메커니즘을 설정할 수 있습니다.
{ "detectorModelName": "EventDetectionSensorsAndApplications", "detectorModelDefinition": { "states": [ { "onInput": { "transitionEvents": [], "events": [] }, "stateName": "Device_exception", "onEnter": { "events": [ { "eventName": "Send_mqtt", "actions": [ { "iotTopicPublish": { "mqttTopic": "Device_stolen" } } ], "condition": "true" } ] }, "onExit": { "events": [] } }, { "onInput": { "transitionEvents": [ { "eventName": "To_in_use", "actions": [], "condition": "$variable.position != $input.AWS_IoTEvents_Blueprints_Tracking_DeviceInput.gps_position", "nextState": "Device_in_use" } ], "events": [] }, "stateName": "Device_idle", "onEnter": { "events": [ { "eventName": "Set_position", "actions": [ { "setVariable": { "variableName": "position", "value": "$input.AWS_IoTEvents_Blueprints_Tracking_DeviceInput.gps_position" } } ], "condition": "true" } ] }, "onExit": { "events": [] } }, { "onInput": { "transitionEvents": [ { "eventName": "To_exception", "actions": [], "condition": "$input.AWS_IoTEvents_Blueprints_Tracking_UserInput.device_id != $input.AWS_IoTEvents_Blueprints_Tracking_DeviceInput.device_id", "nextState": "Device_exception" } ], "events": [] }, "stateName": "Device_in_use", "onEnter": { "events": [] }, "onExit": { "events": [] } } ], "initialStateName": "Device_idle" } }