sitewise

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const EDGE_REGION string = "Edge"

Variables

View Source
var GetCache = func() func() *cache.Cache {
	var gCache = cache.New(cacheDuration, cacheCleanupInterval) // max size not supported
	return func() *cache.Cache {
		return gCache
	}
}()

Functions

This section is empty.

Types

type AuthRequest added in v1.2.5

type AuthRequest struct {
	Username      string `json:"username,omitempty"`
	Password      string `json:"password,omitempty"`
	AuthMechanism string `json:"authMechanism,omitempty"`
}

type Datasource

type Datasource struct {
	GetClient clientGetterFunc
}

func NewDatasource

func NewDatasource(ctx context.Context, settings backend.DataSourceInstanceSettings) (*Datasource, error)

func (*Datasource) HandleDescribeAssetModelQuery added in v1.1.0

func (ds *Datasource) HandleDescribeAssetModelQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.DescribeAssetModelQuery) (data.Frames, error)

func (*Datasource) HandleDescribeAssetQuery

func (ds *Datasource) HandleDescribeAssetQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.DescribeAssetQuery) (data.Frames, error)

func (*Datasource) HandleGetAssetPropertyAggregateQuery

func (ds *Datasource) HandleGetAssetPropertyAggregateQuery(ctx context.Context, query *models.AssetPropertyValueQuery) (data.Frames, error)

func (*Datasource) HandleGetAssetPropertyValueHistoryQuery

func (ds *Datasource) HandleGetAssetPropertyValueHistoryQuery(ctx context.Context, query *models.AssetPropertyValueQuery) (data.Frames, error)

func (*Datasource) HandleGetAssetPropertyValueQuery

func (ds *Datasource) HandleGetAssetPropertyValueQuery(ctx context.Context, query *models.AssetPropertyValueQuery) (data.Frames, error)

func (*Datasource) HandleInterpolatedPropertyValueQuery added in v1.4.0

func (ds *Datasource) HandleInterpolatedPropertyValueQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.AssetPropertyValueQuery) (data.Frames, error)

func (*Datasource) HandleListAssetModelsQuery

func (ds *Datasource) HandleListAssetModelsQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.ListAssetModelsQuery) (data.Frames, error)

func (*Datasource) HandleListAssetPropertiesQuery added in v1.17.0

func (ds *Datasource) HandleListAssetPropertiesQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.ListAssetPropertiesQuery) (data.Frames, error)

func (*Datasource) HandleListAssetsQuery

func (ds *Datasource) HandleListAssetsQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.ListAssetsQuery) (data.Frames, error)

func (*Datasource) HandleListAssociatedAssetsQuery

func (ds *Datasource) HandleListAssociatedAssetsQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.ListAssociatedAssetsQuery) (data.Frames, error)

func (*Datasource) HandleListTimeSeriesQuery added in v1.23.0

func (ds *Datasource) HandleListTimeSeriesQuery(ctx context.Context, req *backend.QueryDataRequest, query *models.ListTimeSeriesQuery) (data.Frames, error)

func (*Datasource) HealthCheck

func (ds *Datasource) HealthCheck(ctx context.Context, req *backend.CheckHealthRequest) error

type DummyAuthenticator added in v1.2.4

type DummyAuthenticator struct {
	Settings models.AWSSiteWiseDataSourceSetting
}

func (*DummyAuthenticator) Authenticate added in v1.2.4

func (a *DummyAuthenticator) Authenticate() (models.AuthInfo, error)

type EdgeAuthenticator added in v1.2.4

type EdgeAuthenticator struct {
	Settings models.AWSSiteWiseDataSourceSetting
}

func (*EdgeAuthenticator) Authenticate added in v1.2.4

func (a *EdgeAuthenticator) Authenticate() (models.AuthInfo, error)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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