frostfs-api-go/state/service.proto
Evgeniy Kulikov 1cf33e5ffd
initial
2019-11-18 16:34:06 +03:00

37 lines
1 KiB
Protocol Buffer

syntax = "proto3";
package state;
option go_package = "github.com/nspcc-dev/neofs-proto/state";
import "bootstrap/types.proto";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.stable_marshaler_all) = true;
// The Status service definition.
service Status {
rpc Netmap(NetmapRequest) returns (bootstrap.SpreadMap);
rpc Metrics(MetricsRequest) returns (MetricsResponse);
rpc HealthCheck(HealthRequest) returns (HealthResponse);
}
// NetmapRequest message to request current node netmap
message NetmapRequest {}
// MetricsRequest message to request node metrics
message MetricsRequest {}
// MetricsResponse contains [][]byte,
// every []byte is marshaled MetricFamily proto message
// from github.com/prometheus/client_model/metrics.proto
message MetricsResponse {
repeated bytes Metrics = 1;
}
// HealthRequest message to check current state
message HealthRequest {}
// HealthResponse message with current state
message HealthResponse {
bool Healthy = 1;
string Status = 2;
}