forked from TrueCloudLab/frostfs-api
Add method to State service to dump debug variables
Variables should be stored in JSON encoded to slice of bytes.
This commit is contained in:
parent
d1d9b75f49
commit
7fc06acc9b
1 changed files with 18 additions and 0 deletions
|
@ -23,6 +23,10 @@ service Status {
|
||||||
// To permit access, used server config options.
|
// To permit access, used server config options.
|
||||||
// The request should be signed.
|
// The request should be signed.
|
||||||
rpc DumpConfig(DumpRequest) returns (DumpResponse);
|
rpc DumpConfig(DumpRequest) returns (DumpResponse);
|
||||||
|
// DumpVars returns debug variables for the current node.
|
||||||
|
// To permit access, used server config options.
|
||||||
|
// The request should be signed.
|
||||||
|
rpc DumpVars(DumpVarsRequest) returns (DumpVarsResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
// NetmapRequest message to request current node netmap
|
// NetmapRequest message to request current node netmap
|
||||||
|
@ -77,3 +81,17 @@ message DumpRequest {
|
||||||
message DumpResponse {
|
message DumpResponse {
|
||||||
bytes Config = 1;
|
bytes Config = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DumpVarsRequest message to fetch current server debug variables.
|
||||||
|
message DumpVarsRequest {
|
||||||
|
// RequestMetaHeader contains information about request meta headers (should be embedded into message)
|
||||||
|
service.RequestMetaHeader Meta = 98 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
|
// RequestVerificationHeader is a set of signatures of every NeoFS Node that processed request (should be embedded into message)
|
||||||
|
service.RequestVerificationHeader Verify = 99 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
|
||||||
|
}
|
||||||
|
|
||||||
|
// DumpVarsResponse message contains current server debug variables.
|
||||||
|
// Variables stored in JSON encoded into slice of bytes.
|
||||||
|
message DumpVarsResponse {
|
||||||
|
bytes Variables = 1;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue