omron — Using REST

Chapter 4: DataStore 4.4 20964-000 Rev. C Fleet Operation Workspace Core Integration Toolkit 27 User's Manual bscribing to DataStore Values Subscribing to DataStore values is the process of alerting the system that you care about cer- tain DataStore items. The following table describes DataStore subscription item schema. NOTE: The /DataStoreValueLatest REST call does not require a subscription. Refer to Obtaining DataStore Values on page 28 for more information. Table 4-3. DataStore Subscription - Data Item Details Item Details Data Type namekey Predefined string for the DataStore item's namekey. String subscriptionInterval Subscription Interval Units: ms, s, m, h, d Syntax: "1s", "2m", etc.

Minimum value: 200 ms Default value: 0 ms NOTE: A setting of 0 will turn OFF the subscription. ing REST Use the following REST calls to get or set a subscription. Table 4-4. DataStore Subscription REST Calls Method Resource Function GET /SubscriptionConfig/ByKey/{namekey} Get SubscriptionConfig by namekey. GET /SubscriptionConfig/UpdatedSince?sinceTime={time millis} Get a list of SubscriptionConfig entities that have been updated since the given time. GET /SubscriptionConfig/Stream Listen for all SubscriptionConfig updates. PUT /SubscriptionConfig Update Sub- scriptionConfig.