master
h 20 lines 542 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #ifndef NETDATA_MCP_PING_H
4 #define NETDATA_MCP_PING_H
5
6 #include "libnetdata/libnetdata.h"
7 #include <json-c/json.h>
8 #include "mcp.h"
9
10 /**
11 * Handle ping requests from a client
12 *
13 * @param mcpc The MCP client context
14 * @param params The JSON params object (should be empty for ping)
15 * @param id The request ID
16 * @return MCP_RETURN_CODE - MCP_RC_OK if successful
17 */
18 MCP_RETURN_CODE mcp_method_ping(MCP_CLIENT *mcpc, struct json_object *params, MCP_REQUEST_ID id);
19
20 #endif // NETDATA_MCP_PING_H