Versions in this module Expand all Collapse all v0 v0.15.2 Mar 22, 2023 v0.15.1 Dec 16, 2021 Changes in this version + type BaseMetricsQuery struct + Avg bool + ByLabels []string + Quantiles []string + RateFunc string + RateInterval string + type Client struct + func NewClient() (*Client, error) + func (in *Client) API() v1.API + func (in *Client) Address() string + func (in *Client) FetchHistogramRange(metricName, labels, grouping string, q *BaseMetricsQuery) Histogram + func (in *Client) FetchRange(metricName, labels, grouping, aggregator string, q *BaseMetricsQuery) *Metric + func (in *Client) FetchRateRange(metricName, labels, grouping string, q *BaseMetricsQuery) *Metric + func (in *Client) GetAllRequestRates(namespace string, ratesInterval string, queryTime time.Time) (model.Vector, error) + func (in *Client) GetAppRequestRates(namespace, app, ratesInterval string, queryTime time.Time) (model.Vector, model.Vector, error) + func (in *Client) GetConfiguration() (v1.ConfigResult, error) + func (in *Client) GetDestinationServices(namespace string, namespaceCreationTime time.Time, workloadname string) ([]Service, error) + func (in *Client) GetFlags() (v1.FlagsResult, error) + func (in *Client) GetMetrics(query *IstioMetricsQuery) Metrics + func (in *Client) GetNamespaceServicesRequestRates(namespace string, ratesInterval string, queryTime time.Time) (model.Vector, error) + func (in *Client) GetServiceRequestRates(namespace, service, ratesInterval string, queryTime time.Time) (model.Vector, error) + func (in *Client) GetSourceWorkloads(namespace string, namespaceCreationTime time.Time, servicename string) (map[string][]Workload, error) + func (in *Client) GetWorkloadRequestRates(namespace, workload, ratesInterval string, queryTime time.Time) (model.Vector, model.Vector, error) + func (in *Client) Inject(api v1.API) + type ClientInterface interface + FetchHistogramRange func(metricName, labels, grouping string, q *BaseMetricsQuery) Histogram + FetchRange func(metricName, labels, grouping, aggregator string, q *BaseMetricsQuery) *Metric + FetchRateRange func(metricName, labels, grouping string, q *BaseMetricsQuery) *Metric + GetAllRequestRates func(namespace, ratesInterval string, queryTime time.Time) (model.Vector, error) + GetAppRequestRates func(namespace, app, ratesInterval string, queryTime time.Time) (model.Vector, model.Vector, error) + GetConfiguration func() (v1.ConfigResult, error) + GetDestinationServices func(namespace string, namespaceCreationTime time.Time, workloadname string) ([]Service, error) + GetFlags func() (v1.FlagsResult, error) + GetMetrics func(query *IstioMetricsQuery) Metrics + GetNamespaceServicesRequestRates func(namespace, ratesInterval string, queryTime time.Time) (model.Vector, error) + GetServiceRequestRates func(namespace, service, ratesInterval string, queryTime time.Time) (model.Vector, error) + GetSourceWorkloads func(namespace string, namespaceCreationTime time.Time, servicename string) (map[string][]Workload, error) + GetWorkloadRequestRates func(namespace, workload, ratesInterval string, queryTime time.Time) (model.Vector, model.Vector, error) + type CustomMetricsQuery struct + App string + Namespace string + RawDataAggregator string + Version string + func (q *CustomMetricsQuery) FillDefaults() + type Histogram = map[string]*Metric + type IstioMetricsQuery struct + App string + Direction string + Filters []string + Namespace string + Reporter string + RequestProtocol string + Service string + Workload string + func (q *IstioMetricsQuery) FillDefaults() + type Metric struct + Matrix model.Matrix + type Metrics struct + Histograms map[string]Histogram + Metrics map[string]*Metric + type Service struct + App string + Namespace string + ServiceName string + type Workload struct + App string + Namespace string + Version string + Workload string v0.15.1-bug Mar 22, 2023