Dev

Developer APIs

Fetches the current log level of the Replication Server.

get
/dev/get-log-level
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Log level was fetched successfully

application/json
get
/dev/get-log-level

Sets the log level of the Replication Server.

post
/dev/set-log-level
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Levelstring · enumRequired

Log level to be set for the server.

Possible values:
Responses
200

Log level was set successfully

No content

post
/dev/set-log-level

No content

Prints a log message to the Replication Server log.

post
/dev/print-log

This endpoint is used for testing alerts. Every log printed has an additional field (__dev, true) attached.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Levelstring · enumRequired

Log level to be set for the server.

Possible values:
MessagestringRequired

Message to be logged.

Responses
200

Log message was printed successfully

No content

post
/dev/print-log

No content

Fetches the default schema ID used by the Replication Server.

post
/dev/schema
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Schema ID was fetched successfully

application/json
post
/dev/schema

Kills the Replication Server process printing stack traces of all goroutines.

post
/dev/kill
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
post
/dev/kill
default

No response due to process termination

No content

Causes a panic in the Replication Server on a fresh goroutine. For testing purposes only.

post
/dev/panic
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Panic was triggered successfully

No content

post
/dev/panic
200

Panic was triggered successfully

No content

Attempts to gracefully stop the Replication Server process.

post
/dev/stop

The call will attempt to gracefully stop the Replication Server process. If shutdown won't occur in the span of 2 seconds, a hard shutdown will be performed.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Shutdown was initiated successfully

No content

post
/dev/stop
200

Shutdown was initiated successfully

No content

Sets the health status of the Replication Server.

post
/dev/set-health
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
HealthybooleanRequired

Health status to be set for the server.

Responses
200

Health status was set successfully

No content

post
/dev/set-health

No content

Last updated

Was this helpful?