@ThingworxExtensionApiClass(since={8,4}) public class Reportable extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Reportable() |
Modifier and Type | Method and Description |
---|---|
boolean |
EvaluateReporting(java.lang.String eventName,
org.joda.time.DateTime eventTime,
java.lang.String source,
java.lang.String sourceProperty,
InfoTable eventData)
Service Category:
Service Description: Evaluates this Thing's Reporting status based on its strategy.
|
java.lang.String |
GetReportingStrategy()
Service Category:
Service Description: Retrieves this Thing's reporting strategy.
|
void |
SetReportingStrategy(java.lang.String strategyThing)
Service Category:
Service Description: Set this Thing's reporting strategy.
|
@ThingworxExtensionApiMethod(since={8,4}) public boolean EvaluateReporting(java.lang.String eventName, org.joda.time.DateTime eventTime, java.lang.String source, java.lang.String sourceProperty, InfoTable eventData) throws java.lang.Exception
eventName
- Name of the event - STRINGeventTime
- Time event is triggered - DATETIMEsource
- Name of Thing that triggered event - STRINGsourceProperty
- Soure property - STRINGeventData
- Data used to evaluate presence - INFOTABLE
java.lang.Exception
- if the Thing doesn't have the right Properties, Services, has a Strategy that does not refer to a visible Thing,
if the service calls return invalid values, or other exceptional conditions@ThingworxExtensionApiMethod(since={8,4}) public void SetReportingStrategy(java.lang.String strategyThing) throws java.lang.Exception
strategyThing
- Name of the Strategy Thing - THINGNAME
java.lang.Exception
- if the Strategy Thing specified does not exist
if the Strategy Thing specified does not extend from ReportingByConnection@ThingworxExtensionApiMethod(since={8,4}) public java.lang.String GetReportingStrategy() throws InvalidRequestException
InvalidRequestException
- If an error occurs