Register   |  Login             

SCP API DETAILS

Event logs


get : /eventlog/countAllEventLogByResourceId/{userId}

get

Description

Count event logs by device

Response Model
                            {
	count (long): Count event logs,
	errorCode (integer): Error code,
    errorDesc (string): Error description
}
                        
Parameters
Parameter Description Parameter Type Data Type
userId User id path Long
deviceId Device id query String
fromDate From date query String
toDate To date query String
get : /eventlog/getAllEventByTime/{userId}/{eventTypeId}

get

Description

Get all system event logs by time

Response Model
                            {
    total (integer): The total number of records,
    errorCode (integer): Error code,
	errorDesc (string): Error description,
    allEventList: [
		{
			id (long): Id EventLogs,
			name (string): The name of EventLogs,
			createdate (string): Date Created,
			eventType (long): Type of EventLogs,
			eventTypeName (string): Name EventLogs style,
			des (string): Description,
			createdUser (string): Creator,
			RESOURCEID (string): Id of the resource,
			resourceType (long): The type of resource,
			deviceName (string): The name of the device,
			deviceId (long): Id of the device system,
			device_Id (long): Id outside of the device,
			resourceName (string): The name of the resource,
			userId (long): User id,
			apiKey (string): Api key
		}
	]
}
                        
Parameters
Parameter Description Parameter Type Data Type
eventTypeId Id of event type path Long
userId User id path Long
fromDate From date (dd-MM-yyyy) query String
start Records began query Integer
toDate To date (dd-MM-yyyy) query String
total Get the number of records query String
get : /eventlog/getAllEventLogByResourceId/{userId}

get

Description

Get the list event logs by time

Response Model
                            {
    total (integer): The total number of records,
    errorCode (integer): Error code,
	errorDesc (string): Error description,
	eventDeviceList: [
		{
			id (long): Id of event,
			name (string): The name of event,
			createdate (string): Date created,
			eventType (long): Event type,
			eventTypeName (string): Event type name,
			des (string): Description,
			createdUser (string): Creator,
			resourceType (long): Resource type,
			deviceName (string): Device name,
			deviceId (long): Device id,
			device_Id (long): ,
			resourceName (string): resource name,
			userId (long): User id,
			apiKey (string): Api key
		}
	],
	eventLogsList: [
		{
			id (long): Id of event,
			name (string): The name of event,
			createdate (string): Date created,
			type (long): Event type,
			typeName (string): Event type name,
			description (string): Description,
			resourceId (string): Resource id,
			resourceType (long): Resource type,
			createdUser (string): User created,
			userId (long): User id,
			apiKey (string): Api key
		}
	]
}
                        
Parameters
Parameter Description Parameter Type Data Type
userId User id path Long
deviceId Device id query String
fromDate From date query String
start Recordings started query Integer
toDate To date query String
total Get the number of records query Integer
get : /eventlog/getAllEventType/{userId}

get

Description

Get the list of types of event logs

Response Model
                            {
    total (integer): The total number of records,
    errorCode (integer): Error code,
	errorDesc (string): Error description
    allEventTypeList: [
		{
			id (long): Id of the type of event,
			name (string): The name of this type of event,
			description (string): Description of the type of event
		}
	]
}
                        
Parameters
Parameter Description Parameter Type Data Type
userId User id path Long
get : /eventlog/getEventDeviceByTime/{userId}/{deviceId}

get

Description

Get the event logs of the device according to input time period

Response Model
                            {
    total (integer): The total number of records,
    errorCode (integer): Error code,
	errorDesc (string): Error description,
	eventDeviceList: [
		{
			id (long): Id of event,
			createdate (string): Created date,
			deviceId (string): Device id,
			status (short): Status device,
			type (short): Type event (1: view, 2 : register, 3 : unregister),
			comments (string): Comments,
			userId (long): User id,
			systemDeviceId (long): System device id
		}
	],
	eventLogsList: [
		{
			id (long): Id of event,
			name (string): The name of event,
			createdate (string): Date created,
			type (long): Event type,
			typeName (string): Event type name,
			description (string): Description,
			resourceId (string): Resource id,
			resourceType (long): Resource type,
			createdUser (string): User created,
			userId (long): User id,
			apiKey (string): Api key
		}
	]
}
                        
Parameters
Parameter Description Parameter Type Data Type
deviceId Device id of the system path String
userId User id path Long
fromDate From date (dd-MM-yyyy) query String
start Records began query Integer
toDate To date (dd-MM-yyyy) query String
total Get the number of records query Integer
Contact Information

Vietnam Post and Telecommunication Industry Technology (VNPT Technology)

Tel
Fax
Address
(+84) 4 3748 0922
(+84) 4 3748 0925
No. 124 Hoang Quoc Viet Street, Nghia Tan Ward, Cau Giay District, Hanoi
Introduction

•      VNPT Technology Introduction
•      SCP Introduction

Partners

•      Introduction
•      Certification process

Developers

•      SCP Discovery
•      APIs
•      Guideline Documents
•      Libraries

Legal

•      Terms of use
•      Privacy Policy
•      License Agreement

Copyright © 2017 VNPT Technology. All rights reserved.