memgraph/src/stats/stats_rpc_messages.lcp
Matej Ferencevic 5c244c1ad4 Remove Cap'n Proto
Summary:
There will be a lot of leftover files, execute the following commands inside
`src/` to remove them:
```
git clean -xf
rm -r rpc/ storage/single_node_ha/rpc/
```

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2011
2019-05-08 10:51:10 +02:00

26 lines
601 B
Plaintext

#>cpp
#pragma once
#include "communication/rpc/messages.hpp"
#include "slk/serialization.hpp"
#include "utils/timestamp.hpp"
cpp<#
(lcp:namespace stats)
(lcp:define-rpc stats
(:request
((metric-path "std::string")
(tags "std::vector<std::pair<std::string, std::string>>")
(value :double)
(timestamp :uint64_t :initarg nil
:initval "static_cast<uint64_t>(utils::Timestamp::Now().SecSinceTheEpoch())")))
(:response ()))
(lcp:define-rpc batch-stats
(:request
((requests "std::vector<StatsReq>")))
(:response ()))
(lcp:pop-namespace) ;; stats