Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlignReduce ¶
type AlignReduce int32
AlignReduce is the type to enumerate allowed combinations of per series aligner and cross series reducer.
const ( Unknown AlignReduce = iota Align99Reduce99 Align95Reduce95 Align50Reduce50 )
Series aligner and cross series reducer types (for latency).
func PercentileToAlignReduce ¶
func PercentileToAlignReduce(percentile float64) (AlignReduce, error)
PercentileToAlignReduce takes a percentile value maps it to a AlignReduce value.
TODO: once we start supporting any percentile value, this should not be needed.
type Provider ¶
type Provider interface { // Sets the candidate revision name for which the provider should get // metrics. // TODO: Consider removing this method and making revisionName part of other // method signatures. SetCandidateRevision(revisionName string) // Returns the number of requests for the given offset and query. RequestCount(ctx context.Context, offset time.Duration) (int64, error) // Returns the request latency after applying the specified series aligner // and cross series reducer. The result is in milliseconds. // It returns 0 if no request was made during the interval. Latency(ctx context.Context, offset time.Duration, alignReduceType AlignReduce) (float64, error) // Gets all the server responses and calculates the error rate by performing // the operation (5xx responses / all responses). // It returns 0 if no request was made during the interval. ErrorRate(ctx context.Context, offset time.Duration) (float64, error) }
Provider represents a metrics Provider such as Stackdriver.
Directories ¶
Path | Synopsis |
---|---|
Package sheets provides a metrics provider implementation that retrieves metrics from a publicly-available Google Sheets The document must have the following values, starting at row 2, in the following order.
|
Package sheets provides a metrics provider implementation that retrieves metrics from a publicly-available Google Sheets The document must have the following values, starting at row 2, in the following order. |
Click to show internal directories.
Click to hide internal directories.