mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
This commit is similar to the previous one. This time it deals with functions related to stats JSON output.
25 lines
740 B
C
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 */
|