Documentation ¶
Index ¶
- Constants
- type ClientConfig
- type CogniteClient
- type CredentialProvider
- type OAuthClientCredentials
- type TimeSeries
- func (t *TimeSeries) Filter(filter *dto.TimeSeriesFilter, advancedFilter map[string]interface{}, limit int, ...) (dto.TimeSeriesList, error)
- func (t *TimeSeries) List(limit int, includeMetadata bool, cursor string, partition string, ...) (dto.TimeSeriesList, error)
- func (t *TimeSeries) RetrieveData(items *[]dto.DataPointsQueryItem, startTime *string, endTime *string, ...) (*dto.DataPointListResponse, error)
- func (t *TimeSeries) RetrieveLatest(items *[]dto.LatestDataPointsQueryItem, ignoreUnknownIds *bool) (*dto.DataPointListResponse, error)
- type Token
- type Units
Constants ¶
View Source
const (
VERSION = "0.0.1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { ClientName string Cluster string Project string Credentials CredentialProvider }
type CogniteClient ¶
type CogniteClient struct { ClientConfig ClientConfig AccessToken string BaseURL string Headers map[string]string TimeSeries TimeSeries Units Units }
func NewCogniteClient ¶
func NewCogniteClient(clientConfig ClientConfig) CogniteClient
type CredentialProvider ¶
type CredentialProvider interface {
FetchToken() string
}
type OAuthClientCredentials ¶
type OAuthClientCredentials struct { ClientId string ClientSecret string AuthorityURI string Cluster string }
func AzureADClientCredentials ¶
func AzureADClientCredentials( clientId string, clientSecret string, tenantId string, cluster string, ) OAuthClientCredentials
func (OAuthClientCredentials) FetchToken ¶
func (m OAuthClientCredentials) FetchToken() string
type TimeSeries ¶
type TimeSeries struct {
Client *CogniteClient
}
func (*TimeSeries) Filter ¶
func (t *TimeSeries) Filter( filter *dto.TimeSeriesFilter, advancedFilter map[string]interface{}, limit int, cursor string, partition string, sort []map[string]interface{}, ) (dto.TimeSeriesList, error)
func (*TimeSeries) RetrieveData ¶
func (t *TimeSeries) RetrieveData( items *[]dto.DataPointsQueryItem, startTime *string, endTime *string, limit *int64, aggregates *[]string, granularity *string, includeOutsidePoints *bool, ignoreUnknownIds *bool, ) (*dto.DataPointListResponse, error)
func (*TimeSeries) RetrieveLatest ¶
func (t *TimeSeries) RetrieveLatest( items *[]dto.LatestDataPointsQueryItem, ignoreUnknownIds *bool, ) (*dto.DataPointListResponse, error)
Click to show internal directories.
Click to hide internal directories.