Documentation ¶
Index ¶
- Constants
- Variables
- type AuthRequest
- type Datasource
- func (ds *Datasource) HandleDescribeAssetModelQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HandleDescribeAssetQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HandleGetAssetPropertyAggregateQuery(ctx context.Context, query *models.AssetPropertyValueQuery) (data.Frames, error)
- func (ds *Datasource) HandleGetAssetPropertyValueHistoryQuery(ctx context.Context, query *models.AssetPropertyValueQuery) (data.Frames, error)
- func (ds *Datasource) HandleGetAssetPropertyValueQuery(ctx context.Context, query *models.AssetPropertyValueQuery) (data.Frames, error)
- func (ds *Datasource) HandleInterpolatedPropertyValueQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HandleListAssetModelsQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HandleListAssetPropertiesQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HandleListAssetsQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HandleListAssociatedAssetsQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HandleListTimeSeriesQuery(ctx context.Context, req *backend.QueryDataRequest, ...) (data.Frames, error)
- func (ds *Datasource) HealthCheck(ctx context.Context, req *backend.CheckHealthRequest) error
- type DummyAuthenticator
- type EdgeAuthenticator
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 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)
Click to show internal directories.
Click to hide internal directories.