Difference between revisions of "Internal ActivityLog API Subsystem"

From GrandCare Systems
Jump to navigation Jump to search
m (Added Internal to GCAPI)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:


The ActivityLog subsystem allows you to view and add activity log entries from a system via [[GCAPI]].  Introduced in Como 4.4.0.
The ActivityLog subsystem allows you to view and add activity log entries from a system via [[Internal GCAPI]].  Introduced in Como 4.4.0.
= Operations =
= Operations =
== read ==
== read ==

Latest revision as of 16:46, 10 July 2017

The ActivityLog subsystem allows you to view and add activity log entries from a system via Internal GCAPI. Introduced in Como 4.4.0.

Operations

read

Reads entries out of the activity log matching your parameters or all if none specified

Parameters

  • id - [optional] log entry ID
  • key - [optional]
  • value - [optional]

Results

SUCCESS, returns back log entries

json

$ curl "http://10.100.1.2/api/activitylog.php?op=read&id=1encoding=json&passcode=x
{
 "gcapi": {
   "result": "SUCCESS",
   "activitylog": [
     {
       "id": "1",
       "key": "ui.module.slideshow.activate",
       "value": "messages",
       "datetime": "2013-06-03 13:21:33"
     }
   ]
 }
}

add

Adds an entry to the activity log

Parameters

  • key - required
  • value - required

Results

SUCCESS, returns back the new log entry

json

$ curl "http://10.100.1.2/api/activitylog.php?op=add&key=foo&value=bar&encoding=json&passcode=x
{
 "gcapi": {
   "result": "SUCCESS",
   "activitylog": {
       "id": "125",
       "key": "foo",
       "value": "bar",
       "datetime": "2013-06-17 13:21:33"
   }
 }
}