Get logs list
Return log's list. Available events:
Query Parameters
- locale string
Possible values: [
en,ru,uk,es,pl]Language for localizing logs. Value by default is 'en'
- limit integer required
Possible values:
<= 1000Number of items. Value by default is 10
- page_number integer required
Possible values:
>= 1Page number
- order_by string
sorting expression:
[field name 1], [field name 2]... <order (asc or 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_namevalue 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 arrayCompare 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)
Schema
options object
The model provides options can be used to sort, filter, and paginate log items
pagination object
Available pagination options for tables
total_items integerThe total number of items found and reflected across all pages
items_limit integerPossible values:
<= 1000Limiting the display of the amount of data for one page
total_pages integerThe number of pages that hold the requested data
current_page integerPossible values:
>= 1Current page number
filter object
Specified filtering options for the requested dataset
available_filtering booleanDetermines if filtering is available for this dataset
is_filtered booleanDescribes if this dataset is filtered
available_fields object[]
List of fields available for filtering
field_name stringName of the field used for filtering
compare_operators string[]Possible values: [
eq,gt,lt,nq,ge,le,lk]Set of filter operators available for this field
data_type stringPossible values: [
string,integer,timestamp]Describes data type of the field
options object
Extra settings of the field
anyOf- MOD1
- MOD2
- MOD3
- MOD4
available_values object[]This model provide filter available values, data type of values depends on field data type
available_values object[]This model provide filter available values, data type of values depends on field data type
available_values_localized string[]The field is used only for UI localization and is not a filter value.
available_range object
This model provide filter integer range
min integerRepresents minimum range value
max integerRepresents maximum range value
has_date booleanDefault value:
falseDetermines if field value has date part, used for timestamp data type
has_time booleanDefault value:
falseDetermines if field value has time part, used for timestamp data type
has_milliseconds booleanDefault value:
falseDetermines if field value has milliseconds part, used for timestamp data type
sort object
Describes current sorting information and list of the dataset fields available for sorting
is_sorted booleanDirection of sorting
order stringPossible values: [
asc,desc]Direction of applied sorting, true is ascending, false is descending
available_fields string[]List of the dataset fields available for sorting
locale object
This model describes available languages can be used to display logs
locale stringPossible values: [
en,es,ru,uk,pl]Default value:
enActive localization
available_locales string[]Possible values: [
en,es,ru,uk,pl]List of localization available
items object[]
Log events dataset
timestamp int64Unix Timestamp Date
category stringPossible values: [
access,emergency,system,info]Event category code
priority stringPossible values: [
low,medium,high,critical]Event priority code
name object
Event name information
key stringThe code of the event
text stringLocalized name of the event
info object
This model provides detailed information about log event
model object
Represents log event raw data
oneOf- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
- MOD13
- MOD15
- MOD18
- MOD19
apartment object
Attached apartment or empty
name stringPossible values:
<= 100 charactersName for the apartment, owner full name or apartment number usually used. Nonempty string.
building integerPossible values:
>= 1and<= 9999Building number
unit integerPossible values:
<= 99Unit number
floor integerPossible values:
<= 98Floor number
room integerPossible values:
<= 99Room number
user stringPossible values:
<= 100 charactersAttached user name or empty
relays_switched integer[]Switched relays list
number stringPossible values:
<= 256 characters-
hex if identifier type is card or ukey - max length is 32 bytes
-
binary if identifier type is card or ukey - min length is 16 symbols, max length is 256 symbols
-
dec if identifier type is input_сode - max length is 10 symbols
-
string if identifier type is license_plate - max length is 100 symbols
-
pattern for hex ([0-9A-Fa-f]{2}[:-]){1,31}([0-9A-Fa-f]{2})
-
pattern for dec - [0-9]{1,10}
-
pattern for bin - [01]{16,256}
type stringPossible values: [
card,ukey,input_code,license_plate]Identifier type used for access
name stringPossible values:
<= 100 charactersName of the identifier
reader_id stringReader unique name, format:
reader_name stringHuman readable reader name
apartment object
Attached apartment or empty
name stringPossible values:
<= 100 charactersName for the apartment, owner full name or apartment number usually used. Nonempty string.
building integerPossible values:
>= 1and<= 9999Building number
unit integerPossible values:
<= 99Unit number
floor integerPossible values:
<= 98Floor number
room integerPossible values:
<= 99Room number
user stringPossible values:
<= 100 charactersAttached user name or empty
number stringPossible values:
<= 256 characters-
hex if identifier type is card or ukey - max length is 32 bytes
-
binary if identifier type is card or ukey - min length is 16 symbols, max length is 256 symbols
-
dec if identifier type is input_сode - max length is 10 symbols
-
string if identifier type is license_plate - max length is 100 symbols
-
pattern for hex ([0-9A-Fa-f]{2}[:-]){1,31}([0-9A-Fa-f]{2})
-
pattern for dec - [0-9]{1,10}
-
pattern for bin - [01]{16,256}
type stringPossible values: [
card,ukey,input_code,license_plate]Identifier type used for access
name stringPossible values:
<= 100 charactersName of the identifier
reader_id stringReader unique name, format:
reader_name stringHuman readable reader name
number stringPossible values:
<= 256 characters-
hex if identifier type is card or ukey - max length is 32 bytes
-
binary if identifier type is card or ukey - min length is 16 symbols, max length is 256 symbols
-
dec if identifier type is input_сode - max length is 10 symbols
-
string if identifier type is license_plate - max length is 100 symbols
-
pattern for hex ([0-9A-Fa-f]{2}[:-]){1,31}([0-9A-Fa-f]{2})
-
pattern for dec - [0-9]{1,10}
-
pattern for bin - [01]{16,256}
type stringPossible values: [
card,ukey,input_code,license_plate]Identifier type used for access
name stringPossible values:
<= 100 charactersName of the identifier
reader_id stringReader unique name, format:
reader_name stringHuman readable reader name
apartment object
Attached apartment or empty
name stringPossible values:
<= 100 charactersName for the apartment, owner full name or apartment number usually used. Nonempty string.
building integerPossible values:
>= 1and<= 9999Building number
unit integerPossible values:
<= 99Unit number
floor integerPossible values:
<= 98Floor number
room integerPossible values:
<= 99Room number
user stringPossible values:
<= 100 charactersAttached user name or empty
number stringPossible values:
<= 256 characters-
hex if identifier type is card or ukey - max length is 32 bytes
-
binary if identifier type is card or ukey - min length is 16 symbols, max length is 256 symbols
-
dec if identifier type is input_сode - max length is 10 symbols
-
string if identifier type is license_plate - max length is 100 symbols
-
pattern for hex ([0-9A-Fa-f]{2}[:-]){1,31}([0-9A-Fa-f]{2})
-
pattern for dec - [0-9]{1,10}
-
pattern for bin - [01]{16,256}
type stringPossible values: [
card,ukey,input_code,license_plate]Identifier type used for access
name stringPossible values:
<= 100 charactersName of the identifier
reader_id stringReader unique name, format:
reader_name stringHuman readable reader name
requestor stringAPI requestor or empty (web_ui, link, etc)
relays_switched integer[]Switched relays list
id integerSensor id
is_on booleanSensor state
relays_switched integer[]Switched relays list
id integerSensor id
is_on booleanSensor state
id integerSensor id
is_on booleanSensor state
relays_switched integer[]Switched relays list
id integerSensor id
is_on booleanSensor state
id integerSensor id
is_on booleanSensor state
id integerSensor id
is_on booleanSensor state
relays_switched integer[]Switched relays list
relays_switched integer[]Switched relays list
blocked_relays integer[]Blocked relays list
login stringThe user's login name
login stringThe user's login name
text stringHuman-readable information about event
{
"options": {
"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": [
"extra option",
1,
false
]
}
}
]
},
"sort": {
"is_sorted": true,
"order": "asc",
"available_fields": [
"name"
]
},
"locale": {
"locale": "en",
"available_locales": [
"uk"
]
}
},
"items": [
{
"timestamp": 1540819272,
"category": "access",
"priority": "high",
"name": {
"key": "incoming_call",
"text": "Access denied by web interface"
},
"info": {
"model": {},
"text": "Relay 1 switched by API call"
}
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "bad_request",
"message": "Bad request sent"
}
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Invalid authentication"
}
}