haproxy/include/haproxy/stats-json.h
Amaury Denoyelle 0109c0658d REORG: stats: extract JSON related functions
This commit is similar to the previous one. This time it deals with
functions related to stats JSON output.
2024-04-18 17:04:08 +02:00

25 lines
740 B
C

#ifndef _HAPROXY_STATS_JSON_H
#define _HAPROXY_STATS_JSON_H
#include <haproxy/applet-t.h>
#include <haproxy/buf-t.h>
#include <haproxy/stats-t.h>
void stats_dump_json_header(struct buffer *out);
int stats_dump_fields_json(struct buffer *out,
const struct field *stats, size_t stats_count,
struct show_stat_ctx *ctx);
void stats_dump_json_end(struct buffer *out);
int stats_dump_json_info_fields(struct buffer *out,
const struct field *info,
struct show_stat_ctx *ctx);
void stats_dump_json_schema(struct buffer *out);
int stats_dump_json_schema_to_buffer(struct appctx *appctx);
#endif /* _HAPROXY_STATS_JSON_H */