X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Ffrontend%2Fproto.h;h=99e2a8df23bbff58d4417792efd092806d232c55;hb=4b1c3e70c727641934d697339cad02cda0a3c565;hp=7aae68dde622a0ebe7835c796a46c216838b7de8;hpb=4d93f084bf26672e322b82ce192c8beb5765e1d0;p=sysdb.git diff --git a/src/include/frontend/proto.h b/src/include/frontend/proto.h index 7aae68d..99e2a8d 100644 --- a/src/include/frontend/proto.h +++ b/src/include/frontend/proto.h @@ -245,6 +245,38 @@ typedef enum { */ SDB_CONNECTION_TIMESERIES, + /* + * SDB_CONNECTION_STORE: + * Execute the 'STORE' command in the server. The message body shall + * include the type of the object to be stored, the timestamp of the last + * update, and a list of fields describing the object depending on the + * object type. Object types are encoded as 32bit integers in network + * byte-order where attribute types are bitwise ORed with the appropriate + * parent object type. Timestamps are encoded as 64bit integers in network + * byte-order. Fields are null-terminated strings. + * + * 0 32 64 + * +---------------+---------------+ + * | STORE | length | + * +---------------+---------------+ + * | object type | last_update.. | + * +---------------+---------------+ + * | ... | fields | + * +---------------+ | + * | ... | + * + * Fields: + * + * HOST: name + * SERVICE: hostname, name + * METRIC: hostname, name, [store type, store id] + * ATTRIBUTE: [hostname], parent object name, key, + * + * Values are encoded as their type (32bit integer in network byte-order), + * and their content as implemented by sdb_proto_marshal_data. + */ + SDB_CONNECTION_STORE = 50, + /* * Command subcomponents. */