data_usage

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceLastUsed added in v0.13.1

type DataSourceLastUsed struct {
	Id       string `json:"id"`
	LastUsed string `json:"usageLastUsed"`
}

type DataUsageImportConfig

type DataUsageImportConfig struct {
	target.BaseTargetConfig
	TargetFile string
}

type DataUsageImportResult

type DataUsageImportResult struct {
	StatementsAdded       int `json:"statementsAdded"`
	StatementsFailed      int `json:"statementsFailed"`
	StatementsSkipped     int `json:"statementsSkipped"`
	EdgesCreatedOrUpdated int `json:"edgesCreatedOrUpdated"`
	EdgesRemoved          int `json:"edgesRemoved"`

	Warnings []string `json:"warnings"`
}

type DataUsageImporter

type DataUsageImporter interface {
	TriggerImport(jobId string) (job.JobStatus, string, error)
	GetLastUsage() (*time.Time, error)
}

func NewDataUsageImporter

func NewDataUsageImporter(config *DataUsageImportConfig, statusUpdater job.TaskEventUpdater) DataUsageImporter

type DataUsageSync added in v0.16.0

type DataUsageSync struct {
	TargetConfig *target.BaseTargetConfig
	JobId        string
}

func (*DataUsageSync) GetParts added in v0.20.0

func (s *DataUsageSync) GetParts() []job.TaskPart

func (*DataUsageSync) GetResultObject added in v0.16.0

func (s *DataUsageSync) GetResultObject() interface{}

func (*DataUsageSync) ProcessResults added in v0.16.0

func (s *DataUsageSync) ProcessResults(results interface{}) error

func (*DataUsageSync) StartSyncAndQueueTaskPart added in v0.20.0

func (s *DataUsageSync) StartSyncAndQueueTaskPart(client plugin.PluginClient, statusUpdater job.TaskEventUpdater) (job.JobStatus, string, error)

type LastUsedResponse added in v0.17.0

type LastUsedResponse struct {
	DataSourceInfo DataSourceLastUsed `json:"dataSource"`
}

type QueryResponse added in v0.16.0

type QueryResponse struct {
	Subtask subtaskResponse `json:"subtask"`
}

type Response added in v0.9.1

type Response struct {
	Response QueryResponse `json:"importDataUsageRequest"`
}

Jump to

Keyboard shortcuts

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