kpigateway

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name  string
	Value float64
}

type Gateway

type Gateway interface {
	GetKpiValue(ctx context.Context, request *KpiRequest) (*KpiValue, error)
	GetDetailedKpiValues(ctx context.Context, request *KpiRequest) (*ListKpiValues, error)
}

func NewAdapter

func NewAdapter(client restclient.RestClient, env types.Environment) Gateway

type KpiRequest

type KpiRequest struct {
	MachineID    string
	KpiType      string
	KpiComponent string
	FromDate     time.Time
	ToDate       time.Time
	Logger       log.Logger
}

KPI

type KpiValue

type KpiValue struct {
	Value     float64
	Timestamp time.Time
}

type ListKpiValues

type ListKpiValues struct {
	KpiValues []KpiValue
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL