-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pool_iostat): adding protobuf for pool
Signed-off-by: Abhilash Shetty <[email protected]>
- Loading branch information
1 parent
2c0e0c1
commit 5459937
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// gRPC protobuf for IOStats | ||
syntax = "proto3"; | ||
import "common.proto"; | ||
import "google/protobuf/empty.proto"; | ||
|
||
package mayastor.v1; | ||
|
||
// Interface for IO stats APIs. | ||
service StatsRpc { | ||
// RPC to get Pool IO stats. | ||
rpc GetPoolIoStats (ListStatsOption) returns (PoolIoStatsResponse); | ||
// RPC to reset Io Stats for all Pool, Replica and Nexus hosted on the node. | ||
rpc ResetIoStats (google.protobuf.Empty) returns (google.protobuf.Empty); | ||
} | ||
|
||
message ListStatsOption { | ||
optional string name = 1; // If specified, Returns IO stats of only specified resource. | ||
} | ||
|
||
message PoolIoStatsResponse { | ||
repeated IoStats stats = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters