All URIs are relative to http://localhost:8080/v1
Method | HTTP request | Description |
---|---|---|
busy | GET /busy | |
get_is_leader | GET /isleader | |
get_leader | GET /leader | |
leave | POST /leave | |
status | GET / |
Array<Execution> busy
Returns the running executions.
# load the gem
require 'dkron-ruby'
api_instance = Dkron::DefaultApi.new
begin
result = api_instance.busy
p result
rescue Dkron::ApiError => e
puts "Exception when calling DefaultApi->busy: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
get_is_leader
Check if node is a leader or follower.
# load the gem
require 'dkron-ruby'
api_instance = Dkron::DefaultApi.new
begin
api_instance.get_is_leader
rescue Dkron::ApiError => e
puts "Exception when calling DefaultApi->get_is_leader: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
Member get_leader
List leader of cluster.
# load the gem
require 'dkron-ruby'
api_instance = Dkron::DefaultApi.new
begin
result = api_instance.get_leader
p result
rescue Dkron::ApiError => e
puts "Exception when calling DefaultApi->get_leader: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
Array<Member> leave
Force the node to leave the cluster.
# load the gem
require 'dkron-ruby'
api_instance = Dkron::DefaultApi.new
begin
result = api_instance.leave
p result
rescue Dkron::ApiError => e
puts "Exception when calling DefaultApi->leave: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json
Status status
Gets Status
object.
# load the gem
require 'dkron-ruby'
api_instance = Dkron::DefaultApi.new
begin
result = api_instance.status
p result
rescue Dkron::ApiError => e
puts "Exception when calling DefaultApi->status: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json
- Accept: application/json