@datafire/amazonaws_iotevents_data

5.0.0 • Public • Published

@datafire/amazonaws_iotevents_data

Client library for AWS IoT Events Data

Installation and Usage

npm install --save @datafire/amazonaws_iotevents_data
let amazonaws_iotevents_data = require('@datafire/amazonaws_iotevents_data').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

.then(data => {
  console.log(data);
});

Description

AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions when such events occur. AWS IoT Events Data API commands enable you to send inputs to detectors, list detectors, and view or update a detector's status.

Actions

BatchUpdateDetector

amazonaws_iotevents_data.BatchUpdateDetector({
  "detectors": []
}, context)

Input

  • input object
    • detectors required array: The list of detectors (instances) to update, along with the values to update.

Output

ListDetectors

amazonaws_iotevents_data.ListDetectors({
  "detectorModelName": ""
}, context)

Input

  • input object
    • detectorModelName required string
    • stateName string
    • nextToken string
    • maxResults integer

Output

DescribeDetector

amazonaws_iotevents_data.DescribeDetector({
  "detectorModelName": ""
}, context)

Input

  • input object
    • detectorModelName required string
    • keyValue string

Output

BatchPutMessage

amazonaws_iotevents_data.BatchPutMessage({
  "messages": []
}, context)

Input

  • input object
    • messages required array: The list of messages to send. Each message has the following format: '{ "messageId": "string", "inputName": "string", "payload": "string"}'

Output

Definitions

BatchPutMessageErrorEntries

BatchPutMessageErrorEntry

  • BatchPutMessageErrorEntry object: Contains information about the errors encountered.
    • errorCode
    • errorMessage
    • messageId

BatchPutMessageRequest

  • BatchPutMessageRequest object

BatchPutMessageResponse

BatchUpdateDetectorErrorEntries

BatchUpdateDetectorErrorEntry

  • BatchUpdateDetectorErrorEntry object: Information about the error that occured when attempting to update a detector.
    • errorCode
    • errorMessage
    • messageId

BatchUpdateDetectorRequest

BatchUpdateDetectorResponse

DescribeDetectorRequest

  • DescribeDetectorRequest object

DescribeDetectorResponse

  • DescribeDetectorResponse object
    • detector
      • creationTime
      • detectorModelName
      • detectorModelVersion
      • keyValue
      • lastUpdateTime
      • state
        • stateName required
        • timers required
        • variables required

Detector

  • Detector object: Information about the detector (instance).
    • creationTime
    • detectorModelName
    • detectorModelVersion
    • keyValue
    • lastUpdateTime
    • state
      • stateName required
      • timers required
      • variables required

DetectorModelName

  • DetectorModelName string

DetectorModelVersion

  • DetectorModelVersion string

DetectorState

  • DetectorState object: Information about the current state of the detector instance.
    • stateName required
    • timers required
    • variables required

DetectorStateDefinition

  • DetectorStateDefinition object: The new state, variable values, and timer settings of the detector (instance).

DetectorStateSummary

  • DetectorStateSummary object: Information about the detector state.
    • stateName

DetectorSummaries

DetectorSummary

  • DetectorSummary object: Information about the detector (instance).
    • creationTime
    • detectorModelName
    • detectorModelVersion
    • keyValue
    • lastUpdateTime
    • state
      • stateName

ErrorCode

  • ErrorCode string (values: ResourceNotFoundException, InvalidRequestException, InternalFailureException, ServiceUnavailableException, ThrottlingException)

ErrorMessage

  • ErrorMessage string

InputName

  • InputName string

InternalFailureException

InvalidRequestException

KeyValue

  • KeyValue string

ListDetectorsRequest

  • ListDetectorsRequest object

ListDetectorsResponse

  • ListDetectorsResponse object

MaxResults

  • MaxResults integer

Message

  • Message object: Information about a message.
    • inputName required
    • messageId required
    • payload required

MessageId

  • MessageId string

Messages

NextToken

  • NextToken string

Payload

  • Payload string

ResourceNotFoundException

Seconds

  • Seconds integer

ServiceUnavailableException

StateName

  • StateName string

ThrottlingException

Timer

  • Timer object: The current state of a timer.
    • name required
    • timestamp required

TimerDefinition

  • TimerDefinition object: The new setting of a timer.
    • name required
    • seconds required

TimerDefinitions

TimerName

  • TimerName string

Timers

  • Timers array

Timestamp

  • Timestamp string

UpdateDetectorRequest

  • UpdateDetectorRequest object: Information used to update the detector (instance).
    • detectorModelName required
    • keyValue
    • messageId required
    • state required

UpdateDetectorRequests

Variable

  • Variable object: The current state of the variable.
    • name required
    • value required

VariableDefinition

  • VariableDefinition object: The new value of the variable.
    • name required
    • value required

VariableDefinitions

VariableName

  • VariableName string

VariableValue

  • VariableValue string

Variables

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/amazonaws_iotevents_data

Weekly Downloads

2

Version

5.0.0

License

MIT

Unpacked Size

47.6 kB

Total Files

4

Last publish

Collaborators

  • datafire