Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAuth ¶
ClientAuth holds the HTTP client identity info.
func (*ClientAuth) Apply ¶
func (auth *ClientAuth) Apply(req *http.Request)
Apply applies the authentication identity info to the HTTP request headers
type Interface ¶
type Interface interface { // GetTimeSeries returns the metric time series that meet the given // conditions from the specified time range. GetTimeSeries(metricName string, Conditions []common.QueryCondition, startTime time.Time, endTime time.Time, step time.Duration) ([]*common.TimeSeries, error) // GetLatestTimeSeries returns the latest metric values that meet the given conditions. GetLatestTimeSeries(metricName string, Conditions []common.QueryCondition) ([]*common.TimeSeries, error) // QueryTimeSeries returns the time series based on a promql like query string. QueryTimeSeries(queryExpr string, startTime time.Time, endTime time.Time, step time.Duration) ([]*common.TimeSeries, error) // QueryLatestTimeSeries returns the latest metric values that meet the given query. QueryLatestTimeSeries(queryExpr string) ([]*common.TimeSeries, error) }
Interface is a source of monitoring metric that provides metrics that can be used for prediction, such as 'cpu usage', 'memory footprint', 'request per second (qps)', etc.
type MockConfig ¶
type MockConfig struct {
SeedFile string
}
MockConfig represents the config of an in-memory provider, which is for demonstration or testing purpose.
Click to show internal directories.
Click to hide internal directories.