Versions in this module Expand all Collapse all v2 v2.4.0 Jul 9, 2021 Changes in this version type Client + func (p *Client) UploadObservationArtifact(ctx context.Context, data []byte, sessionID, artifactType string) error + type UploadArtifactResponse struct + ArtifactTime time.Time + ArtifactType string + DBLabSessionID int v2.2.0 Feb 9, 2021 Changes in this version + type APIResponse struct + Code string + Details string + Hint string + Message string + type Client struct + func NewClient(platformCfg ClientConfig) (*Client, error) + func (p *Client) CheckPlatformToken(ctx context.Context, request TokenCheckRequest) (TokenCheckResponse, error) + func (p *Client) StartObservationSession(ctx context.Context, request StartObservationRequest) (StartObservationResponse, error) + func (p *Client) StopObservationSession(ctx context.Context, request StopObservationRequest) (APIResponse, error) + func (p *Client) UploadObservationLogs(ctx context.Context, data []byte, headers map[string]string) error + type ClientConfig struct + AccessToken string + URL string + type ConfigValidationError error + type StartObservationRequest struct + CloneID string + Config types.Config + InstanceID string + StartedAt string + Tags map[string]string + type StartObservationResponse struct + SessionID uint64 + type StopObservationRequest struct + FinishedAt string + Result models.ObservationResult + SessionID uint64 + type TokenCheckRequest struct + Token string + type TokenCheckResponse struct + OrganizationID uint + Personal bool Other modules containing this package gitlab.com/postgres-ai/database-lab gitlab.com/postgres-ai/database-lab/v3