mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Added ARI resource /ari/asterisk/ping
Added ARI resource. GET /ari/asterisk/ping : It returns "pong" message with timestamp and asterisk id. It would be useful for simple heath check. Change-Id: I8d24e1dcc96f60f73437c68d9463ed746f688b29
This commit is contained in:
committed by
George Joseph
parent
ffe6ecb40f
commit
19fc99a2fb
@@ -178,6 +178,18 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/asterisk/ping",
|
||||
"description": "Asterisk ping",
|
||||
"operations": [
|
||||
{
|
||||
"httpMethod": "GET",
|
||||
"summary": "Response pong message.",
|
||||
"nickname": "ping",
|
||||
"responseClass": "AsteriskPing"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "/asterisk/modules",
|
||||
"description": "Asterisk modules",
|
||||
@@ -604,6 +616,27 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"AsteriskPing": {
|
||||
"id": "AsteriskPing",
|
||||
"description": "Asterisk ping information",
|
||||
"properties": {
|
||||
"asterisk_id": {
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"description": "Asterisk id info"
|
||||
},
|
||||
"ping": {
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"description": "Always string value is pong"
|
||||
},
|
||||
"timestamp": {
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"description": "The timestamp string of request received time"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Module": {
|
||||
"id": "Module",
|
||||
"description": "Details of an Asterisk module",
|
||||
|
Reference in New Issue
Block a user