Package log
Services
service LogService
Retrieves all LSAM transactions associated with the server
Retrieves all Grpc Request/Response logs associated with the server
Retrieves all Error logs associated with the server (expected and unexpected errors)
Messages
message ErrorLog
GetErrors
| Field | Type | Description | |
|---|---|---|---|
| 1 | Id |
string
|
id |
| 2 | hsmHost |
string
|
hsm host |
| 3 | errorClass |
string
|
error class name |
| 4 | code |
string
|
grpc error code |
| 5 | message |
string
|
error message |
| 6 | controller |
string
|
controller name |
| 7 | method |
string
|
method name |
| 8 | clientId |
string
|
cognito clientId |
| 9 | createdAt |
uint32
|
created at in unix timestamp (seconds) |
| 10 | data |
string
|
request data |
message ErrorLogsRequest
ErrorLogsRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | Id |
string
|
id |
| 2 | startDate |
uint32
|
start date in unix timestamp (seconds) default now()-5 |
| 3 | endDate |
uint32
|
end date in unix timestamp (seconds) default now() |
| 4 | method |
string
|
method name |
| 5 | serverIp |
string
|
server ip |
message ErrorLogsResponse
ErrorLogsResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | errors |
repeated
log.ErrorLog
|
error logs array |
message LSAMTransaction
LSAMTransaction
| Field | Type | Description | |
|---|---|---|---|
| 1 | Id |
string
|
id |
| 2 | createdAt |
uint32
|
created at in unix timestamp (seconds) |
| 3 | lsamUid |
string
|
lsam uid |
| 4 | lsamCsn |
string
|
lsamCsn |
| 5 | type |
log.LSAMTransactionType
|
type |
| 6 | value |
uint32
|
value |
| 7 | lsamBalance |
uint32
|
lsamBalance after transaction |
| 8 | status |
log.LSAMTransactionStatus
|
status (0=active/1=error) |
| 9 | remoteAddress |
string
|
hsam remoteAddress |
| 10 | clientId |
string
|
cognito clientId |
| 11 | userUid |
string
|
media userUid |
| 12 | errorMsg |
string
|
error message |
| 13 | signature |
string
|
signature |
message LSAMTransactionsRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | Id |
string
|
id |
| 2 | startDate |
uint32
|
start date in unix timestamp (seconds) default now()-5 |
| 3 | endDate |
uint32
|
end date in unix timestamp (seconds) default now() |
| 4 | lsamUid |
string
|
lsam uid |
| 5 | lsamCsn |
string
|
lsam csn |
message LSAMTransactionsResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | transactions |
repeated
log.LSAMTransaction
|
lsam transactions array |
message Log
Log
| Field | Type | Description | |
|---|---|---|---|
| 1 | Id |
string
|
id |
| 2 | clientId |
string
|
cognito clientId |
| 3 | hasError |
bool
|
has error? |
| 4 | hsmHost |
string
|
hsm host |
| 5 | type |
log.LogType
|
type (0=unary/1=stream) |
| 6 | controller |
string
|
controller name |
| 7 | method |
string
|
method name |
| 8 | elapsedMs |
uint32
|
elapsed time in milliseconds |
| 9 | remoteAddress |
string
|
client remote address |
| 10 | serverIp |
string
|
application server ip |
| 11 | serverHostname |
string
|
application server hostname |
| 12 | request |
string
|
request data |
| 13 | response |
string
|
response data |
| 14 | createdAt |
uint32
|
message LogsRequest
LogsRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | Id |
string
|
id |
| 2 | startDate |
uint32
|
start date in unix timestamp (seconds) default now()-5 |
| 3 | endDate |
uint32
|
end date in unix timestamp (seconds) default now() |
| 4 | method |
string
|
method name |
| 5 | serverIp |
string
|
server ip |
Enums
enum LSAMTransactionStatus
LSAMTransactionStatus
| Name | Number | Description |
|---|---|---|
active |
0 | active, normal transaction status |
error |
1 | error, transaction failed |
enum LSAMTransactionType
GetTransactions
| Name | Number | Description |
|---|---|---|
undefined |
0 | undefined operation. unused |
credit |
1 | credit operation |
debit |
2 | debit operation |
enum LogType
GetLogs
| Name | Number | Description |
|---|---|---|
unary |
0 | unary (request/response) |
stream |
1 | stream (bi-directional streaming of request/response) |