2019-06-25 11:40:32 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
option go_package = "pb";
|
|
|
|
|
|
|
|
package nodestats;
|
|
|
|
|
|
|
|
import "gogo.proto";
|
2019-07-02 11:42:09 +01:00
|
|
|
import "google/protobuf/timestamp.proto";
|
2019-06-25 11:40:32 +01:00
|
|
|
|
|
|
|
service NodeStats {
|
2019-07-08 15:33:43 +01:00
|
|
|
rpc GetStats(GetStatsRequest) returns (GetStatsResponse);
|
2019-07-02 11:42:09 +01:00
|
|
|
rpc DailyStorageUsage(DailyStorageUsageRequest) returns (DailyStorageUsageResponse);
|
2019-06-25 11:40:32 +01:00
|
|
|
}
|
|
|
|
|
2019-07-08 15:33:43 +01:00
|
|
|
message ReputationStats {
|
2019-07-04 11:41:40 +01:00
|
|
|
int64 total_count = 1;
|
|
|
|
int64 success_count = 2;
|
|
|
|
double reputation_alpha = 3;
|
|
|
|
double reputation_beta = 4;
|
|
|
|
double reputation_score = 5;
|
|
|
|
}
|
|
|
|
|
2019-07-08 15:33:43 +01:00
|
|
|
message GetStatsRequest {}
|
2019-06-25 11:40:32 +01:00
|
|
|
|
2019-07-08 15:33:43 +01:00
|
|
|
message GetStatsResponse {
|
|
|
|
ReputationStats uptime_check = 1;
|
|
|
|
ReputationStats audit_check = 2;
|
2019-06-25 11:40:32 +01:00
|
|
|
}
|
|
|
|
|
2019-07-02 11:42:09 +01:00
|
|
|
message DailyStorageUsageRequest {
|
|
|
|
google.protobuf.Timestamp from = 1 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
google.protobuf.Timestamp to = 2 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
message DailyStorageUsageResponse {
|
|
|
|
message StorageUsage {
|
|
|
|
double at_rest_total = 2;
|
|
|
|
google.protobuf.Timestamp time_stamp = 3 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
bytes node_id = 1 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false];
|
|
|
|
repeated StorageUsage daily_storage_usage = 2;
|
|
|
|
}
|
|
|
|
|