This patch adds the API for timeout messages and dropped messages. For dropped messages, origin has two APIs one for messages and one for command. droped messages return the number of messages per ver, so our API was rename to reflect that. For dropped messages (command) we currently do not have this logic of throwing messages before sending, so the API will always return 0. The total timeout API was removed and will be done on the jmx proxy level. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
258 lines
7.0 KiB
JSON
258 lines
7.0 KiB
JSON
{
|
|
"apiVersion":"0.0.1",
|
|
"swaggerVersion":"1.2",
|
|
"basePath":"{{Protocol}}://{{Host}}",
|
|
"resourcePath":"/messaging_service",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"apis":[
|
|
{
|
|
"path":"/messaging_service/messages/timeout",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of timeout messages",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_timeout_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/dropped_by_ver",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of dropped messages per verb",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"verb_counter"
|
|
},
|
|
"nickname":"get_dropped_messages_by_ver",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/dropped",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of messages that were dropped before sending",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_dropped_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/replied",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of replied messages",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_completed_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/sent",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of sent messages",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_sent_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/pending",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of pending messages",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_pending_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/exception",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of messages return with an exception",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_exception_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/respond_pending",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of messages waiting for respond",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_respond_pending_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/messaging_service/messages/respond_completed",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Get the number of completed respond messages",
|
|
"type":"array",
|
|
"items":{
|
|
"type":"message_counter"
|
|
},
|
|
"nickname":"get_respond_completed_messages",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"models":{
|
|
"message_counter":{
|
|
"id":"message_counter",
|
|
"description":"Holds command counters",
|
|
"properties":{
|
|
"value":{
|
|
"type":"long"
|
|
},
|
|
"key":{
|
|
"type":"string"
|
|
}
|
|
}
|
|
},
|
|
"verb_counter":{
|
|
"id":"verb_counters",
|
|
"description":"Holds verb counters",
|
|
"properties":{
|
|
"count":{
|
|
"type":"long"
|
|
},
|
|
"verb":{
|
|
"type":"string",
|
|
"enum":[
|
|
"MUTATION",
|
|
"BINARY",
|
|
"READ_REPAIR",
|
|
"READ",
|
|
"REQUEST_RESPONSE",
|
|
"STREAM_INITIATE",
|
|
"STREAM_INITIATE_DONE",
|
|
"STREAM_REPLY",
|
|
"STREAM_REQUEST",
|
|
"RANGE_SLICE",
|
|
"BOOTSTRAP_TOKEN",
|
|
"TREE_REQUEST",
|
|
"TREE_RESPONSE",
|
|
"JOIN",
|
|
"GOSSIP_DIGEST_SYN",
|
|
"GOSSIP_DIGEST_ACK",
|
|
"GOSSIP_DIGEST_ACK2",
|
|
"DEFINITIONS_ANNOUNCE",
|
|
"DEFINITIONS_UPDATE",
|
|
"TRUNCATE",
|
|
"SCHEMA_CHECK",
|
|
"INDEX_SCAN",
|
|
"REPLICATION_FINISHED",
|
|
"INTERNAL_RESPONSE",
|
|
"COUNTER_MUTATION",
|
|
"STREAMING_REPAIR_REQUEST",
|
|
"STREAMING_REPAIR_RESPONSE",
|
|
"SNAPSHOT",
|
|
"MIGRATION_REQUEST",
|
|
"GOSSIP_SHUTDOWN",
|
|
"_TRACE",
|
|
"ECHO",
|
|
"REPAIR_MESSAGE",
|
|
"PAXOS_PREPARE",
|
|
"PAXOS_PROPOSE",
|
|
"PAXOS_COMMIT",
|
|
"PAGED_RANGE",
|
|
"UNUSED_1",
|
|
"UNUSED_2",
|
|
"UNUSED_3"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|