summaryrefslogtreecommitdiffstats
path: root/include/haproxy/stats-json.h
blob: d6c438261218be5ceff9f8d77b6544843b51be95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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 */