@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class AlertServices extends Resource
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
AlertServices() |
Modifier and Type | Method and Description |
---|---|
void |
AcknowledgeAlert(java.lang.String source,
java.lang.String sourceProperty,
java.lang.String message)
Service Category: Alerts
Service Description: Acknowledge an active alert.
|
void |
AcknowledgeAlertFromSummary(InfoTable alerts,
java.lang.String message)
Service Category: Alerts
Service Description: Acknowledge an active alert via a summary record.
|
void |
DeleteAlertFromSummary(InfoTable alerts)
Service Category: Alerts
Service Description: Deletes an alert(s) from the summary record.
|
InfoTable |
GetAlertConfigurationForBaseType(java.lang.String baseType,
java.lang.String alertType)
Service Category: Alerts
Service Description: Get the appropriate alert configuration DataShape for a given base type.
|
InfoTable |
GetAlertConfigurationInfo()
Service Category: Alerts
Service Description: Get the all the appropriate alert information for all the property definition base types.
|
InfoTable |
GetAlertTypesForBaseType(java.lang.String baseType)
Service Category: Alerts
Service Description: Get the appropriate alert types given base type.
|
void |
PurgeAlertHistory(org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate)
Service Category: Maintenance
Service Description: Purge the alert history.
|
InfoTable |
QueryAlertHistory(java.lang.String name,
org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate,
java.lang.Boolean oldestFirst,
org.json.JSONObject query,
java.lang.Double maxItems)
Service Category: Queries
Service Description: Query the alert history.
|
InfoTable |
QueryAlertSummary(org.json.JSONObject query,
java.lang.Boolean onlyAcknowledged,
java.lang.Boolean onlyUnacknowledged,
java.lang.Double maxItems)
Service Category: Queries
Service Description: Query the alert summary.
|
InfoTable |
QueryAlertSummaryForThing(java.lang.String name,
java.lang.Boolean onlyAcknowledged,
java.lang.Boolean onlyUnacknowledged,
org.json.JSONObject query,
java.lang.String property,
java.lang.Double maxItems)
Service Category: Queries
Service Description: Query the alert summary for a specific thing.
|
getEntityType
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, validateConfiguration
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, hasID
getDescription, getName
getID, getName
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryAlertSummary(org.json.JSONObject query, java.lang.Boolean onlyAcknowledged, java.lang.Boolean onlyUnacknowledged, java.lang.Double maxItems) throws java.lang.Exception
query
- Query definition - QUERYonlyAcknowledged
- Show only acknowledged alerts - BOOLEANonlyUnacknowledged
- Show only unacknowledged alerts - BOOLEANmaxItems
- Maximum number of items to return - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryAlertSummaryForThing(java.lang.String name, java.lang.Boolean onlyAcknowledged, java.lang.Boolean onlyUnacknowledged, org.json.JSONObject query, java.lang.String property, java.lang.Double maxItems) throws java.lang.Exception
name
- Thing name - THINGNAMEonlyAcknowledged
- Show only acknowledged alerts - BOOLEANonlyUnacknowledged
- Show only unacknowledged alerts - BOOLEANquery
- Query definition - QUERYproperty
- Property name - STRINGmaxItems
- Maximum number of items to return - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetAlertConfigurationForBaseType(java.lang.String baseType, java.lang.String alertType) throws java.lang.Exception
baseType
- Base type - BASETYPENAMEalertType
- Alert type - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetAlertTypesForBaseType(java.lang.String baseType) throws java.lang.Exception
baseType
- Base type - BASETYPENAMEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetAlertConfigurationInfo() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryAlertHistory(java.lang.String name, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean oldestFirst, org.json.JSONObject query, java.lang.Double maxItems) throws java.lang.Exception
name
- Thing name - THINGNAMEstartDate
- Start time - DATETIMEendDate
- End time - DATETIMEoldestFirst
- Search/sort from oldest to newest - BOOLEANquery
- Query definition - QUERYmaxItems
- Maximum number of items to return - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void PurgeAlertHistory(org.joda.time.DateTime startDate, org.joda.time.DateTime endDate) throws java.lang.Exception
startDate
- Start time - DATETIMEendDate
- End time - DATETIMEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AcknowledgeAlert(java.lang.String source, java.lang.String sourceProperty, java.lang.String message) throws java.lang.Exception
source
- Source thing - STRINGsourceProperty
- Source property - STRINGmessage
- Alert message (optional) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AcknowledgeAlertFromSummary(InfoTable alerts, java.lang.String message) throws java.lang.Exception
alerts
- Alerts to acknowledge - INFOTABLEmessage
- Alert message (optional) - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,3}) public void DeleteAlertFromSummary(InfoTable alerts) throws java.lang.Exception
alerts
- Alerts to delete - INFOTABLEjava.lang.Exception
- If an error occurs