Interface StreamingSubscriptions
- All Known Implementing Classes:
StreamingSubscriptionsImpl
public interface StreamingSubscriptions
Client interface for managing IBX SmartView streaming subscriptions. Provides methods
to list, retrieve, and create streaming subscriptions that enable real-time delivery
of environmental and power data from monitored IBX assets.
Entitlement. Streaming subscriptions deliver IBX SmartView API+ near-real-time
data (the spec's term for /smartview/v2/streaming/subscriptionData). API+ is a paid
IBX SmartView entitlement on the account; without it these calls are rejected (typically HTTP
403), even when the read-only SmartView APIs work for the same account.
-
Method Summary
Modifier and TypeMethodDescriptiondefine()Returns a builder for defining and creating a new streaming subscription.Retrieves a specific streaming subscription by its unique identifier.getCertificate(String channelType) Retrieves the certificate used for authenticating a streaming channel.getSubscriptionData(String subscriptionId) Retrieves the near real-time data associated with a specific subscription.getSubscriptionData(String subscriptionId, List<String> ibxs, List<String> messageTypes, List<String> streamIds, Integer offset, Integer limit) Retrieves the near real-time data associated with a specific subscription, narrowed by the given filters and pagination.list()Lists all streaming subscriptions for the current account.
-
Method Details
-
list
List<StreamingSubscription> list()Lists all streaming subscriptions for the current account.- Returns:
- a list of streaming subscriptions
-
getByUuid
Retrieves a specific streaming subscription by its unique identifier.- Parameters:
uuid- the unique identifier of the streaming subscription- Returns:
- the streaming subscription
-
define
Returns a builder for defining and creating a new streaming subscription.- Returns:
- a streaming subscription builder
-
getSubscriptionData
Retrieves the near real-time data associated with a specific subscription.- Parameters:
subscriptionId- the unique identifier of the subscription- Returns:
- the subscription data
-
getSubscriptionData
SubscriptionData getSubscriptionData(String subscriptionId, List<String> ibxs, List<String> messageTypes, List<String> streamIds, Integer offset, Integer limit) Retrieves the near real-time data associated with a specific subscription, narrowed by the given filters and pagination.- Parameters:
subscriptionId- the unique identifier of the subscriptionibxs- filter to the given set of IBXs, ornullfor allmessageTypes- filter to the given message types (ALARM,ALERT,ENVIRONMENTAL,METERED_POWER,POWER,TAG_POINT), ornullfor allstreamIds- filter to the given set of stream IDs, ornullfor alloffset- the zero-based offset of the first item, ornullfor the defaultlimit- the maximum number of items to return, ornullfor the default (250)- Returns:
- the subscription data
-
getCertificate
Retrieves the certificate used for authenticating a streaming channel.- Parameters:
channelType- the type of streaming channel- Returns:
- the subscription certificate
-