public interface IDeviceEventManagement extends ITenantLifecycleComponent
Modifier and Type | Method and Description |
---|---|
IDeviceAlert |
addDeviceAlert(java.lang.String assignmentToken,
IDeviceAlertCreateRequest request)
Add alert for a given device assignment.
|
IDeviceCommandInvocation |
addDeviceCommandInvocation(java.lang.String assignmentToken,
IDeviceCommand command,
IDeviceCommandInvocationCreateRequest request)
Add a device command invocation event for the given assignment.
|
IDeviceCommandResponse |
addDeviceCommandResponse(java.lang.String assignmentToken,
IDeviceCommandResponseCreateRequest request)
Adds a new device command response event.
|
IDeviceEventBatchResponse |
addDeviceEventBatch(java.lang.String assignmentToken,
IDeviceEventBatch batch)
Add a batch of events for the given assignment.
|
IDeviceLocation |
addDeviceLocation(java.lang.String assignmentToken,
IDeviceLocationCreateRequest request)
Add location for a given device assignment.
|
IDeviceMeasurements |
addDeviceMeasurements(java.lang.String assignmentToken,
IDeviceMeasurementsCreateRequest measurements)
Add measurements for a given device assignment.
|
IDeviceStateChange |
addDeviceStateChange(java.lang.String assignmentToken,
IDeviceStateChangeCreateRequest request)
Adds a new device state change event.
|
IDeviceStreamData |
addDeviceStreamData(java.lang.String assignmentToken,
IDeviceStreamDataCreateRequest request)
Add a chunk of stream data for a given device assignment.
|
IDeviceEvent |
getDeviceEventById(java.lang.String id)
Get a device event by unique id.
|
IDeviceManagement |
getDeviceManagement()
Get the device management implementation.
|
IDeviceStreamData |
getDeviceStreamData(java.lang.String assignmentToken,
java.lang.String streamId,
long sequenceNumber)
Get a single chunk of data from a device stream.
|
ISearchResults<IDeviceAlert> |
listDeviceAlerts(java.lang.String assignmentToken,
IDateRangeSearchCriteria criteria)
Gets the most recent device alert entries for an assignment.
|
ISearchResults<IDeviceAlert> |
listDeviceAlertsForSite(java.lang.String siteToken,
IDateRangeSearchCriteria criteria)
List device alerts for a site.
|
ISearchResults<IDeviceCommandResponse> |
listDeviceCommandInvocationResponses(java.lang.String invocationId)
List responses associated with a command invocation.
|
ISearchResults<IDeviceCommandInvocation> |
listDeviceCommandInvocations(java.lang.String assignmentToken,
IDateRangeSearchCriteria criteria)
Gets device command invocations for an assignment based on criteria.
|
ISearchResults<IDeviceCommandInvocation> |
listDeviceCommandInvocationsForSite(java.lang.String siteToken,
IDateRangeSearchCriteria criteria)
List device command invocations for a site.
|
ISearchResults<IDeviceCommandResponse> |
listDeviceCommandResponses(java.lang.String assignmentToken,
IDateRangeSearchCriteria criteria)
Gets the most recent device command response entries for an assignment.
|
ISearchResults<IDeviceCommandResponse> |
listDeviceCommandResponsesForSite(java.lang.String siteToken,
IDateRangeSearchCriteria criteria)
List device command responses for a site.
|
ISearchResults<IDeviceEvent> |
listDeviceEvents(java.lang.String assignmentToken,
IDateRangeSearchCriteria criteria)
List all events for the given assignment that meet the search criteria.
|
ISearchResults<IDeviceLocation> |
listDeviceLocations(java.util.List<java.lang.String> assignmentTokens,
IDateRangeSearchCriteria criteria)
List device locations for the given tokens within the given time range.
|
ISearchResults<IDeviceLocation> |
listDeviceLocations(java.lang.String assignmentToken,
IDateRangeSearchCriteria criteria)
Gets device location entries for an assignment.
|
ISearchResults<IDeviceLocation> |
listDeviceLocationsForSite(java.lang.String siteToken,
IDateRangeSearchCriteria criteria)
List device locations for a site.
|
ISearchResults<IDeviceMeasurements> |
listDeviceMeasurements(java.lang.String assignmentToken,
IDateRangeSearchCriteria criteria)
Gets device measurement entries for an assignment based on criteria.
|
ISearchResults<IDeviceMeasurements> |
listDeviceMeasurementsForSite(java.lang.String siteToken,
IDateRangeSearchCriteria criteria)
List device measurements for a site.
|
ISearchResults<IDeviceStateChange> |
listDeviceStateChanges(java.lang.String assignmentToken,
IDateRangeSearchCriteria criteria)
Gets the most recent device state change entries for an assignment.
|
ISearchResults<IDeviceStateChange> |
listDeviceStateChangesForSite(java.lang.String siteToken,
IDateRangeSearchCriteria criteria)
List device state changes for a site.
|
ISearchResults<IDeviceStreamData> |
listDeviceStreamData(java.lang.String assignmentToken,
java.lang.String streamId,
IDateRangeSearchCriteria criteria)
List all chunks of data in a device assignment that belong to a given
stream and meet the criteria.
|
void |
setDeviceManagement(IDeviceManagement deviceManagement)
Set the device management implementation.
|
getTenant, setTenant
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stop
void setDeviceManagement(IDeviceManagement deviceManagement) throws SiteWhereException
deviceManagement
- SiteWhereException
IDeviceManagement getDeviceManagement() throws SiteWhereException
SiteWhereException
IDeviceEventBatchResponse addDeviceEventBatch(java.lang.String assignmentToken, IDeviceEventBatch batch) throws SiteWhereException
assignmentToken
- batch
- SiteWhereException
IDeviceEvent getDeviceEventById(java.lang.String id) throws SiteWhereException
id
- SiteWhereException
ISearchResults<IDeviceEvent> listDeviceEvents(java.lang.String assignmentToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- criteria
- SiteWhereException
IDeviceMeasurements addDeviceMeasurements(java.lang.String assignmentToken, IDeviceMeasurementsCreateRequest measurements) throws SiteWhereException
assignmentToken
- measurements
- SiteWhereException
ISearchResults<IDeviceMeasurements> listDeviceMeasurements(java.lang.String assignmentToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- criteria
- SiteWhereException
ISearchResults<IDeviceMeasurements> listDeviceMeasurementsForSite(java.lang.String siteToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
siteToken
- criteria
- SiteWhereException
IDeviceLocation addDeviceLocation(java.lang.String assignmentToken, IDeviceLocationCreateRequest request) throws SiteWhereException
assignmentToken
- request
- SiteWhereException
ISearchResults<IDeviceLocation> listDeviceLocations(java.lang.String assignmentToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- criteria
- SiteWhereException
ISearchResults<IDeviceLocation> listDeviceLocationsForSite(java.lang.String siteToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
siteToken
- criteria
- SiteWhereException
ISearchResults<IDeviceLocation> listDeviceLocations(java.util.List<java.lang.String> assignmentTokens, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentTokens
- criteria
- SiteWhereException
IDeviceAlert addDeviceAlert(java.lang.String assignmentToken, IDeviceAlertCreateRequest request) throws SiteWhereException
assignmentToken
- request
- SiteWhereException
ISearchResults<IDeviceAlert> listDeviceAlerts(java.lang.String assignmentToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- criteria
- SiteWhereException
ISearchResults<IDeviceAlert> listDeviceAlertsForSite(java.lang.String siteToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
siteToken
- criteria
- SiteWhereException
IDeviceStreamData addDeviceStreamData(java.lang.String assignmentToken, IDeviceStreamDataCreateRequest request) throws SiteWhereException
assignmentToken
- request
- SiteWhereException
IDeviceStreamData getDeviceStreamData(java.lang.String assignmentToken, java.lang.String streamId, long sequenceNumber) throws SiteWhereException
assignmentToken
- streamId
- sequenceNumber
- SiteWhereException
ISearchResults<IDeviceStreamData> listDeviceStreamData(java.lang.String assignmentToken, java.lang.String streamId, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- streamId
- criteria
- SiteWhereException
IDeviceCommandInvocation addDeviceCommandInvocation(java.lang.String assignmentToken, IDeviceCommand command, IDeviceCommandInvocationCreateRequest request) throws SiteWhereException
assignmentToken
- command
- request
- SiteWhereException
ISearchResults<IDeviceCommandInvocation> listDeviceCommandInvocations(java.lang.String assignmentToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- criteria
- SiteWhereException
ISearchResults<IDeviceCommandInvocation> listDeviceCommandInvocationsForSite(java.lang.String siteToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
siteToken
- criteria
- SiteWhereException
ISearchResults<IDeviceCommandResponse> listDeviceCommandInvocationResponses(java.lang.String invocationId) throws SiteWhereException
invocationId
- SiteWhereException
IDeviceCommandResponse addDeviceCommandResponse(java.lang.String assignmentToken, IDeviceCommandResponseCreateRequest request) throws SiteWhereException
assignmentToken
- request
- SiteWhereException
ISearchResults<IDeviceCommandResponse> listDeviceCommandResponses(java.lang.String assignmentToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- criteria
- SiteWhereException
ISearchResults<IDeviceCommandResponse> listDeviceCommandResponsesForSite(java.lang.String siteToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
siteToken
- criteria
- SiteWhereException
IDeviceStateChange addDeviceStateChange(java.lang.String assignmentToken, IDeviceStateChangeCreateRequest request) throws SiteWhereException
assignmentToken
- request
- SiteWhereException
ISearchResults<IDeviceStateChange> listDeviceStateChanges(java.lang.String assignmentToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
assignmentToken
- criteria
- SiteWhereException
ISearchResults<IDeviceStateChange> listDeviceStateChangesForSite(java.lang.String siteToken, IDateRangeSearchCriteria criteria) throws SiteWhereException
siteToken
- criteria
- SiteWhereException