Documentation ¶
Index ¶
- 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
- type EdgeLookup
- type Lookup
- type Queries
- type Query
- type ResourceLookup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEdgeTraffifMetricsList ¶
func GetEdgeTraffifMetricsList(ctx context.Context, obj *v1.ObjectReference, interval *metrics.Interval, details *mesh.ResourceDetails, queries map[string]string, client promv1.API, getEdge getEdgeFunc) (*metrics.TrafficMetricsList, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type EdgeLookup ¶
type EdgeLookup struct { Item *metrics.TrafficMetricsList Details mesh.ResourceDetails // contains filtered or unexported fields }
func (*EdgeLookup) Get ¶
func (e *EdgeLookup) Get(labels model.Metric) *metrics.TrafficMetrics
func (*EdgeLookup) Queries ¶
func (e *EdgeLookup) Queries() []*Query
type Lookup ¶
type Lookup interface { Get(edge model.Metric) *metrics.TrafficMetrics Queries() []*Query }
type ResourceLookup ¶
type ResourceLookup struct { Item *metrics.TrafficMetricsList // contains filtered or unexported fields }
func (*ResourceLookup) Get ¶
func (r *ResourceLookup) Get(labels model.Metric) *metrics.TrafficMetrics
func (*ResourceLookup) Queries ¶
func (r *ResourceLookup) Queries() []*Query
Click to show internal directories.
Click to hide internal directories.