Versions in this module Expand all Collapse all v0 v0.2.1 Mar 13, 2020 v0.2.0 Aug 23, 2019 Changes in this version + func GetEdgeTraffifMetricsList(ctx context.Context, obj *v1.ObjectReference, interval *metrics.Interval, ...) (*metrics.TrafficMetricsList, error) + func GetResourceTrafficMetricsList(ctx context.Context, obj *v1.ObjectReference, interval *metrics.Interval, ...) (*metrics.TrafficMetricsList, error) + type Client struct + func NewClient(ctx context.Context, client promAPI.API, interval *metrics.Interval) *Client + func (c *Client) Execute(queryTemplate string, opts map[string]interface{}) (model.Vector, error) + func (c *Client) Update(lst Lookup) error + type EdgeLookup struct + Details mesh.ResourceDetails + Item *metrics.TrafficMetricsList + func (e *EdgeLookup) Get(labels model.Metric) *metrics.TrafficMetrics + func (e *EdgeLookup) Queries() []*Query + type Lookup interface + Get func(edge model.Metric) *metrics.TrafficMetrics + Queries func() []*Query + type Queries struct + EdgeQueries map[string]string + ResourceQueries map[string]string + type Query struct + Name string + Template string + Values map[string]interface{} + type ResourceLookup struct + Item *metrics.TrafficMetricsList + func (r *ResourceLookup) Get(labels model.Metric) *metrics.TrafficMetrics + func (r *ResourceLookup) Queries() []*Query