activity_log.publish
The activity_log.publish command is used to publish an activity log entry.
M2M Service API
TR50 Request
{
"cmd": {
"command": "log.publish",
"params": {
"operation":"property_history",
"component":"application",
"message":"Reading the property history",
"identifier":"5af35166cea2067245b1b7a5",
"identifierType":"thing",
"tags":["tag1", "tag2"]
}
}
Request Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
component |
String |
Yes |
A tag compatible string indicating the component this activity log references. |
operation |
String |
Yes |
A string indicating the operation being performed, such as the name of the function or routine being executed. |
message |
String |
Yes |
The message. |
identifier |
String |
The ID value of the object this activity log references. |
|
IdentifierType |
String |
The type of object (user, thing, connection, etc) that the identifier references. |
|
tags |
Array |
The tags to associate with this activity log entry. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true
}
}