data_usage

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 9 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"`
}

type DataUsageImporter

type DataUsageImporter interface {
	TriggerImport() (*DataUsageImportResult, error)
	GetLastUsage() (*time.Time, error)
}

func NewDataUsageImporter

func NewDataUsageImporter(config *DataUsageImportConfig) DataUsageImporter

type LastUsedReponse added in v0.13.1

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

type Response added in v0.9.1

type Response struct {
	ImportDataUsage DataUsageImportResult `json:"importDataUsage"`
}

Jump to

Keyboard shortcuts

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