get_device_activity
Gets all device activity.
Path:
/lib/get_device_activity.js
Parameters:
Name | Type | Description |
---|---|---|
device | String | The name of the device to get activity for. |
Example Request:
POST /redrock/query
{
"Script":"@/lib/get_device_activity.js",
"Args":{
"device": "LinuxBox",
"PageNumber":1,
"PageSize":10,
"Limit":10,
"SortBy":"",
"direction":"False",
"Caching":-1
}
}
Example Response:
{
"success": true,
"Result": {
"IsAggregate": false,
"Count": 0,
"Columns": [
{
"Name": "When",
"IsHidden": false,
"DDName": "WhenOccurred",
"Title": "When",
"DDTitle": "When Occurred",
"Description": null,
"Type": 3,
"Format": null,
"Width": 0,
"TableKey": "NotAKey",
"ForeignKey": null,
"TableName": "Event"
},
{
"Name": "User",
"IsHidden": false,
"DDName": "NormalizedUser",
"Title": "User",
"DDTitle": "Normalized User",
"Description": null,
"Type": 12,
"Format": null,
"Width": 0,
"TableKey": "NotAKey",
"ForeignKey": "User",
"TableName": "Event"
},
{
"Name": "Detail",
"IsHidden": false,
"DDName": "EventMessage",
"Title": "Detail",
"DDTitle": "Message",
"Description": null,
"Type": 12,
"Format": null,
"Width": 0,
"TableKey": "NotAKey",
"ForeignKey": null,
"TableName": "Event"
}
],
"FullCount": 0,
"Results": [],
"ReturnID": ""
},
"Message": null,
"MessageID": null,
"Exception": null,
"ErrorID": null,
"ErrorCode": null,
"InnerExceptions": null
}
Updated about 5 years ago