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
GET /dev/get-log-level HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "Level": "trace"
}

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
POST /dev/set-log-level HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "Level": "trace"
}

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
POST /dev/print-log HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 78

{
  "Level": "trace",
  "Message": "text",
  "Fields": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}

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
POST /dev/schema HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "SchemaID": "text"
}

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
POST /dev/kill HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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
POST /dev/panic HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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
POST /dev/stop HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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
POST /dev/set-health HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "Healthy": true
}

No content

Last updated

Was this helpful?