summaryrefslogtreecommitdiffstats
path: root/web/api/badges/web_buffer_svg.h
blob: f75677bf974bd943101bd785c63d53a8123bcbf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_WEB_BUFFER_SVG_H
#define NETDATA_WEB_BUFFER_SVG_H 1

#include "libnetdata/libnetdata.h"
#include "web/server/web_client.h"

extern void buffer_svg(BUFFER *wb, const char *label, calculated_number value, const char *units, const char *label_color, const char *value_color, int precision, int scale, uint32_t options);
extern char *format_value_and_unit(char *value_string, size_t value_string_len, calculated_number value, const char *units, int precision);

extern int web_client_api_request_v1_badge(struct rrdhost *host, struct web_client *w, char *url);

#include "web/api/web_api_v1.h"

#endif /* NETDATA_WEB_BUFFER_SVG_H */