#include <yajl/yajl_gen.h>
#include "graph_types.h"
+#include "data_provider.h"
#define ANY_TOKEN "/any/"
#define ALL_TOKEN "/all/"
return (0);
} /* }}} int inst_to_json */
+int inst_data_to_json (const graph_instance_t *inst, /* {{{ */
+ dp_time_t begin, dp_time_t end,
+ yajl_gen handler)
+{
+ size_t i;
+
+ yajl_gen_array_open (handler);
+ for (i = 0; i < inst->files_num; i++)
+ ident_data_to_json (inst->files[i], begin, end, handler);
+ yajl_gen_array_close (handler);
+
+ return (0);
+} /* }}} int inst_data_to_json */
+
int inst_describe (graph_config_t *cfg, graph_instance_t *inst, /* {{{ */
char *buffer, size_t buffer_size)
{
#include <yajl/yajl_gen.h>
#include "graph_types.h"
+#include "data_provider.h"
#include "graph_ident.h"
#include "rrd_args.h"
#include "utils_array.h"
graph_ident_field_t field, const char *field_value);
int inst_to_json (const graph_instance_t *inst, yajl_gen handler);
+int inst_data_to_json (const graph_instance_t *inst,
+ dp_time_t begin, dp_time_t end,
+ yajl_gen handler);
int inst_describe (graph_config_t *cfg, graph_instance_t *inst,
char *buffer, size_t buffer_size);