FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |
ManagedObject("43026768","com_ublox_C027_REV-A","Mbed Test Device",["c8y_Relay","c8y_Configuration","c8y_Message"],[],[],[],{"alt":610.2,"lat":17.426479,"lng":78.33123},{,"c8y_Availability":any(dictionary,{any(string,"status"):any(string,"UNAVAILABLE")}), ,"c8y_Hardware":any(dictionary ,{any(string,"model"):any(string,"Ublox C027"),any(string,"revision"):any(string,"1"),any(string,"serialNumber"):any(string,"352648069564516")}),"c8y_IsDevice":any(dictionary ,{}),"c8y_Mobile":any(dictionary ,{any(string,"cellId"):any(string,"14D80CD"),any(string,"iccid"):any(string,"89914905900016774658"),any(string,"imei"):any(string,"352648069564516")}),"c8y_MotionTracking":any(dictionary ,{any(string,"active"):any(boolean,true),any(string,"interval"):any(integer,0)}),"c8y_RequiredAvailability":any(dictionary ,{any(string,"responseInterval"):any(integer,20)}),"com_cumulocity_model_Agent":any(dictionary ,{}),"owner":any(string,"device_352648069564516")})
Constant summary | |
---|---|
string | CHANNEL := "cumulocity.devices"
The channel to which ManagedObject events are sent from the transport.
|
string | NOTIFICATION_CREATED := "CREATED"
Value of PARAM_NOTIFICATION that indicates this a new object. |
string | NOTIFICATION_UPDATED := "UPDATED"
Value of PARAM_NOTIFICATION that indicates this an update to an existing object. |
string | PARAM_NOTIFICATION := ".apama_notificationType"
Entry in params that identifies if this is a new object or an update to an existing object. Entry will have a value matching either NOTIFICATION_CREATED or NOTIFICATION_UPDATED. |
string | SEND_CHANNEL := "CumulocityIoTGenericChain"
The channel to send a ManagedObject event to update an existing managed object in Cumulocity. |
string | SUBSCRIBE_CHANNEL := "cumulocity.devices"
The channel to which ManagedObject events are sent from the transport. |
string | UPDATE_CHANNEL := "CumulocityIoTGenericChain"
The channel to send a ManagedObject event to update an existing managed object in Cumulocity.
|
Member summary | |
---|---|
string | id
The unique identifier for this specific Device. |
string | type
The type of the device. |
string | name
The name of this ManagedObject. Note: This does not have to be a unique value. |
sequence<string> | supportedOperations
List of supported operations for this device. |
sequence<string> | supportedMeasurements
List of supported measurements for this device. |
sequence<string> | childDeviceIds
Ids of child devices. |
sequence<string> | childAssetIds
Ids of child devices. |
sequence<string> | deviceParentIds
Ids of parent devices. |
sequence<string> | assetParentIds
Ids of parent assets. |
dictionary<string, float> | position
If known, contains lat, lng, altitude and accuracy. |
dictionary<string, any> | params
Other fragments for this ManagedObject. |
Action summary | |
---|---|
com.apama.cumulocity.ResponseWrapper |
withChannelResponse(integer reqId, dictionary<string, string> headers)
Create or update a ManagedObject in Cumulocity and receive a response event confirming the change on ManagedObject.SUBSCRIBE_CHANNEL channel. |
com.apama.cumulocity.ResponseWrapper |
withResponse(integer reqId, dictionary<string, string> headers)
Create or update a ManagedObject in Cumulocity and receive a response event on default channel, confirming the change.
|
Constant detail |
---|
string CHANNEL := "cumulocity.devices"
string NOTIFICATION_CREATED := "CREATED"Value of PARAM_NOTIFICATION that indicates this a new object.
string NOTIFICATION_UPDATED := "UPDATED"Value of PARAM_NOTIFICATION that indicates this an update to an existing object.
string PARAM_NOTIFICATION := ".apama_notificationType"Entry in params that identifies if this is a new object or an update to an existing object. Entry will have a value matching either NOTIFICATION_CREATED or NOTIFICATION_UPDATED.
string SEND_CHANNEL := "CumulocityIoTGenericChain"The channel to send a ManagedObject event to update an existing managed object in Cumulocity.
string SUBSCRIBE_CHANNEL := "cumulocity.devices"The channel to which ManagedObject events are sent from the transport.
string UPDATE_CHANNEL := "CumulocityIoTGenericChain"
Member detail |
---|
sequence<string> assetParentIdsIds of parent assets.
sequence<string> childAssetIdsIds of child devices.
sequence<string> childDeviceIdsIds of child devices.
sequence<string> deviceParentIdsIds of parent devices.
string idThe unique identifier for this specific Device.
string nameThe name of this ManagedObject. Note: This does not have to be a unique value.
dictionary<string, any> paramsOther fragments for this ManagedObject.
dictionary<string, float> positionIf known, contains lat, lng, altitude and accuracy.
sequence<string> supportedMeasurementsList of supported measurements for this device.
sequence<string> supportedOperationsList of supported operations for this device.
string typeThe type of the device.
Action detail |
---|
com.apama.cumulocity.ResponseWrapper withChannelResponse(integer reqId, dictionary<string, string> headers)Create or update a ManagedObject in Cumulocity and receive a response event confirming the change on ManagedObject.SUBSCRIBE_CHANNEL channel.
ManagedObject m := new ManagedObject;
monitor.subscribe(ManagedObject.SUBSCRIBE_CHANNEL);
// set fields in m
integer reqId := com.apama.cumulocity.Util.generateReqId();
send m.withChannelResponse(reqId, {"X-Cumulocity-Application-Key": "myapp"}) to ManagedObject.SEND_CHANNEL;
// myapp is the user application key
on ObjectCommitted(reqId=reqId) as commit and not ObjectCommitFailed(reqId=reqId) {
// do something
}
on ObjectCommitFailed(reqId=reqId) as failure and not ObjectCommitted(reqId=reqId) {
// do something
}
com.apama.cumulocity.ResponseWrapper withResponse(integer reqId, dictionary<string, string> headers)
ManagedObject m := new ManagedObject;
// set fields in m
integer reqId := com.apama.cumulocity.Util.generateReqId();
send m.withResponse(reqId, {"X-Cumulocity-Application-Key": "myapp"}) to ManagedObject.SEND_CHANNEL;
// myapp is the user application key
on ObjectCommitted(reqId=reqId) as commit and not ObjectCommitFailed(reqId=reqId) {
// do something
}
on ObjectCommitFailed(reqId=reqId) as failure and not ObjectCommitted(reqId=reqId) {
// do something
}
FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |