blob: e8ac2d7c60a4659610137f029518c8dd4f3f58fc (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef ACLK_SCHEMA_WRAPPER_NODE_INFO_H
#define ACLK_SCHEMA_WRAPPER_NODE_INFO_H
#include <stdlib.h>
#include <stdint.h>
#include "capability.h"
#include "database/rrd.h"
#ifdef __cplusplus
extern "C" {
#endif
struct machine_learning_info {
bool ml_capable;
bool ml_enabled;
};
struct aclk_node_info {
char *name;
char *os;
char *os_name;
char *os_version;
char *kernel_name;
char *kernel_version;
char *architecture;
uint32_t cpus;
char *cpu_frequency;
char *memory;
char *disk_space;
char *version;
char *release_channel;
char *timezone;
char *virtualization_type;
char *container_type;
char *custom_info;
char *machine_guid;
DICTIONARY *host_labels_ptr;
struct machine_learning_info ml_info;
};
struct update_node_info {
char *node_id;
char *claim_id;
struct aclk_node_info data;
struct timeval updated_at;
char *machine_guid;
int child;
struct machine_learning_info ml_info;
struct capability *node_capabilities;
struct capability *node_instance_capabilities;
};
struct collector_info {
char *module;
char *plugin;
};
struct update_node_collectors {
char *claim_id;
char *node_id;
DICTIONARY *node_collectors;
};
char *generate_update_node_info_message(size_t *len, struct update_node_info *info);
char *generate_update_node_collectors_message(size_t *len, struct update_node_collectors *collectors);
#ifdef __cplusplus
}
#endif
#endif /* ACLK_SCHEMA_WRAPPER_NODE_INFO_H */
|