Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBlobStoreStats ¶
func SetBlobStoreStats(s BlobStats)
Types ¶
type BlobStats ¶
type BlobStats struct { // Count holds the total number of blobs stored. Count int // MaxSize holds the size of the largest blob. MaxSize int64 // MeanSize holds the average blob size. MeanSize int64 }
BlobStats holds statistics about blobs in the blob store.
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
Duration represents a time duration to be montored. The duration starts when the Duration is created and finishes when Done is called.
func NewBlobstoreGCDuration ¶
func NewBlobstoreGCDuration() *Duration
NewBlobstoreGCDuration returns a new Duration to be used for measuring the time taken to run the blobstore garbage collector.
func NewUploadProcessingDuration ¶
func NewUploadProcessingDuration() *Duration
NewUploadProcessingDuration returns a new Duration to be used for measuring the time taken to process an upload.
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
Request represents a monitoring request. To record a request, either create a new request with NewRequest or call Reset on an existing Request; then call Done when the request has completed.
func NewRequest ¶
NewRequest returns a new monitoring request for monitoring a request within the given root. When the request is done, Done should be called.
func (*Request) Done ¶
func (r *Request) Done()
Done records that the request is complete, and records any metrics for the request since the last call to Reset.