Documentation
¶
Index ¶
- Constants
- type AWSSiteWiseDataSourceSetting
- type AssetPropertyValueQuery
- type AuthInfo
- type Authenticator
- type BaseQuery
- type DescribeAssetModelQuery
- type DescribeAssetPropertyQuery
- type DescribeAssetQuery
- type ListAssetModelsQuery
- type ListAssetsQuery
- type ListAssociatedAssetsQuery
- type SitewiseCustomMeta
Constants ¶
View Source
const ( QueryTypePropertyValueHistory = "PropertyValueHistory" QueryTypePropertyValue = "PropertyValue" QueryTypePropertyAggregate = "PropertyAggregate" QueryTypePropertyInterpolated = "PropertyInterpolated" QueryTypeListAssetModels = "ListAssetModels" QueryTypeListAssets = "ListAssets" QueryTypeListAssociatedAssets = "ListAssociatedAssets" QueryTypeDescribeAsset = "DescribeAsset" QueryTypeDescribeAssetModel = "DescribeAssetModel" )
View Source
const ( AggregateMin = "MINIMUM" AggregateMax = "MAXIMUM" AggregateCount = "COUNT" AggregateAvg = "AVERAGE" AggregateStdDev = "STANDARD_DEVIATION" AggregateSum = "SUM" )
View Source
const EDGE_AUTH_MODE_DEFAULT string = "default"
View Source
const EDGE_AUTH_MODE_LDAP string = "ldap"
View Source
const EDGE_AUTH_MODE_LINUX string = "linux"
View Source
const EDGE_REGION string = "Edge"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSiteWiseDataSourceSetting ¶ added in v1.2.4
type AWSSiteWiseDataSourceSetting struct { awsds.AWSDatasourceSettings Cert string `json:"-"` EdgeAuthMode string `json:"edgeAuthMode"` EdgeAuthUser string `json:"edgeAuthUser"` EdgeAuthPass string `json:"-"` }
func (*AWSSiteWiseDataSourceSetting) Load ¶ added in v1.2.4
func (s *AWSSiteWiseDataSourceSetting) Load(config backend.DataSourceInstanceSettings) error
func (*AWSSiteWiseDataSourceSetting) ToAWSDatasourceSettings ¶ added in v1.2.4
func (s *AWSSiteWiseDataSourceSetting) ToAWSDatasourceSettings() awsds.AWSDatasourceSettings
func (*AWSSiteWiseDataSourceSetting) Validate ¶ added in v1.2.4
func (s *AWSSiteWiseDataSourceSetting) Validate() error
type AssetPropertyValueQuery ¶
type AssetPropertyValueQuery struct { BaseQuery AggregateTypes []string `json:"aggregates,omitempty"` // Not used for the history query Quality string `json:"quality,omitempty"` Resolution string `json:"resolution,omitempty"` LastObservation bool `json:"lastObservation,omitempty"` TimeOrdering string `json:"timeOrdering,omitempty"` }
AssetPropertyValueQuery encapsulates params for all 3 'Get' data APIs in Sitewise. Each API handler will simply ignore the unneeded props. NOTES: We have decided to not support propertyAlias targets, as there is no good way to go from propertyAlias -> assetId/propertyId. This is done simply due to lack of solid generics support in golang.
func GetAssetPropertyValueQuery ¶
func GetAssetPropertyValueQuery(dq *backend.DataQuery) (*AssetPropertyValueQuery, error)
type AuthInfo ¶ added in v1.2.4
type AuthInfo struct { Username string `json:"username,omitempty"` AccessKeyId string `json:"accessKeyId,omitempty"` SecretAccessKey string `json:"secretAccessKey,omitempty"` SessionToken string `json:"sessionToken,omitempty"` SessionExpiryTime time.Time `json:"sessionExpiryTime,omitempty"` AuthMechanism string `json:"authMechanism,omitempty"` }
type Authenticator ¶ added in v1.2.4
type BaseQuery ¶
type BaseQuery struct { AwsRegion string `json:"region,omitempty"` // Deprecated: use assetIds AssetId string `json:"assetId,omitempty"` AssetIds []string `json:"assetIds,omitempty"` PropertyId string `json:"propertyId,omitempty"` PropertyAlias string `json:"propertyAlias,omitempty"` NextToken string `json:"nextToken,omitempty"` MaxPageAggregations int `json:"maxPageAggregations,omitempty"` ResponseFormat string `json:"responseFormat,omitempty"` Interval time.Duration `json:"-"` TimeRange backend.TimeRange `json:"-"` MaxDataPoints int64 `json:"-"` QueryType string `json:"-"` }
func (*BaseQuery) MigrateAssetId ¶ added in v1.6.0
func (query *BaseQuery) MigrateAssetId()
MigrateAssetId handles AssetId <--> AssetIds backward compatibility. This is needed for compatibility for queries saved before the Batch API changes were introduced in 1.6.0
type DescribeAssetModelQuery ¶ added in v1.1.0
func GetDescribeAssetModelQuery ¶ added in v1.1.0
func GetDescribeAssetModelQuery(dq *backend.DataQuery) (*DescribeAssetModelQuery, error)
type DescribeAssetPropertyQuery ¶
type DescribeAssetPropertyQuery struct {
BaseQuery
}
type DescribeAssetQuery ¶
type DescribeAssetQuery struct {
BaseQuery
}
func GetDescribeAssetQuery ¶
func GetDescribeAssetQuery(dq *backend.DataQuery) (*DescribeAssetQuery, error)
type ListAssetModelsQuery ¶
type ListAssetModelsQuery struct {
BaseQuery
}
func GetListAssetModelsQuery ¶
func GetListAssetModelsQuery(dq *backend.DataQuery) (*ListAssetModelsQuery, error)
type ListAssetsQuery ¶
type ListAssetsQuery struct { BaseQuery ModelId string `json:"modelId,omitempty"` Filter string `json:"filter,omitempty"` }
func GetListAssetsQuery ¶
func GetListAssetsQuery(dq *backend.DataQuery) (*ListAssetsQuery, error)
type ListAssociatedAssetsQuery ¶
type ListAssociatedAssetsQuery struct { BaseQuery HierarchyId string `json:"hierarchyId,omitempty"` }
func GetListAssociatedAssetsQuery ¶
func GetListAssociatedAssetsQuery(dq *backend.DataQuery) (*ListAssociatedAssetsQuery, error)
type SitewiseCustomMeta ¶
type SitewiseCustomMeta struct { NextToken string `json:"nextToken,omitempty"` Resolution string `json:"resolution,omitempty"` Aggregates []string `json:"aggregates,omitempty"` }
SitewiseCustomMeta is the standard metadata
Source Files
¶
Click to show internal directories.
Click to hide internal directories.