You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
740 B
43 lines
740 B
#ifndef JSON_RETRIEVE_H
|
|
#define JSON_RETRIEVE_H
|
|
#include <ArduinoJson.h>
|
|
|
|
typedef struct {
|
|
String name;
|
|
int cpu;
|
|
int threads;
|
|
String onlineStatus;
|
|
long long mem;
|
|
long long maxmem;
|
|
long long disk;
|
|
long long maxdisk;
|
|
long long uptime;
|
|
} Node;
|
|
|
|
typedef struct {
|
|
String name;
|
|
int id;
|
|
String onlineStatus;
|
|
long long maxmem;
|
|
long long maxdisk;
|
|
long long uptime;
|
|
} Container;
|
|
|
|
typedef struct {
|
|
String name;
|
|
int id;
|
|
String onlineStatus;
|
|
long long maxmem;
|
|
long long maxdisk;
|
|
long long uptime;
|
|
long long netin;
|
|
long long netout;
|
|
} VM;
|
|
|
|
Node *getNodeInfo(int *numNodes);
|
|
Container *getContainerInfo(int *numContainers, String node);
|
|
VM *getVMInfo(int *numVMs, String node);
|
|
|
|
|
|
#endif /* JSON_RETRIEVE_H */
|