Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchErrorType ¶
type FetchErrorType uint8
const ( FetchOK FetchErrorType = 0 FetchCtxDone FetchErrorType = 1 FetchTimeOut FetchErrorType = 2 FetchRPC FetchErrorType = 3 FetchDoNothing FetchErrorType = 4 )
type Fetcher ¶
type Fetcher interface { Fetch(context.Context, *obi.GetMetricsRequest) (*v1alpha1.ObservabilityIndicantStatusMetricInfo, FetchErrorType, error) GetPluginName() string Health() bool }
func NewFetcher ¶
func NewFetcher(conn *grpc.ClientConn, fetchTimeout time.Duration) Fetcher
type Request ¶
type Request struct { // metric, log or trace From string Req *obi.GetMetricsRequest MetricName string ResourceNames ResourceNameWithKind // kind Namespace string Start, End int64 Query string Unit string Aggregations []string }
type ResourceNameWithKind ¶
func (ResourceNameWithKind) String ¶
func (r ResourceNameWithKind) String() string
Click to show internal directories.
Click to hide internal directories.