Documentation ¶
Index ¶
- Variables
- type Client
- type ReputationStats
- type Service
- func (s *Service) DialNodeStats(ctx context.Context, satelliteID storj.NodeID) (*Client, error)
- func (s *Service) GetDailyStorageUsedForSatellite(ctx context.Context, satelliteID storj.NodeID, from, to time.Time) (_ []SpaceUsageStamp, err error)
- func (s *Service) GetStatsFromSatellite(ctx context.Context, satelliteID storj.NodeID) (_ *Stats, err error)
- type SpaceUsageStamp
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NodeStatsServiceErr defines node stats service error NodeStatsServiceErr = errs.Class("node stats service error") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { pb.NodeStatsClient // contains filtered or unexported fields }
Client encapsulates NodeStatsClient with underlying connection
type ReputationStats ¶
type ReputationStats struct { TotalCount int64 SuccessCount int64 ReputationAlpha float64 ReputationBeta float64 ReputationScore float64 }
ReputationStats encapsulates storagenode reputation metrics
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service retrieves info from satellites using GRPC client
func NewService ¶
NewService creates new instance of service
func (*Service) DialNodeStats ¶
DialNodeStats dials GRPC NodeStats client for the satellite by id
func (*Service) GetDailyStorageUsedForSatellite ¶
func (s *Service) GetDailyStorageUsedForSatellite(ctx context.Context, satelliteID storj.NodeID, from, to time.Time) (_ []SpaceUsageStamp, err error)
GetDailyStorageUsedForSatellite returns daily SpaceUsageStamps over a period of time for a particular satellite
type SpaceUsageStamp ¶
SpaceUsageStamp is space usage for satellite at some point in time
type Stats ¶
type Stats struct { SatelliteID storj.NodeID UptimeCheck ReputationStats AuditCheck ReputationStats }
Stats encapsulates storagenode stats retrieved from the satellite
Click to show internal directories.
Click to hide internal directories.