Authentication
SQLogger API supports three independent authentication methods:
Session (Cookie-based)
POST /api/v1.5/auth/login
Send credentials in request body, server returns session cookie
Cookie: SQLogger_Session=<session_token>
Session cookie is used for subsequent requests
JWT (Bearer Token)
POST /api/v1.5/auth/jwt/login
Send credentials in request body, server returns JWT token
Authorization: Bearer <jwt_token>
Include Bearer token in all subsequent requests
Basic Authentication
POST /api/v1.5/auth/basic/login
Validate credentials via Basic header
Authorization: Basic <base64_encoded_credentials>
Credentials validated on every request, no server state
Flow:
- Choose authentication method on login page (Session, JWT, or Basic)
- Authenticate once to receive credential (cookie or token)
- Use credential for all subsequent requests
- Session/JWT expires after configured TTL, Basic has no expiration
Payload Encryption
Session JWT Basic
Payload encryption (AES-256-ECB) is available for Session and JWT authentication methods. Basic authentication does not support payload encryption.
Encrypted requests to protected endpoints must include the X-Encrypted: true header. The encryption key is provided during login.
Authentication Methods
bearerAuth
bearerJWTAuthorization: Bearer eyJhbGciOiJIUzI1NiIs...basicAuth
basicAuthorization: Basic ZGVtbzpkZW1vsessionAuth
cookieSQLogger_SessionCookie: SQLogger_Session=6f2d1a90aa3098a929588a03d36614d4/api/version
Get API version information
Responses
API Example
/
Welcome page
Responses
API Example
/api/docs/
API Docs page
Responses
API Example
/tasks/
Task Tracker page
Responses
API Example
/dashboard/
WebUI Dashboard page
Responses
API Example
/login/
Login page
Responses
API Example
/api/v1.5/auth/login
User authentication
Request Body
Responses
API Example
/api/v1.5/auth/logout
User logout
Responses
API Example
/api/v1.5/auth/session/login
Session authentication
Request Body
Responses
API Example
/api/v1.5/auth/basic/login
Basic authentication
Responses
API Example
/api/v1.5/auth/jwt/login
JWT authentication
Request Body
Responses
API Example
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Request Body
Schema: LogEntry
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| limit | integer | query | Optional | Maximum number of logs to return |
| offset | integer | query | Optional | Number of logs to skip for pagination |
| order | string | query | Optional | Field to order results by |
| sort | string | query | Optional | Sort direction (ascending or descending) |
| filters | string | query | Optional | JSON array of filter objects. See components/schemas/FilterCondition for structure. |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Request Body
Schema: LogEntry
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| filters | string | query | Optional | JSON array of filter objects. See components/schemas/FilterCondition for structure. |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| id | integer | query | Optional | Filter by source ID |
| uuid | string | query | Optional | Filter by source UUID |
| name | string | query | Optional | Filter by source name |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Request Body
Schema: Source
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Request Body
Schema: LoggerConfig
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Request Body
Schema: LoggerConfig
Responses
API Example
- Network traffic metrics (bytes sent/received)
- Connection information
- Request/error counts
- Per-endpoint detailed statistics
Responses
API Example
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| entries | boolean | query | Optional | Include active rate limit entries in response |
| limit | integer | query | Optional | Maximum number of active entries to return |
| blockedOnly | boolean | query | Optional | Return only blocked entries |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| format | string | query | Optional | |
| names | boolean | query | Optional | Include column names in export |
| delimiter | string | query | Optional | Field delimiter for CSV format |
| limit | integer | query | Optional | Maximum number of logs to export |
| order | string | query | Optional | Field to order results by |
| sort | string | query | Optional | Sort direction for exported logs |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| cmd | string | query | Required | Administrative commands: flush - Flush all pending logs to database resetStats - Reset all statistics counters clearLogs - Clear all log entries from database vacuum - Perform database maintenance (VACUUM/OPTIMIZE) |
| params | string | query | Optional | Additional command parameters as JSON array of strings in "key=value" format. For `clearLogs` command: - [] - Clear only logs - '["clearSources=true"]' - Clear logs and sources For `vacuum` command: - [] - Basic maintenance on entire database - '["table=logs"]' - Table/collection name (PostgreSQL, MySQL, MongoDB) - '["schema=main"]' - Database schema (SQLite only) - '["full=true"]' - Full rewrite (PostgreSQL only) - '["analyze=true"]' - Update statistics (PostgreSQL only) - '["verbose=true"]' - Verbose output (PostgreSQL only) - '["collection=logs"]' - Collection name (MongoDB only) Other commands (`flush`, `resetStats`) don't accept parameters. Note: Database-specific parameters may be ignored for unsupported database types. |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Responses
API Example
Responses
API Example
/maintenance/
Maintenance page
Responses
API Example
/api/v1.5/maintenance/status
Get maintenance status
Responses
API Example
Responses
API Example
Request Body
Schema: MaintenanceConfig
Responses
API Example
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| sessionId | string | query | Optional | Filter by session ID (32 hex characters) |
| username | string | query | Optional | Filter by username |
| role | string | query | Optional | Filter by user role |
| ipAddress | string | query | Optional | Filter by IP address |
| userAgent | string | query | Optional | Filter by user agent (partial match) |
| ipValidation | string | query | Optional | Filter by IP validation mode |
| createdAfter | integer | query | Optional | Filter sessions created after Unix timestamp |
| createdBefore | integer | query | Optional | Filter sessions created before Unix timestamp |
| activeOnly | boolean | query | Optional | Filter only active (non-expired) sessions |
| sortBy | string | query | Optional | Field to sort results by |
| sortOrder | string | query | Optional | Sort order |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| sessionId | string | path | Required | Session identifier (32 hex characters) |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| sessionId | string | path | Required | Session identifier (32 hex characters) |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| username | string | path | Required | Username to filter sessions |
Responses
API Example
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| jti | string | query | Optional | Filter by JWT token identifier |
| username | string | query | Optional | Filter by username |
| role | string | query | Optional | Filter by user role |
| ipAddress | string | query | Optional | Filter by IP address |
| userAgent | string | query | Optional | Filter by user agent (partial match) |
| ipValidation | string | query | Optional | Filter by IP validation mode |
| createdAfter | integer | query | Optional | Filter tokens issued after Unix timestamp |
| createdBefore | integer | query | Optional | Filter tokens issued before Unix timestamp |
| activeOnly | boolean | query | Optional | Filter only active (non-expired) tokens |
| sortBy | string | query | Optional | Field to sort results by |
| sortOrder | string | query | Optional | Sort order |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| username | string | query | Optional | Filter by username |
| role | string | query | Optional | Filter by role |
| revokedBy | string | query | Optional | Filter by administrator who revoked the token |
| revokedAfter | integer | query | Optional | Filter tokens revoked after Unix timestamp |
| revokedBefore | integer | query | Optional | Filter tokens revoked before Unix timestamp |
| sortBy | string | query | Optional | Field to sort results by |
| sortOrder | string | query | Optional | Sort order |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| jti | string | path | Required | JWT token identifier |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| jti | string | path | Required | JWT token identifier |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| jti | string | path | Required | JWT token identifier |
| reason | string | query | Optional | Reason for revocation |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| username | string | path | Required | Username to filter tokens |
Responses
API Example
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| limit | integer | query | Optional | Maximum number of tasks to return |
| offset | integer | query | Optional | Number of tasks to skip for pagination |
| order | string | query | Optional | Field to order results by |
| sort | string | query | Optional | Sort direction |
| filters | string | query | Optional | JSON array of TaskFilterCondition objects |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Request Body
Schema: Task
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Request Body
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| id | integer | path | Required | Task ID |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| id | integer | path | Required | Task ID |
Request Body
Schema: Task
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| id | integer | path | Required | Task ID |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| uuid | string | path | Required | Task UUID |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| filters | string | query | Optional | JSON array of TaskFilterCondition objects |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| strategy | string | query | Optional | Conflict resolution strategy: - update: Update existing task - skip: Skip existing task - duplicate: Create new task with new UUID |
Request Body
Schema: Task
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
| ids | string | query | Optional | Comma-separated list of task IDs to export (empty = all) |
Responses
API Example
Parameters
| Name | Type | Location | Required | Description |
|---|---|---|---|---|
| logger | string | path | Required | Logger instance name |
Responses
API Example
Request Body
API Example
Request Body
API Example
Data Models
VersionInfo
| Property | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| api | object | API version details | |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
| backend | object | Backend version details | |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
| license | string | Software license identifier | |||||||||||||||||||||||||||||||||
| licenseInfo | object | Detailed license information (only when license check is enabled) | |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
SessionStats
| Property | Type | Description |
|---|---|---|
| totalSessions | integer | Total number of active sessions |
| activeSessions | integer | Number of non-expired sessions |
| averageSessionHours | number | Average session duration in hours |
| byRole | object | Sessions count by role |
| byTransport | object | Sessions count by transport type |
Session
| Property | Type | Description |
|---|---|---|
| sessionId | string | Unique session identifier |
| username | string | Authenticated username |
| role | string | User role |
| loginTime | integer | Session creation time (Unix timestamp) |
| transportType | string | Transport type used for session |
| ipAddress | string | Client IP address at session creation |
| userAgent | string | Client user agent string |
| ipValidation | string | IP validation mode |
| ipChangeCount | integer | Number of IP address changes during grace period |
| lastIpChange | integer | Last IP change time (Unix timestamp) |
| ipMask | string | IP subnet mask for validation (only for SUPER_ADMIN) |
| encryptPayloadKey | string | Encryption key for payload (only for SUPER_ADMIN, truncated) |
JwtToken
| Property | Type | Description |
|---|---|---|
| jti | string | JWT unique identifier |
| username | string | Authenticated username |
| role | string | User role |
| ipAddress | string | Client IP address |
| userAgent | string | Client user agent |
| iat | integer | Issued at (Unix timestamp) |
| exp | integer | Expiration time (Unix timestamp) |
| transportType | string | Transport type |
| ipValidation | string | IP validation mode |
| ipMask | string | Custom IP mask |
JwtTokenStats
| Property | Type | Description |
|---|---|---|
| totalTokens | integer | Total tokens in memory |
| activeTokens | integer | Non-expired tokens |
| tokensByRole | object | Tokens count by role |
| tokensByTransport | object | Tokens count by transport type |
RevokedToken
| Property | Type | Description |
|---|---|---|
| jti | string | JWT unique identifier |
| username | string | Username of token owner |
| role | string | Role of token owner |
| exp | integer | Token expiration timestamp |
| revokedAt | integer | Revocation timestamp |
| revokedBy | string | Administrator who revoked the token |
| reason | string | Reason for revocation |
LogEntry
| Property | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | integer | Unique log entry identifier | ||||||||||||
| timestamp | integer | Log timestamp in Unix epoch format | ||||||||||||
| level | string | Log severity level | ||||||||||||
| message | string | Log message content | ||||||||||||
| func | string | Function name where log was generated | ||||||||||||
| file | string | Source file name where log was generated | ||||||||||||
| line | integer | Line number in source file where log was generated | ||||||||||||
| thread_id | string | Thread identifier that generated the log | ||||||||||||
| source | object | Represents a log source application | ||||||||||||
|
||||||||||||||
Source
| Property | Type | Description |
|---|---|---|
| id | integer | Unique source identifier |
| uuid | string | Universal unique identifier for the source |
| name | string | Human-readable source name |
FilterCondition
| Property | Type | Description |
|---|---|---|
| field | string | Field name to filter on |
| op | string | Comparison operator |
| value | string | Value to compare against |
LoggerConfig
| Property | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Logger | object | Core logger configuration settings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Database | object | Database connection and storage configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Transport | object | Network transport and API configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TransportUsers | object | Transport user accounts configuration with username as key | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Security | object | Security and authentication configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Connection | object | Database connection settings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Source | object | Log source configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TransportStats
| Property | Type | Description |
|---|---|---|
| bytesSent | integer | Total bytes sent over network |
| bytesReceived | integer | Total bytes received over network |
| activeConnections | integer | Number of currently active connections |
| failedRequests | integer | Number of failed HTTP requests |
| totalRequests | integer | Total number of HTTP requests processed |
| errors4xx | integer | Count of client error responses (4xx) |
| errors5xx | integer | Count of server error responses (5xx) |
| startTime | integer | Transport start time timestamp (seconds since epoch) |
| uptimeSeconds | integer | Uptime in seconds |
| uptimeFormatted | string | Human-readable formatted uptime string |
| currentTime | integer | Current server timestamp (seconds since epoch) |
| endpoints | object | Detailed statistics per API endpoint. Keys are endpoint names in format `{method}_{resource}`. Example: `get_stats_transport`, `post_config_validate` |
EndpointMetrics
| Property | Type | Description |
|---|---|---|
| requestCount | integer | Total number of requests processed |
| errorCount | integer | Number of failed requests (HTTP 4xx/5xx) |
| avgProcessingTimeMs | integer | Average request processing time in milliseconds |
| bytesReceived | integer | Total bytes received for this endpoint |
| bytesSent | integer | Total bytes sent for this endpoint |
| activeConnections | integer | Current active connections for this endpoint |
| lastRequestTime | integer | Timestamp of last request (seconds since epoch) |
LoggerStats
| Property | Type | Description |
|---|---|---|
| totalLogged | integer | Total number of logs processed |
| totalFailed | integer | Total number of failed log entries |
| maxBatchSize | integer | Maximum batch size achieved |
| minBatchSize | integer | Minimum batch size achieved |
| avgBatchSize | number | Average batch size |
| currentBatchBufferSize | integer | Current buffer size |
| avgBufferSize | integer | Average buffer size |
| maxBufferSize | integer | Maximum buffer size reached |
| maxProcessTimeMs | integer | Maximum log processing time in milliseconds |
| totalProcessTimeMs | integer | Total processing time in milliseconds |
| lastProcessTimeMs | integer | Last processing time in milliseconds |
| flushCount | integer | Total number of flush operations |
| timedFlushCount | integer | Number of timed flush operations |
| avgProcessTime | number | Average processing time per log in milliseconds |
| startTime | integer | Logger start time timestamp |
| uptimeSeconds | integer | Uptime in seconds |
| uptimeFormatted | string | Formatted uptime string (hours, minutes, seconds) |
| currentTime | integer | Current server timestamp |
DatabaseStats
| Property | Type | Description |
|---|---|---|
| isConnected | integer | Database connection status (1=connected, 0=disconnected) |
| lastError | string | Last database error message |
| totalLogs | integer | Total number of logs stored in database |
| logsByLevel | object | Log count grouped by severity level |
| earliestLog | integer | Timestamp of earliest log in database |
| latestLog | integer | Timestamp of latest log in database |
| sourcesCount | integer | Number of distinct log sources |
| storageSize | integer | Total database storage size in bytes |
| dailyAvg | integer | Average number of logs per day |
RateLimitStats
| Property | Type | Description |
|---|---|---|
| totalRequests | integer | Total processed requests |
| limitedRequests | integer | Requests blocked by rate limits |
| whitelistedRequests | integer | Whitelisted requests |
| activeLimitKeys | integer | Active rate limit keys |
| blockedKeys | integer | Currently blocked keys |
| requestsInWindow | integer | Requests in active windows |
| keysTypeIp | integer | IP-based limit keys |
| keysTypeUser | integer | User-based limit keys |
| keysTypeRole | integer | Role-based limit keys |
| keysTypeAuthId | integer | AuthId-based limit keys (session, jti, or basic) |
| keysTypeGlobal | integer | Global limit keys |
| endpointStats | object | Endpoint request counts |
| ruleStats | object | Rule hit statistics |
| activeEntries | array | Active rate limit entries (optional) |
RateLimitKeyDetail
| Property | Type | Description |
|---|---|---|
| key | string | Full rate limit key |
| count | integer | Current request count in window |
| totalCount | integer | Total requests across all windows |
| blocked | boolean | Whether key is blocked |
| maxRequests | integer | Maximum allowed requests |
| windowSeconds | integer | Time window in seconds |
| endpoint | string | Endpoint pattern |
| method | string | HTTP method |
| limitType | string | Limit type (ip/user/role/authid/global) |
| identifier | string | Identifier (IP, username, role, authid) |
| windowStart | integer | Window start timestamp (Unix milliseconds) |
| firstRequest | integer | First request timestamp (Unix milliseconds) |
| windowExpires | integer | Window expiration timestamp (Unix milliseconds) |
AnalyticsData
| Property | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| earliestLog | integer | Timestamp of earliest log entry | |||||||||||||||||||||||||||
| latestLog | integer | Timestamp of latest log entry | |||||||||||||||||||||||||||
| totalProcessed | integer | Total number of processed logs | |||||||||||||||||||||||||||
| logsByLevel | object | Distribution of logs by severity level | |||||||||||||||||||||||||||
| messagePatterns | object | Common log message patterns and frequencies | |||||||||||||||||||||||||||
| hourlyDistribution | object | Log distribution by hour of day | |||||||||||||||||||||||||||
| weekdayDistribution | object | Log distribution by day of week | |||||||||||||||||||||||||||
| dailyDistribution | object | Log distribution by calendar date | |||||||||||||||||||||||||||
| avgLogsPerHour | number | Average number of logs per hour | |||||||||||||||||||||||||||
| peakHourlyCount | integer | Maximum number of logs in a single hour | |||||||||||||||||||||||||||
| peakActivityTime | integer | Timestamp of peak log activity | |||||||||||||||||||||||||||
| sourceStats | object | Statistics grouped by log source | |||||||||||||||||||||||||||
| predictive | object | Predictive analytics and system risk assessment | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
HardwareInfo
| Property | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cpu | object | CPU information and utilization | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
| memory | object | Memory information and utilization | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
| storage | object | Storage devices information | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
| gpu | object | Graphics processing unit information | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
| system | object | Operating system information | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
| network | object | Network interfaces information | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
| motherboard | object | Motherboard information | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
| metadata | object | Hardware information metadata | |||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
MaintenanceStatus
| Property | Type | Description |
|---|---|---|
| isActive | boolean | Whether maintenance mode is currently active |
| mode | string | Current maintenance mode |
| message | string | User-friendly maintenance message to display |
| reason | string | Technical reason for maintenance |
| eta | integer | Estimated completion time as Unix timestamp (seconds since epoch) |
| retryAfter | integer | Seconds remaining until service returns to normal |
| startTime | integer | Maintenance start time as Unix timestamp |
MaintenanceConfig
| Property | Type | Description |
|---|---|---|
| mode | string | Desired maintenance mode |
| message | string | User-friendly message to display (max 500 chars) |
| reason | string | Technical reason for maintenance |
| duration | integer | Duration in seconds after which to auto-deactivate (1-30 days). Mutually exclusive with 'eta'. |
| eta | integer | Unix timestamp when maintenance should end. Mutually exclusive with 'duration'. |
| allowedGroups | array | User roles allowed to access during maintenance mode |
| allowedEndpoints | array | API endpoints that remain accessible during maintenance |
Task
| Property | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | integer | Local database unique identifier | |||||||||||||||||||||||||||||||||||||||||||||
| uuid | string | Global unique identifier | |||||||||||||||||||||||||||||||||||||||||||||
| title | string | Task title | |||||||||||||||||||||||||||||||||||||||||||||
| description | string | Detailed task description | |||||||||||||||||||||||||||||||||||||||||||||
| status | string | Task status | |||||||||||||||||||||||||||||||||||||||||||||
| priority | string | Task priority | |||||||||||||||||||||||||||||||||||||||||||||
| loggerName | string | Associated logger instance name | |||||||||||||||||||||||||||||||||||||||||||||
| sourceLogId | integer | Source log entry ID | |||||||||||||||||||||||||||||||||||||||||||||
| sourceLogUuid | string | Source log entry UUID | |||||||||||||||||||||||||||||||||||||||||||||
| sourceLogTimestamp | integer | Source log entry timestamp | |||||||||||||||||||||||||||||||||||||||||||||
| assignedTo | string | Username of assigned user | |||||||||||||||||||||||||||||||||||||||||||||
| createdBy | string | Username of task creator | |||||||||||||||||||||||||||||||||||||||||||||
| createdAt | integer | Task creation timestamp | |||||||||||||||||||||||||||||||||||||||||||||
| updatedAt | integer | Task last update timestamp | |||||||||||||||||||||||||||||||||||||||||||||
| dueDate | integer | Optional due date timestamp | |||||||||||||||||||||||||||||||||||||||||||||
| resolvedAt | integer | Optional resolution timestamp | |||||||||||||||||||||||||||||||||||||||||||||
| tags | array | Array of task tags | |||||||||||||||||||||||||||||||||||||||||||||
| comments | array | Array of task comments | |||||||||||||||||||||||||||||||||||||||||||||
| sourceLogSnapshot | object | Represents a single log entry with all associated metadata | |||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||
| activityLog | array | Task activity history | |||||||||||||||||||||||||||||||||||||||||||||
TaskComment
| Property | Type | Description |
|---|---|---|
| id | integer | Comment ID |
| author | string | Comment author username |
| text | string | Comment text |
| createdAt | integer | Creation timestamp |
TaskActivityEntry
| Property | Type | Description |
|---|---|---|
| id | integer | Activity record ID |
| action | string | Action type |
| user | string | User who performed the action |
| timestamp | integer | Action timestamp |
| oldValue | string | Previous value (JSON string) |
| newValue | string | New value (JSON string) |
TaskStats
| Property | Type | Description |
|---|---|---|
| total | integer | Total number of tasks |
| open | integer | Number of open tasks |
| inProgress | integer | Number of in-progress tasks |
| resolved | integer | Number of resolved/closed tasks |
| critical | integer | Number of critical priority tasks |
ImportResult
| Property | Type | Description |
|---|---|---|
| created | integer | Number of tasks created |
| updated | integer | Number of tasks updated |
| skipped | integer | Number of tasks skipped |
TaskListResponse
| Property | Type | Description |
|---|---|---|
| tasks | array | Array of tasks |
| total | integer | Total number of tasks matching filters |
TaskFilterCondition
| Property | Type | Description |
|---|---|---|
| field | string | Field name to filter on |
| op | string | Comparison operator |
| value | string | Value to compare against |
| lop | string | Logical operator |
LicenseInfo
| Property | Type | Description |
|---|---|---|
| type | string | |
| expires | string | |
| productName | string | |
| userName | string | |
| userEmail | string | |
| productKey | string | |
| valid | boolean |
LicenseError
| Property | Type | Description |
|---|---|---|
| status | string | |
| message | string | |
| code | string |