| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_RRDCONTEXT_CONTEXT_REGISTRY_H |
| 4 | #define NETDATA_RRDCONTEXT_CONTEXT_REGISTRY_H |
| 5 | |
| 6 | #include "libnetdata/libnetdata.h" |
| 7 | |
| 8 | void rrdcontext_context_registry_destroy(void); |
| 9 | |
| 10 | bool rrdcontext_context_registry_add(STRING *context); |
| 11 | bool rrdcontext_context_registry_remove(STRING *context); |
| 12 | |
| 13 | size_t rrdcontext_context_registry_unique_count(void); |
| 14 | |
| 15 | void rrdcontext_context_registry_json_mcp_array(BUFFER *wb, SIMPLE_PATTERN *pattern); |
| 16 | |
| 17 | // Helper function to get context categories (extracts prefixes before the last dot) |
| 18 | void rrdcontext_context_registry_json_mcp_categories_array(BUFFER *wb, SIMPLE_PATTERN *pattern); |
| 19 | |
| 20 | #endif // NETDATA_RRDCONTEXT_CONTEXT_REGISTRY_H |