Get logs list
Get logs list. Available events:
Access
- access_denied_by_not_valid_identifier
- access_denied_by_not_valid_input_code
- access_denied_by_remote_server_api_call
- access_denied_by_web_api_call
- access_denied_by_unknown_card
- access_granted_by_valid_identifier
- access_granted_by_master_code
- access_granted_by_api_call
- access_granted_by_call_host
- access_granted_by_remote_server_api_call
- lock_was_opened_by_exit_btn
- access_denied_by_unknown_qr_code
- lock_is_opened_too_long
- door_sensor_was_closed
- door_sensor_was_opened
Info
- outgoing_call
- incoming_call
- lock_is_opened_too_long
System
- successful_login_api_call
- incorrect_login_api_call
Query Parameters
- locale string
Possible values: [
en
,ru
,uk
]Language for localizing logs. Value by default is 'en'
- limit integer required
Possible values: [
10
,20
,30
,50
]Default value:
10
Number of items. Value by default is 10
- page_number integer required
Possible values:
>= 1
Default value:
1
Page number
- sort_field string
field name see the list of available fields in
sort.available_fields[]
- sort_type string
Possible values: [
asc
,desc
]Default value:
asc
Sort type (asc/desc)
- filter string
Filtering expression:
[field name] [compare operator] [value] <logical operator>...
field name see the list of available fields in filter.available_fields[].field_name
value see the list of available values in filter.available_fields[].options object
, may be missingcompare operator see the list of available operators in filter.available_fields[].compare_operators array
Compare operators Description Example eq Equal name eq 'Sherlock Holmes' gt Greater than building gt 10 lt Less than building lt 10 nq Not equal name nq 'Sherlock Holmes' ge Greater than or equal floor ge 5 le Less than or equal floor le 5 Logical operators and logical AND floor le 10 and floor gt 3 or logical OR floor le 3 or floor gt 10 not logical NOT not floor le 3 group operations () group by priority (name eq 'Sherlock Holmes' or building eq 221) and floor gt 10
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
list_option object[]
pagination object
Available pagination options for tables
total_items integerThe total number of items found and reflected across all pages
items_limit integerPossible values: [
10
,25
,50
]Limiting the display of the amount of data for one page
total_pages integerPossible values:
>= 1
The number of pages that hold the requested data
current_page integerPossible values:
>= 1
Current page number
filter object
available_filtering booleanis_filtered booleanavailable_fields object[]
field_name stringcompare_operators string[]Possible values: [
eq
,gt
,lt
,nq
,ge
,le
]Compare operators Description Example eq Equal name eq 'Sherlock Holmes' gt Greater than building gt 10 lt Less than building lt 10 nq Not equal name nq 'Sherlock Holmes' ge Greater than or equal floor ge 5 le Less than or equal floor le 5 data_type stringPossible values: [
string
,integer
,timestamp
]options object
anyOf- MOD1
- MOD2
- MOD3
- MOD4
available_values string,integer[]Possible values:
>= 1
This model provide filter available values
available_range integer[]Possible values:
>= 2
,<= 2
This model provide filter integer range
available_values_localized string[]the field is used only for UI localization and is not a filter value.
has_date booleanDefault value:
false
has_time booleanDefault value:
false
has_milliseconds booleanDefault value:
false
sort object
This model describes available sort options can be used to display logs
asc booleanDefault value:
true
available_sorting string[]Possible values: [
asc
,desc
]locale object
This model describes available languages can be used to display logs
locale stringPossible values: [
en
,es
,ru
,uk
]Default value:
en
available_locales string[]Possible values: [
en
,es
,ru
,uk
]list_items object[]
timestamp int64Unix Timestamp Date
category stringPossible values: [
access
,emergency
,system
,info
]priority stringname object
key stringfilter key
localized stringenglish stringinfo object
This model provides detailed information about log event
model object
Represents log event raw data
anyOf- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
- MOD13
- MOD14
- MOD16
- MOD17
- MOD18
- MOD19
- MOD20
account_type stringPossible values: [
admin
]account_type stringPossible values: [
admin
]number stringanswered booleannumber stringanswered booleaninfo stringinfo stringnumber integertype stringowner stringapartment_address stringlock integercode stringcard stringlock integerhost stringlock integerlock integerdevice_name stringPossible values: [
door_sensor
,enter_button
]number integertype stringowner stringapartment_address stringlock integerlock_opened_time integerIn seconds
account_type stringPossible values: [
admin
]account_type stringPossible values: [
admin
]number stringanswered booleanlocalized stringenglish stringThis filed is presented when you choose locale different from "en"
{
"list_option": [
{
"pagination": {
"total_items": 18,
"items_limit": 10,
"total_pages": 2,
"current_page": 1
},
"filter": {
"available_filtering": true,
"is_filtered": true,
"available_fields": [
{
"field_name": "category",
"compare_operators": [
"eq"
],
"data_type": "string",
"options": {
"available_values": [
"any string"
]
}
}
]
},
"sort": {
"asc": true,
"available_sorting": [
"asc",
"desc"
]
},
"locale": {
"locale": "en",
"available_locales": [
"en",
"es",
"ru",
"uk"
]
}
}
],
"list_items": [
{
"timestamp": 1540819272,
"category": "access",
"priority": "high",
"name": {
"key": "access_denied_by_web_api_call",
"localized": "Access denied by web interface",
"english": "Access denied by web interface"
},
"info": {
"model": {},
"localized": "string",
"english": "string"
}
}
]
}
{
"list_option": [
{
"pagination": {
"total_items": 18,
"items_limit": 10,
"total_pages": 2,
"current_page": 1
},
"filter": {
"is_filtered": false,
"available_filtering": true,
"available_fields": [
{
"field_name": "category",
"compare_operators": [
"eq",
"nq"
],
"data_type": "string",
"options": {
"available_values": [
"access",
"emergency",
"system",
"info"
]
}
},
{
"field_name": "event",
"compare_operators": [
"eq",
"nq"
],
"data_type": "string",
"options": {
"available_values": [
"access_denied_by_not_valid_identifier",
"access_denied_by_not_valid_input_code",
"access_denied_by_remote_server_api_call",
"access_denied_by_unknown_card",
"access_denied_by_unknown_qr",
"access_denied_by_web_api_call",
"access_granted_by_api_call",
"access_granted_by_call_host",
"access_granted_by_master_code",
"access_granted_by_remote_server_api_call",
"access_granted_by_valid_identifier",
"door_was_closed",
"door_was_opened",
"emergency_cancel",
"emergency_start",
"incoming_call",
"incorrect_login_api_call",
"lock_is_opened_to_long",
"lock_was_opened_by_exit_btn",
"outgoing_call",
"successful_login_api_call"
],
"available_values_localized": [
"Невалидный идентификатор",
"Неверный код доступа",
"Доступ запрещен удалённым сервером",
"Неизвестный идентификатор",
"Неизвестный QR код",
"Доступ запрещен из веб-интерфейса",
"Доступ разрешен из веб-интерфейса",
"Замок открыт ответным устройством",
"Введен общий код доступа",
"Доступ разрешен удалённым сервером",
"Замок открыт идентификатором",
"Дверь закрыта",
"Дверь открыта",
"Экстренное событие завершено",
"Экстренное событие",
"Входящий вызов",
"Неудачная попытка входа в веб-интерфейс",
"Длительное открытие замка",
"Замок открыт кнопкой выхода",
"Исходящий вызов",
"Вход в веб-интерфейс"
]
}
},
{
"field_name": "priority",
"compare_operators": [
"eq",
"nq"
],
"data_type": "string",
"options": {
"available_values": [
"low",
"medium",
"high",
"critical"
]
}
},
{
"field_name": "timestamp",
"compare_operators": [
"eq",
"nq",
"lt",
"gt",
"ge",
"le"
],
"data_type": "timestamp",
"options": {
"has_milliseconds": true,
"has_date": true,
"has_time": true
}
}
]
},
"sort": {
"asc": true,
"available_sorting": [
"asc",
"desc"
]
},
"locale": {
"locale": "en",
"available_locales": [
"en",
"es",
"ru",
"uk"
]
}
}
],
"list_items": [
{
"timestamp": 1540819272,
"category": "access",
"priority": "high",
"name": {
"key": "access_denied_by_web_api_call",
"localized": "Access denied by web interface",
"english": "Access denied by web interface"
},
"info": {
"model": {},
"localized": "string",
"english": "string"
}
}
]
}
- Bad request.
- Pagination: wrong limit
- Pagination: wrong page
- Wrong time format
- Wrong time range: 'to' must be greater then 'from'
- Filter: wrong filter_type
- Filter: wrong filter_field
- Filter: wrong filter_value
- Sort: wrong sort_type
- Wrong number format
Log In